↓ 4 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:131
↓ 2 callersMethodcache_swap(
self,
blocks_to_swap_in: Dict[int, int],
blocks_to_swap_out: Dict[int, int],
verl/third_party/vllm/vllm_v_0_3_1/worker.py:188