↓ 5 callersMethodon_save(self, args, state, control, model=None, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/callbacks.py:564
↓ 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-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:131
↓ 3 callersMethod_forward(self, model, prompt_ids, prompt_mask, completion_ids, completion_mask)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:495