You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Megatron distributed-checkpoint validate_sharding_integrity rejects the per-expert MoE weight_quantizer._amax tensor introduced by #1550 ("Support per expert weight quantizer in TEGroupedMLP") when the quantized checkpoint is saved and then reloaded under a different parallel topology (or is an older golden checkpoint):
The per-expert scalar _amax is registered with global_shape=(1,) and no expert-axis identity, so multiple experts/ranks resolve to the same global offset and integrity validation fails. On multi-rank saves the first failure is followed by secondary ncclRemoteError: remote process exited prematurely on other ranks.
The _global_amax variant already rides with a global expert identity (see modelopt/torch/quantization/plugins/megatron.py), but the plain per-expert weight_quantizer._amax does not appear to get the same treatment on reshard.
Where it reproduces (nmm-sandbox CW-DFW L0)
examples/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16/megatron_lm_qad_regression.yaml — quantize saves then train/eval reloads /scratchspace/golden_curve_qad/te/nano30b_nvfp4_quant (TP=4 ETP=1 EP=8), fails on load.
Both were green before the per-expert-quantizer change and have been failing since; they are now quarantined (allow-to-fail) in nmm-sandbox CI pending this fix.
Suggested direction
Give the per-expert weight_quantizer._amax sharded tensors a correct global expert identity (matching the _global_amax handling) so they reshard across TP/EP/ETP topology, or exclude the scalar per-expert _amax from validate_sharding_integrity. Related in-flight work: #1553 (NVFP4 _global_amax TP/EP sync — adjacent but touches calibration, not the checkpoint sharding metadata).
Filed from nmm-sandbox pipeline #63140716 (CW-DFW). Introduced by #1550.
Activity
mohityadav8 commentedon Aug 28, 2026
@kevalmorabia97 @jenchen13 can i work in this issue ?
jenchen13 commentedon Sep 4, 2026
I have a fix for this in #2319
Fix TEGroupedMLP quantizer checkpoint resharding (#2319)
jenchen13 commentedon Sep 15, 2026
this has been fixed by #2319