verl
verl copied to clipboard
calculate reward twice when async rollout mode
System Info
first time:https://github.com/volcengine/verl/blob/main/verl/experimental/agent_loop/agent_loop.py#L520 second time:https://github.com/volcengine/verl/blob/main/verl/trainer/ppo/ray_trainer.py#L1151
Information
- [ ] The official example scripts
- [ ] My own modified scripts
Tasks
- [ ] An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below)
Reproduction
set actor_rollout_ref.rollout.mode=async
Expected behavior
The reward has been calculated multiple times and needs to be optimized.
You can check the code in naive.py; the second time, no actual calculation is performed.