GB200 LLM performance scripts tuning#12791
Merged
erhoo82 merged 17 commits intoNVIDIA-NeMo:mainfrom Apr 7, 2025
Merged
Conversation
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
erhoo82
reviewed
Apr 3, 2025
| parser.add_argument( | ||
| "-fsdp", | ||
| "--use_mcore_fsdp", | ||
| help="Enable Mcore FSDP. Disabled by default", |
Collaborator
There was a problem hiding this comment.
Fix to Enable Megatron Core (Mcore) FSDP. Disabled by default
Signed-off-by: Guyue Huang <guyueh@nvidia.com>
Collaborator
|
stopping pipeline since merge-conflict in the context of limited time before code-freeze. |
Signed-off-by: guyueh1 <140554423+guyueh1@users.noreply.github.com>
Collaborator
Author
|
@erhoo82 all checks passed, we can merge it if you approve |
ko3n1g
pushed a commit
that referenced
this pull request
Apr 7, 2025
* Add gb200 config, support FSDP and recompute in perf script Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Support offloading; change recipes Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix tp overlap config for gb200 Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix csv column name Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix ckpt layers in gb200 config Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Make Nemotron FP8 B200 use ring-exchange for GEMM+RS Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Tune configs for 405b bf16 and gpt Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Use pp config for nemotron 340b Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix tp overlap error by aggregate=False Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Make nemotron-340b bf16 use fsdp Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Handle segment for GB200 Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Disable CG when using FSDP Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Rm dp_size from B200 csv Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Address comments Signed-off-by: Guyue Huang <guyueh@nvidia.com> --------- Signed-off-by: Guyue Huang <guyueh@nvidia.com> Signed-off-by: guyueh1 <140554423+guyueh1@users.noreply.github.com>
jomitchellnv
pushed a commit
to jomitchellnv/NeMo
that referenced
this pull request
Apr 8, 2025
* Add gb200 config, support FSDP and recompute in perf script Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Support offloading; change recipes Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix tp overlap config for gb200 Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix csv column name Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix ckpt layers in gb200 config Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Make Nemotron FP8 B200 use ring-exchange for GEMM+RS Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Tune configs for 405b bf16 and gpt Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Use pp config for nemotron 340b Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix tp overlap error by aggregate=False Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Make nemotron-340b bf16 use fsdp Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Handle segment for GB200 Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Disable CG when using FSDP Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Rm dp_size from B200 csv Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Address comments Signed-off-by: Guyue Huang <guyueh@nvidia.com> --------- Signed-off-by: Guyue Huang <guyueh@nvidia.com> Signed-off-by: guyueh1 <140554423+guyueh1@users.noreply.github.com> Signed-off-by: Jonathan Mitchell <jomitchell@nvidia.com>
chtruong814
pushed a commit
that referenced
this pull request
Apr 10, 2025
* Add gb200 config, support FSDP and recompute in perf script * Support offloading; change recipes * Fix tp overlap config for gb200 * Fix csv column name * Fix ckpt layers in gb200 config * Make Nemotron FP8 B200 use ring-exchange for GEMM+RS * Tune configs for 405b bf16 and gpt * Use pp config for nemotron 340b * Fix * Fix tp overlap error by aggregate=False * Make nemotron-340b bf16 use fsdp * Handle segment for GB200 * Disable CG when using FSDP * Rm dp_size from B200 csv * Address comments --------- Signed-off-by: Guyue Huang <guyueh@nvidia.com> Signed-off-by: guyueh1 <140554423+guyueh1@users.noreply.github.com> Co-authored-by: guyueh1 <140554423+guyueh1@users.noreply.github.com>
rrbale-nvidia
pushed a commit
to rrbale-nvidia/NeMo
that referenced
this pull request
Apr 11, 2025
* Add gb200 config, support FSDP and recompute in perf script Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Support offloading; change recipes Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix tp overlap config for gb200 Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix csv column name Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix ckpt layers in gb200 config Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Make Nemotron FP8 B200 use ring-exchange for GEMM+RS Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Tune configs for 405b bf16 and gpt Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Use pp config for nemotron 340b Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Fix tp overlap error by aggregate=False Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Make nemotron-340b bf16 use fsdp Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Handle segment for GB200 Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Disable CG when using FSDP Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Rm dp_size from B200 csv Signed-off-by: Guyue Huang <guyueh@nvidia.com> * Address comments Signed-off-by: Guyue Huang <guyueh@nvidia.com> --------- Signed-off-by: Guyue Huang <guyueh@nvidia.com> Signed-off-by: guyueh1 <140554423+guyueh1@users.noreply.github.com> Signed-off-by: Ritvik Bale <rbale@nvidia.com>
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.
Important
The
Update branchbutton must only be pressed in very rare occassions.An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.
What does this PR do ?
Tune the performance benchmarks of LLMs for GB200.
Collection: [Note which collection this PR will affect]
Changelog
Usage
# Add a code snippet demonstrating how to use thisGitHub Actions CI
The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information