feat(nemotron-omni): add Megatron Nano image GRPO support - #3290
Merged
Conversation
4 tasks
rohitrango
reviewed
Jul 20, 2026
yfw
reviewed
Jul 23, 2026
6 tasks
rohitrango
reviewed
Jul 24, 2026
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Signed-off-by: Ali Roshan Ghias <aroshanghias@nvidia.com>
Contributor
|
/ok to test a7e52a3 |
yfw
reviewed
Aug 4, 2026
…model Addresses code-review findings on the Nemotron Omni PR: - Restore `logprobs_mode: processed_logprobs` in the root exemplars (grpo/ppo/distillation) and matching reference_configs. Commit bb89288 removed it from the configs and made the code optional, which silently deferred the default to vLLM 0.25.1's `raw_logprobs` for every recipe that does not set the key. - Reject mixed-resolution batches on the AutoModel path in `filter_multimodal_kwargs_for_model`: it drops `imgs_sizes` and cannot crop the `pad_to_max_shape` padding, so mixed-resolution inputs would feed padded pixels to the vision encoder and mismatch the placeholder count. Fail loud instead of corrupting silently, with unit tests covering the mixed-resolution (raises) and uniform-resolution (allowed) cases. - Run ruff-format on the affected files. Signed-off-by: Yi-Fu Wu <yifu.wu@gmail.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
yfw
force-pushed
the
aroshanghias/nemotron-omni-main-migration
branch
from
August 5, 2026 00:14
79a4797 to
822d7b1
Compare
Contributor
|
/ok to test 822d7b1 |
yfw
previously approved these changes
Aug 5, 2026
yfw
left a comment
Contributor
There was a problem hiding this comment.
Approved @aroshanghias-nvd 's changes up until my last commit
rohitrango
reviewed
Aug 5, 2026
rohitrango
previously approved these changes
Aug 5, 2026
…lies to Per review feedback, reference the concrete model (nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16) whose HF forward accepts pixel_values but not imgs_sizes, so it is clear which model the guard is for. Signed-off-by: Yi-Fu Wu <yifu.wu@gmail.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
/ok to test b8d7523 |
Contributor
|
/ok to test c65b1f0 |
Signed-off-by: Yi-Fu Wu <yifu.wu@gmail.com>
Contributor
|
/ok to test aff74f9 |
terrykong
approved these changes
Aug 5, 2026
yfw
enabled auto-merge (squash)
August 5, 2026 05:10
Contributor
|
/ok to test a9a9a87 |
terrykong
approved these changes
Aug 5, 2026
4 tasks
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.
What does this PR do?
Add Megatron-based Nemotron Nano Omni image-GRPO support using NeMo-RL's existing sequence-packing data path and the dedicated MBridge
NemotronOmniModel.The ownership boundary is:
PackedSeqParams.NemotronOmniModelcreates and inserts media embeddings, then selects the context-parallel portion of the merged embedding sequence.LLaVAModelcollapse/expand behavior.The PR includes:
The branch is synchronized with NeMo-RL
main's vLLM 0.25.1 dependency. This PR does not change external vLLM source or the vLLM dependency pin; its compatibility behavior is implemented in NeMo-RL's existing integration and runtime-patch layer.Issues
No public issue.
Usage
The maintained recipes added by this PR are:
examples/configs/recipes/vlm/vlm_grpo-nemotron-omni-30ba3b-clevr-1n8g-megatron-tp8ep8.v1.yamlexamples/configs/recipes/vlm/vlm_grpo-nemotron-omni-30ba3b-mmpr-4n8g-megatron-tp8ep16.v1.yamlValidation
5 passed).8 passed).uv lock --checkandgit diff --checkpassed.Scope and follow-up
This PR covers the Nano image/text path. Caller-packed context parallelism with MTP is deliberately unsupported until the separate Super/MTP integration adds and validates the required MTP-mask alignment. Audio and video support is layered on the MBridge foundation separately.
Before this PR is ready for review
docs/guides/nemotron-3-nano-omni.mdwith the Megatron architecture, supported scope, checkpoint compatibility, recipes, and usage.