Repository navigation
[MCore] Add global-batch quantile balancing - #7394
Merged
jaredcasper merged 7 commits intoOct 22, 2026
Merged
Conversation
svcnvidia-nemo-ci
marked this pull request as draft
September 16, 2026 09:02
Contributor
|
This PR has been automatically converted to draft because all PRs must start as drafts. When you are ready for review, click Ready for Review to begin the review process. This will:
See the contribution guide for more details. |
rkarimimahab
marked this pull request as ready for review
September 16, 2026 09:03
jaredcasper
approved these changes
Sep 16, 2026
yaox12
approved these changes
Sep 17, 2026
guihong-nv
approved these changes
Sep 18, 2026
kvareddy
approved these changes
Sep 18, 2026
Contributor
|
/ok to test bf2428b |
ericharper
approved these changes
Sep 23, 2026
Contributor
|
/ok to test 8895c55 |
ericharper
enabled auto-merge
September 28, 2026 23:24
auto-merge was automatically disabled
September 30, 2026 21:51
Head branch was pushed to by a user without write access
Contributor
|
#7986 will make this failing test report only, after that goes in we can update and retry. |
Signed-off-by: Harry Zhou <hhanyu@nvidia.com> Signed-off-by: rkarimimahab <rkarimimahab@nvidia.com>
Signed-off-by: Rabeeh Mahabadi <rkarimimahab@nvidia.com>
Signed-off-by: Rabeeh Mahabadi <rkarimimahab@nvidia.com> Signed-off-by: rkarimimahab <rkarimimahab@nvidia.com>
Signed-off-by: Rabeeh Mahabadi <rkarimimahab@nvidia.com>
Signed-off-by: Rabeeh Mahabadi <rkarimimahab@nvidia.com> Signed-off-by: rkarimimahab <rkarimimahab@nvidia.com>
Signed-off-by: rkarimimahab <rkarimimahab@nvidia.com>
rkarimimahab
force-pushed
the
rkarimimahab/k3-quantile-balancing
branch
from
October 22, 2026 11:14
e423010 to
eb9dfdb
Compare
Contributor
|
/ok to test eb9dfdb |
Contributor
|
/ok to test d7cd30d |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/39845870495 |
asolergi-nv
added a commit
to asolergi-nv/Megatron-LM
that referenced
this pull request
Oct 23, 2026
Seventeen upstream commits since 9e5aad0, none touching a file this branch changes; no conflicts. The merge brings in NVIDIA#8414 ("Fix import error by DSA spec"), which repairs the import of megatron.core.transformer.experimental_attention_variant.dsa_layer_specs that made the Installation Test fail on main from 2026-10-21 up to and including 9e5aad0, and therefore on this branch's head 09cced3. Also in: NVIDIA#8404 removed eight gpt functional-test cases (the corpus-parity gate now covers 297 configs), NVIDIA#7394 added two MoE router flags (outside the data group; the data-arguments snapshot is unchanged), NVIDIA#7926 removed an inference flag. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: asolergi-nv <asolergibert@nvidia.com>
nemo-autobot-origin Bot
pushed a commit
to svcnemo-autobot/Megatron-LM
that referenced
this pull request
Oct 24, 2026
Repairs semantic interactions between the imported main slice (tip f9d9bdc) and dev dd8f93b found by the baseline sweep and review: - experimental_attention_variant/dsa_gqa.py: mark main NVIDIA#7156's DSGQACoreAttention as a DSA indexer-loss metric writer (logs_dsa_indexer_loss = True, as DSAttention and CSA do) so dev's fixed-capacity DSA metric tracker reserves capacity for it. - moe/experts.py: assign TEGroupedMLP.activation_recompute (and the fp8/fp4 set_save_original_input(linear_fc2) hook) before the fused-impl support check reads it; read main's _grouped_linear_kwargs with a getattr default in _make_fused_ops, matching the existing getattr(self, "activation_recompute", False) convention. - moe/router.py: restore main NVIDIA#7394's global-batch branch in TopKRouter.quantile_balancing(), gated on dev's use_quantile_balancing. - multi_token_prediction.py: black formatting (AST-equivalent). - test_attention_variant_dsa_gqa.py: cover metric-tracker initialization followed by a DSA-GQA training forward, with and without indexer loss. - test_fine_grained_activation_offloading.py: map expert_fc1 + moe_act to main's fused_group_mlp offload-summary group. - test_multi_token_prediction.py: apply main NVIDIA#8211's cfg.finalize() pattern in the dev-only TestMHCMTPIntegration. Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
This branch was previously deployed
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?
Issue tracking
For PRs from open-source community contributors:
Linked issue:
Contribution process
Pre-checks
jit_fuser/torch.compile, CUDA extension, TE or external-library dispatch, or a scatter/index accumulation), I have added or updated its bit-exact determinism test and registered it intests/unit_tests/determinism/kernels/manifest.py(guide)Code review
Feel free to message or comment @NVIDIA/mcore-oncall to help accelerate your merge into main. The less complex your PR is, the faster it will be approved and merged!
All PRs start as draft. If you open a non-draft PR, it will be automatically converted to draft.
Step 1: Mark PR as "Ready for Review"
.github/CODEOWNERS.Final Review might get declined if these requirements are not fulfilled.
Step 2: Final Review
For PRs that change
megatron/core, once all expert reviewers have approved, theFinal Reviewlabel is applied automatically and final reviewers are assigned.For PRs outside
megatron/core, this step is skipped.Step 3: Approved
Once all required reviewers have approved, the
Approvedlabel is applied automatically.Merge
Any member of mcore-engineers will be able to merge your PR.