↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/models/qwen2/megatron/layers/parallel_attention.py:134
↓ 2 callersFunctionrepeat_kv This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/models/llama/megatron/layers/parallel_attention.py:157
↓ 1 callersMethod__init__(
self,
input_size,
num_heads,
num_key_value_heads,
head_dim,
verl/models/qwen2/megatron/layers/parallel_linear.py:21