verl icon indicating copy to clipboard operation
verl copied to clipboard

calculate reward twice when async rollout mode

Open zwc163 opened this issue 1 year ago • 1 comments

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 examples folder (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.

zwc163 avatar Nov 04 '25 12:11 zwc163

You can check the code in naive.py; the second time, no actual calculation is performed.

DBMing avatar Nov 05 '25 03:11 DBMing