zhaojingqian
zhaojingqian
How do I skip the data that has been trained when I use grpo's resume function? Hopefully add data resume as well
https://github.com/volcengine/verl/blob/main/verl/trainer/ppo/ray_trainer.py#L173 In the function apply_kl_penalty, the update of kl_ctrl is ``kl_ctrl.update(current_kl=current_kl, n_steps=batch_size)`` where ``n_steps`` should represent the currently trained step number. according to https://github.com/huggingface/trl/blob/951ca1841f29114b969b57b26c7d3e80a39f75a0/trl/trainer/ppo_trainer.py#L837, there are: ``self.kl_ctl.update( stats["objective/kl"], self.config.batch_size *...
In `verl/workers/actor/dp_actor.py`, the optimizer update happens at the **mini-batch level** within the `update_policy` method: ```python def update_policy(self, data: DataProto): metrics = {} for epoch in range(self.config.ppo_epochs): # PPO epochs for...