-
Notifications
You must be signed in to change notification settings - Fork 239
260201: Cherrypick various changes #2509
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
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4cbe4eb
[model, refactor] refactor: Centralize provider_bridge config mapping…
yaoyu-33 7cf6851
[recipe, training] fix: Correct adam_eps default and add non-default …
yaoyu-33 70436be
Fix performance config scripts for parameterless recipe API (#2201)
yaoyu-33 d4fd66a
[model, refactor] refactor: Centralize provider_bridge config mapping…
yaoyu-33 199723c
fix: call apply_flex_dispatcher_backend with correct backend in MoE p…
yaoyu-33 6f6a4d8
kimi k2 recipe intro (#2097)
malay-nagda 5ec81cb
nemotron3 nano recipes (#2301)
malay-nagda f29a269
Update Qwen3 30B H100 Base Configs with HybridEP (#2477)
rhmukundan f10feb7
Fix DeepSeek-V3 H100 large scale config (#2401)
scsudhakaran cb434ff
fix: all2all for qwen3-next H100 (#2479)
ko3n1g 08de997
[model,recipe] fix: Correct DeepSeek num_query_groups mapping and mig…
yaoyu-33 249869f
Malay/cp sft perf 2602 patch (#2527)
malay-nagda b1b0d2d
[model, refactor] refactor: Centralize provider_bridge config mapping…
yaoyu-33 e7ee97c
Fix LLAMA3 LoRa TFLOPs Formula (#2416)
rhmukundan 0e46b18
Revert "Fix LLAMA3 LoRa TFLOPs Formula (#2416)"
ko3n1g 6cf5879
Update Nemotron 3 Nano perf configs (#2510) (#2560)
malay-nagda 5db8d13
scaling up gbs as number of gpus scales up (#2553)
rsalagame-nvidia 57cbd51
chore(fix): Deployment parallelism (#2189)
ko3n1g 605384b
chore: cherry-pick SFT/PEFT recipe support with cfg.validation -> cfg…
yaoyu-33 f56e2b0
[OMNIML2914] Support Nemotron-3-Nano PTQ, TE spec migration, and VLM …
yueshen2016 a479b03
cp: `Bump NVRX`
ko3n1g 388d017
Malay/cp pr 2499 (#2585)
malay-nagda 7cacc75
Onboarding LLAMA3 70B LoRa to B300 and B200 chips (#2397) (#2588)
malay-nagda fd58a55
Fix lint and import error in perf script llama3_llm_finetune.py (#259…
malay-nagda a4c7556
nemotron3_nano_h100_fix_260201 (#2617)
malay-nagda 2ff4462
Tune kimi-k2 GB300 MXFP8 recipe (#2590)
dingqingy-nv a727503
Merge remote-tracking branch 'origin/r0.3.0' into ko3n1g/cp/260201
ko3n1g e39b6da
Update the LoRa TFLOPs Formula Fix without any hardcoding of values …
rhmukundan 8fe60aa
fix test
ko3n1g 44468af
bump modelopt
ko3n1g 7a8ff8d
disable
ko3n1g 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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 1120
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 1977
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 1095
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 3593
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 32005
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 2443
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 2566
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 1787
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 3635
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 528
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 4006
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 506
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 1327
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 684
All distributed ranks load the full HF model unnecessarily — OOM risk.
AutoBridge.from_hf_pretrained(args.hf_path)loads the entire model with all weights viaPreTrainedCausalLM.from_pretrained(), and because there is no rank guard, everytorchrunworker independently loads the full model in parallel. For LLaMA 3-8B that is ~16 GB per rank; with 8 ranks this consumes ~128 GB total VRAM and will cause OOM before pretraining starts.Use
AutoBridge.from_hf_config()instead to load only the configuration, then callto_megatron_provider(load_weights=False)to defer weight loading until after distributed initialization:🛡️ Proposed fix
Also move the
AutoBridgeimport to the top of the file with othermegatron.bridge.*imports to follow the import organization guideline.🤖 Prompt for AI Agents