Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion modelopt/torch/export/plugins/mcore_nemotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@
# Grouped local experts (TEGroupedMLP: fused per-expert weights)
"experts.linear_fc1": GroupedMLPSlicing("backbone.layers.{}.mixer.experts.{{}}.up_proj"),
"experts.linear_fc2": GroupedMLPSlicing("backbone.layers.{}.mixer.experts.{{}}.down_proj"),
# MTP
# MTP predictor projections (outer MultiTokenPredictionLayer). The MTP inner
# attention/MoE layers are structurally identical to the backbone hybrid layers, so
# they reuse the base rules above via is_mtp=True (which retargets the backbone/model
# root to mtp, mirroring the importer) — only these predictor-specific keys are
# dedicated.
"mtp.enorm": NameRemapping("mtp.layers.{}.enorm."),
"mtp.hnorm": NameRemapping("mtp.layers.{}.hnorm."),
"mtp.eh_proj": NameRemapping("mtp.layers.{}.eh_proj."),
Expand Down
Loading
Loading