Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reward_model.micro_batch_size_per_gpu not work #395

Open
yuki-666 opened this issue Feb 26, 2025 · 0 comments
Open

reward_model.micro_batch_size_per_gpu not work #395

yuki-666 opened this issue Feb 26, 2025 · 0 comments

Comments

@yuki-666
Copy link

In verl/workers/reward_model/megatron/reward_model.py

# split into micro-batches
if self.config is not None and 'ppo_micro_batch_size_per_gpu' in self.config:
    infer_batch_size = self.config.ppo_micro_batch_size_per_gpu
else:
    infer_batch_size = data.batch.batch_size[0]

It seems use ppo_micro_batch_size_per_gpu instead of micro_batch_size_per_gpu, so reward_model.micro_batch_size_per_gpu not work, always infer_batch_size = data.batch.batch_size[0].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant