Repository navigation
Set drop_zero_std_reward_groups=False for debug configs - #3802
Merged
Merged
Conversation
Contributor
|
if they are all producing STD=0, then theres something broken with the run, right? setting it to False just masks the error |
Contributor
Debug model are expected to see garbage output, because it doesn't have real weights |
felipemello1
approved these changes
Jun 26, 2026
Contributor
There was a problem hiding this comment.
Thanks! Please fix CI (if caused by this PR)
I approved, but would it make sense to try to get a debug model that actually works? e.g. take a small MoE and trim a bunch of layers? For example, fused_qkv was "working" but producing bad outputs.
Not for this PR, just an idea for the future
wwwjn
added a commit
that referenced
this pull request
Jul 8, 2026
The golden (rl_grpo_cuda.txt) held small non-zero losses from before #3802, which set drop_zero_std_reward_groups=False for debug configs. With that + a random-init model, every reward group is zero-std -> zero advantage -> the GRPO loss is deterministically 0.0 (all 10 steps, confirmed in CI). Update the golden to 0.0 (arch-independent) and document why in the workflow comment.
wwwjn
added a commit
that referenced
this pull request
Jul 9, 2026
The golden (rl_grpo_cuda.txt) held small non-zero losses from before #3802, which set drop_zero_std_reward_groups=False for debug configs. With that + a random-init model, every reward group is zero-std -> zero advantage -> the GRPO loss is deterministically 0.0 (all 10 steps, confirmed in CI). Update the golden to 0.0 (arch-independent) and document why in the workflow comment.
jemitche1
pushed a commit
to jemitche1/torchtitan
that referenced
this pull request
Jul 15, 2026
These configs uses `hf_assets_path="tests/assets/tokenizer",` and will produce zero reward. Need to set `drop_zero_std_reward_groups=False`. Otherwise the job would hang since all responses from generator are discarded due to 0 reward.
wwwjn
added a commit
that referenced
this pull request
Sep 9, 2026
## 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 - Set `drop_zero_std_reward_groups=False` for the Qwen3.5 debug config. - Add the corresponding CLI override centrally to every command produced by the RL CI integration-test launcher, including multi-run tests. - Record consecutive untrainable groups at the batcher boundary: - each complete batch-sized block of untrainable groups emits a warning; - any trainable group resets the count; - 10 consecutive untrainable batches raise `RuntimeError` instead of hanging indefinitely. - Remove the resolved silent-hang TODO and add regression tests for the CI override, warnings, reset behavior, and terminal error. 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) - Targeted watchdog tests after the final naming change (3 passed). - Targeted pre-commit hooks passed (Pyrefly skipped because RL experiments/tests are excluded by repository configuration and the configured local PyTorch tree is unavailable). - Python compilation passed for all changed files. - Validated that all 8 commands currently produced by the RL CI launcher contain the override. The focused launcher pytest could not be collected locally because this checkout environment lacks `grain`; CI installs the project requirements.
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.
These configs uses
hf_assets_path="tests/assets/tokenizer",and will produce zero reward. Need to setdrop_zero_std_reward_groups=False. Otherwise the job would hang since all responses from generator are discarded due to 0 reward.