verl icon indicating copy to clipboard operation
verl copied to clipboard

A question about the batch_size of GRPO in verl.

Open ccl4wsh opened this issue 1 year ago • 0 comments

Image Please help me explain the parameters in this picture in: https://verl.readthedocs.io/en/latest/algo/grpo.html I’ve already given the parameters I think correct, but there are still some that I don’t understand. (Assuming that trainer.nnodes = 3 and trainer.gpus_per_node = 1) ● data.train_batch_size: 4 ● rollout.n: 3 ● rollout.log_prob_micro_batch_size_per_gpu: 2 ● ref.log_prob_micro_batch_size_per_gpu: 2 ● actor.ppo_mini_batch_size: ? ● actor.ppo_micro_batch_size_per_gpu: ? Please tell me what the actual batch size is, when gradient accumulation takes place, and when the gradients are updated?🙏

ccl4wsh avatar Jul 02 '25 16:07 ccl4wsh