Repository navigation
Prevent untrainable-batch stalls in RL training - #4548
Merged
Merged
Conversation
wwwjn
requested review from
felipemello1,
shuhuayu and
tianyu-l
and removed request for
felipemello1
September 9, 2026 18:34
wwwjn
force-pushed
the
fix/rl-debug-zero-std-rewards
branch
from
September 9, 2026 18:45
7c73bcf to
4912fbe
Compare
tianyu-l
approved these changes
Sep 9, 2026
shuhuayu
approved these changes
Sep 9, 2026
shuhuayu
left a comment
Contributor
There was a problem hiding this comment.
lgtm, we do not need to consider loss convergence of ci tests targeting model enablement.
wwwjn
force-pushed
the
fix/rl-debug-zero-std-rewards
branch
from
September 9, 2026 18:58
4912fbe to
ddb8dcd
Compare
wwwjn
force-pushed
the
fix/rl-debug-zero-std-rewards
branch
from
September 9, 2026 19:03
ddb8dcd to
b041576
Compare
wwwjn
force-pushed
the
fix/rl-debug-zero-std-rewards
branch
2 times, most recently
from
September 9, 2026 19:19
46fe07a to
d1b6142
Compare
wwwjn
force-pushed
the
fix/rl-debug-zero-std-rewards
branch
from
September 9, 2026 19:23
d1b6142 to
cf4965f
Compare
felipemello1
reviewed
Sep 9, 2026
|
|
||
|
|
||
| _KEEP_ZERO_STD_REWARD_GROUPS = ( | ||
| "--async-loop.training-sample-builder.no-drop-zero-std-reward-groups" |
Contributor
There was a problem hiding this comment.
is the "no" in front of it a way to set it to false?
Contributor
Author
There was a problem hiding this comment.
Yes, in tyro CLI, if you wanto set a boolean flag to be false, add a "no-" to the name
felipemello1
approved these changes
Sep 9, 2026
Contributor
|
thank you! |
wwwjn
force-pushed
the
fix/rl-debug-zero-std-rewards
branch
from
September 9, 2026 20:04
f45c7e8 to
d640be6
Compare
wwwjn
force-pushed
the
fix/rl-debug-zero-std-rewards
branch
from
September 9, 2026 20:08
d640be6 to
58b0625
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Qwen3.5 debug integration test in https://github.com/pytorch/torchtitan/actions/runs/34312737649/job/102342893821 generated rollouts indefinitely without producing a training step. Random-init policies can give every rollout in a group the same reward. With
drop_zero_std_reward_groups=True, every such group is discarded, so the generator keeps replenishing work while the trainer waits forever for a batch.This is the same invariant addressed for earlier debug configs in #3802; the Qwen3.5 debug config added in #3957 omitted the override.
What
drop_zero_std_reward_groups=Falsefor the Qwen3.5 debug config.RuntimeErrorinstead of hanging indefinitely.This follows Prime-RL’s generalized no-progress protection: https://github.com/PrimeIntellect-ai/prime-rl/blob/main/src/prime_rl/orchestrator/train_sink.py
Testing
python -m pytest torchtitan/experiments/rl/tests/test_async_controller.py torchtitan/experiments/rl/tests/test_rollout_utils.py -q(27 passed)The focused launcher pytest could not be collected locally because this checkout environment lacks
grain; CI installs the project requirements.