-
Notifications
You must be signed in to change notification settings - Fork 206
[ckpt] refactor: Consolidate fused expert mappings and fix MTP inference #2685
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
Open
yaoyu-33
wants to merge
5
commits into
main
Choose a base branch
from
yuya/refactor-fused-expert-mappings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ff3705b
[ckpt] refactor: Consolidate fused expert mappings and fix MTP inference
yaoyu-33 8d66144
ci: re-trigger CI
yaoyu-33 2dfbb99
[model] fix: add missing GLMExpertGateUpProjMapping alias in glm_moe_…
yaoyu-33 3cc9686
[ckpt] fix: fix ruff I001 lint error in glm_moe_mappings.py
yaoyu-33 29616bc
[model, test] fix: add PROVIDER_CLASS and null_attr guards for Qwen3N…
yaoyu-33 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
Oops, something went wrong.
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: 31680
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 2666
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 1656
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 3162
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 957
🏁 Script executed:
Repository: NVIDIA-NeMo/Megatron-Bridge
Length of output: 1934
Set MTP config to None for inference;
mtp_processalone is insufficient.Lines 171–172 only toggle a model-specific attribute. For models where
config.mtp_num_layersis set, MTP remains enabled at the config level, which training/inference logic checks to determine whether to use MTP. Additionally,grad_scale_funcmust be set to None to prevent NCCL collective hangs during inference.Apply the following fix to match the pattern used in
hf_to_megatron_generate_vlm.pyandcompare_hf_and_megatron/compare.py:🔧 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents