Skip to content
Discussion options

You must be logged in to vote

Not quite "bigger whenever it fits", because num_envs doesn't only buy throughput — it also changes your batch size, and the PPO config doesn't compensate for that on its own.

From tasks/velocity/config/g1/rl_cfg.py:

num_learning_epochs=5,
num_mini_batches=4,
...
num_steps_per_env=24,

The rollout per iteration is num_envs × num_steps_per_env, and it's split into a fixed count of minibatches, not a fixed size. So minibatch size is num_envs × 24 / 4, while gradient steps per iteration stay pinned at 5 × 4 = 20 no matter how many envs you run. Double num_envs and you collect twice the experience, then do the same twenty updates on it — more accurate gradients, but fewer updates per sample co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GF-Huang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants