Repository navigation
feat(grpo): evaluate sequence-logprob filtering in the training forward #4171
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
Merged
yuki-97
merged 23 commits into
NVIDIA-NeMo:main
from
CarlosGomes98:cgomes/grpo-single-forward
Sep 23, 2026
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2abd4e7
perf(grpo): evaluate sequence logprob filtering in training forward
CarlosGomes98 73c62e0
clarify code comments
CarlosGomes98 b5babef
chore: restore Megatron-Bridge submodule pin to origin/main
CarlosGomes98 79c7129
fix(grpo): preserve fractional single-forward normalization
CarlosGomes98 9697a3e
fix(grpo): address single-forward filtering review feedback
CarlosGomes98 8db5ecd
make rescaling requirement more readable
CarlosGomes98 a35789e
add test train normalizes survivors
CarlosGomes98 b3ca2b1
add comment explaining token factor value
CarlosGomes98 bce9547
fix(grpo): address single-forward review and add nightly coverage
CarlosGomes98 f092f3e
refactor(grpo): move in-loss sequence filtering flag to loss config
CarlosGomes98 f87eb81
fix(grpo): accept validated draft config in single-forward guard
CarlosGomes98 1e1d447
test(grpo): align single-forward nightly setup with existing recipes
CarlosGomes98 299bd5f
docs(grpo): illustrate single-forward reward and timing comparison
CarlosGomes98 4d47942
docs(grpo): match existing paragraph wrapping
CarlosGomes98 57dc5ad
docs(grpo): update comparison with completed training runs
CarlosGomes98 e046bb4
docs(grpo): simplify comparison plot annotations
CarlosGomes98 a3b0c11
docs(grpo): add gradient norm to training comparison
CarlosGomes98 ba34dd4
simplify part of the grpo doc
CarlosGomes98 db9abfc
Avoid BatchedDataDict.to
CarlosGomes98 b341d8b
fix(grpo): address single-forward review feedback
CarlosGomes98 ffadb85
add todo comment
CarlosGomes98 9aed5b9
remove trailing whitespace
CarlosGomes98 59d2ec0
minimize recipe
CarlosGomes98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
41 changes: 41 additions & 0 deletions
41
...les/configs/recipes/llm/grpo-qwen2.5-math-1.5b-instruct-1n8g-megatron-single-forward.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| defaults: ../../grpo_math_1B.yaml | ||
| grpo: | ||
| max_num_steps: 450 | ||
| seq_logprob_error_threshold: 2.0 | ||
| skip_reference_policy_logprobs_calculation: true | ||
| loss_fn: | ||
| seq_logprob_error_in_loss: true | ||
| force_on_policy_ratio: true | ||
| reference_policy_kl_penalty: 0.0 | ||
| checkpointing: | ||
| checkpoint_dir: results/grpo-qwen2.5-math-1.5b-instruct-1n8g-megatron-single-forward | ||
| policy: | ||
| model_name: Qwen/Qwen2.5-Math-1.5B-Instruct | ||
| tokenizer: | ||
| name: Qwen/Qwen2.5-Math-1.5B-Instruct | ||
| dtensor_cfg: | ||
| enabled: false | ||
| megatron_cfg: | ||
| enabled: true | ||
| scheduler: | ||
| lr_warmup_iters: 50 | ||
| dynamic_batching: | ||
| enabled: true | ||
| sequence_packing: | ||
| enabled: false | ||
| make_sequence_length_divisible_by: 1 | ||
| generation: | ||
| max_new_tokens: 512 | ||
| vllm_cfg: | ||
| max_model_len: 512 | ||
| data: | ||
| max_input_seq_length: 512 | ||
| logger: | ||
| log_dir: logs/grpo-qwen2.5-math-1.5b-instruct-1n8g-megatron-single-forward | ||
| wandb_enabled: true | ||
| tensorboard_enabled: true | ||
| wandb: | ||
| project: nemo-rl | ||
| name: grpo-qwen2.5-math-1.5b-instruct-1n8g-megatron-single-forward | ||
| cluster: | ||
| gpus_per_node: 8 |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.