Repository navigation
feat(megatron): support model config overrides - #3535
Merged
ZhiyuLi-Nvidia merged 3 commits intoAug 11, 2026
Merged
ZhiyuLi-Nvidia merged 3 commits into
ZhiyuLi-Nvidia merged 3 commits into
Conversation
ZhiyuLi-Nvidia
left a comment
Contributor
There was a problem hiding this comment.
Direction: error out on conflict between model_overrides and first-class megatron_cfg fields.
ZhiyuLi-Nvidia
left a comment
Contributor
There was a problem hiding this comment.
Follow-up: merge overrides into provider construction, not post-hoc setattr; add a test that the saved/final model config equals the merged one.
CarlosGomes98
force-pushed
the
cgomes/model-config-overrides
branch
from
August 10, 2026 10:06
7f5509c to
806ea43
Compare
Contributor
|
/ok to test 806ea43 |
ZhiyuLi-Nvidia
left a comment
Contributor
There was a problem hiding this comment.
Lint: strip trailing whitespace at setup.py:772 (one-click suggestion).
Signed-off-by: Carlos Gomes <[email protected]>
Signed-off-by: Carlos Gomes <[email protected]>
Co-authored-by: Zhiyu Li <[email protected]> Signed-off-by: Carlos Gomes <[email protected]>
CarlosGomes98
force-pushed
the
cgomes/model-config-overrides
branch
from
August 11, 2026 07:17
285a779 to
99a6e23
Compare
Contributor
|
/ok to test 99a6e23 |
Contributor
|
Thank you @CarlosGomes98 a lot! Awesome feature. |
ZhiyuLi-Nvidia
approved these changes
Aug 11, 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 ?
Allow arbitrary options to be passed to MBridge model_cfg
Issues
List issues that this PR closes (syntax):
Usage
Some feature flags MBridge exposes are not explicitly forwarded by NeMo-RL. This means we must patch NeMo-RL, or submit an MR with that flag. In some cases, it is useful to just directly pass options to MBridge.
Before your PR is "Ready for review"
Pre checks:
Additional Information