Megatron-LM Monthly Activity Report — September 2026

Author: lhb8125Created Oct 1, 2026Updated Oct 1, 2026

Megatron-LM Monthly Activity Report — September 2026

Period: 2026-09-01 through 2026-09-30 (Asia/Shanghai); source: NVIDIA/Megatron-LM.

Overview

Delivered work expanded DeepSeek-V4 execution, MFSDP v2 sharding, packed THD training, multimodal SFT, and inference reliability. Ongoing work extends hybrid model architectures, dynamic context parallelism, CUDA Graph coverage, sparse-attention determinism, and checkpoint portability, with validation limits retained below.

  • PRs opened: 662; merged during the period: 332; closed without merge: 206; still open at period end: 329.
  • Excluded from the narrative: test-only 48, CI-only 25, test/CI-only 6, format-only 0.

Delivered

DeepSeek-V4 sparse attention and Megatron Lite execution

Added native DeepSeek-V4 attention construction, compact indexing, and fused compressed sparse attention, alongside experimental Megatron Lite capabilities.

  • HybridModel now constructs compressed and window attention patterns with native SBHD execution and indexer-loss tracking through MTP.
  • Added SM100 BF16/MXFP8 compact indexing and an SM90+ cuDNN fused CSA backend for supported configurations.
  • Balanced packed-THD indexer scoring distributes work across CP ranks; scoring dispatch, deterministic Top-K selection, packed fusion, and stable JIT keys address correctness and execution overhead.
  • Megatron Lite gained weight-only QAT, router replay, dynamic CP, and Hugging Face checkpoint streaming. Existing Core fusions also reduced step times in the reported eight-H100 DeepSeek-V4 proxy.

Related PRs: #5992, #6058, #6206, #6397, #6402, #6404, #6405, #7064, #7127, #7169, #7343

MFSDP v2: independent expert sharding, MXFP8, and parallel schedules

Expanded MFSDP v2 across dense/expert sharding policies, low-precision weights, and pipeline execution while correcting gradient handling.

  • Dense and expert parameters can use independent ZeRO strategies, optimizer-instance counts, and outer sharding policies, including outer optimizer sharding over replicated inner weights.
  • MXFP8 weight sharding preserves data/scale ownership and high-precision optimizer updates; the adapter exposes both high-precision and MXFP8 parameter gathering.
  • Shared contexts coordinate VPP chunks, and lifecycle callbacks integrate fine-grained 1F1B execution with expert-parallel communication overlap.
  • Fixed precision-aware gradient clipping and hybrid-DP microbatch accumulation; context parallelism is also enabled with MFSDP v2 coverage additions in the source facts. Initialization on the current stream reduced peak reserved and device memory by 20.47 GiB in the reported workload.

Related PRs: #6486, #6594, #6773, #6885, #7012, #7074, #7112, #7114, #7186, #7220, #7588

Packed THD training and runtime context parallelism

Connected variable-length sequence packing to pretraining and strengthened packed layouts, runtime CP binding, and pipeline communication.

  • GPT and HybridModel pretraining now connect variable-length datasets, packing schedules, training, and evaluation.
  • Per-sequence CP partitioning preserves packed metadata and MTP zigzag layouts while reusing redistribution plans. Runtime group and RoPE binding fixes address incorrect positions, crashes, and topology leakage.
  • Hybrid-CP batch construction and rerun iterators now preserve the schemas and iterator contracts required by training.
  • MTP boundary communication uses CP-local rings. Fixed-shape packed P2P removes shape handshakes, including VPP; a reported DeepSeek-V4 PP2×VPP2 proxy reduced step time by 6% in eager mode and 3.5% with CUDA graphs.

Related PRs: #6742, #6746, #6820, #6821, #6822, #6912, #7000, #7045, #7483

MoE megakernels, ShortcutMoE, and global-batch routing

Added alternative expert execution and communication overlap while strengthening routing-state and expert-gradient correctness.

  • The pluggable Mixture-of-Kittens backend combines dispatch, routed/shared experts, and combine using MCore-owned parameters. Metadata preservation prevents MXFP8 experts from entering incorrect dense synchronization buckets.
  • ShortcutMoE overlaps attention with expert all-to-all communication; reported candidate configurations achieved 4.7%–12.1% speedups.
  • Hash routing supports configured early HybridModel layers and excludes their auxiliary load-balancing loss; no load-balance or performance benefit is established.
  • Kimi K3 global-batch quantile balancing landed on dev, with the grouped main change still open. Integer token accounting prevents rounded counts from reversing expert-bias updates, and routing-map aliasing fixes restore valid backward execution.

Related PRs: #6403, #6572, #6637, #6959, #7079, #7081, #7289, #7394, #7610

DeepSeek-V3 NVFP4 and selective BF16/MXFP8 execution

Expanded low-precision training and inference while preserving module-specific precision choices.

  • DeepSeek-V3 NVFP4 support covers MTP, expert-parallel overlap, delayed weight gradients, and fused-MLA optimizer restoration; reverted support was subsequently reinstated.
  • Transformer Engine integration fuses Q up-projection, RoPE, and MXFP8 quantization.
  • Grouped-MLP fusion respects per-layer precision overrides and distributed-weight support. Inference recipes preserve selected BF16 modules alongside MXFP8 experts through loading and refit.
  • Added supported batch-invariant MXFP8 MoE paths, Kimi K3 SiTU-GLU, and fused clamped squared-ReLU execution under the documented backend and hardware requirements.

Related PRs: #6213, #6673, #6841, #7212, #7300, #7302, #7318, #7328, #7496

Wide residuals, activation memory, and CUDA Graph execution

Added configurable wide-residual execution and replay while improving graph-compatible activation ownership and memory behavior.

  • HybridStack integration and reusable streamwise operators support learned retention and FP32 residual accumulation with BF16/FP16 branches.
  • Selective wide-residual replay reduces saved boundary activations without recomputing attention, Mamba, MLP, or MoE branches.
  • Hybrid mHC offload ownership and packed-THD attention graph splitting preserve reload ordering and recomputation state; storage managed by output-discarding checkpointing is excluded from conflicting offload.
  • MFSDP v2 full-iteration CUDA graphs preserve optimizer gradient bindings, with dense-model determinism coverage; data-dependent MoE dispatch remains outside the validated scope. Removing deterministic allocation fills delivered roughly 15% higher reported TFLOP/s on large configurations, while kernel warmup separates compilation memory from live training allocations.

Related PRs: #6716, #6805, #7014, #7044, #7075, #7093, #7385, #7579, #7599, #7600, #7635

Layer-sharded Muon and GTP gradient correctness

Reduced optimizer and repeated-MTP communication costs while correcting logical-shape and shared-gradient handling.

  • Layer-sharded Muon assigns Newton-Schulz owners and exchanges matrices in batches. Reported production-shape optimizer time fell from 264 to 139 ms with bit-identical results to duplicated execution.
  • QKV splitting and update scaling now use logical unpadded shapes; expert gradient prescaling corrects unequal GTP and EGTP degrees.
  • CUDA Graph replay reproduces repeated parameter-readiness notifications, and Transformer Engine shared-layer handling preserves gradients accumulated across MTP depths.
  • Repeated-MTP reduce-scatter buffer reuse reduced reported rank-zero peak allocated memory by 5.39 GiB. Shared output-projection accumulation reduced reduce-scatters from three to one in a separate four-GB200 proxy.

Related PRs: #6683, #6862, #6965, #7117, #7165, #7236, #7470, #7573

Weighted checkpoint merging and faithful training resume

Added offline checkpoint averaging and repaired metadata, RNG, optimizer, and dataloader restoration paths.

  • Compatible torch_dist checkpoints can be merged with weighted schedules and iteration-window selection for evaluation or resumed training.
  • Analytical MFSDP checkpoint chunks remove one collective per DTensor while preserving metadata and checkpoint bytes.
  • Rank-local RNG storage preserves independent DP/CP streams after resume; the new layout is incompatible with old RNG entries. MXFP8 regeneration from FP32 masters restores encoding reproducibility.
  • Dataloader ownership under GTP, nested optimizer traversal, CPU-offloaded Adam step restoration, and multimodal resume fixes preserve continuation state. Meta-tensor construction also handles PyTorch checkpoint metadata containing strides.

Related PRs: #5114, #6214, #6666, #6858, #7354, #7355, #7413, #7620, #7629, #7639

Qwen3.5-VL, LLaVA, and packed multimodal SFT

Expanded multimodal training across hybrid decoders, pipeline/context parallelism, and resumable packed datasets.

  • Qwen3.5-VL uses explicit HybridModel GDN, attention, and MLP patterns and supports pipeline-stage construction and execution.
  • MIMO projectors can reside on the first language-model rank with placement-independent checkpoint keys; multimodal language components can initialize from language-only checkpoints.
  • Energon conversation and image/video processing, resumable loaders, and packed metadata connect Super hybrid models to multimodal SFT, including Mamba sequence IDs and hybrid MTP inputs.
  • LLaVA propagates packed metadata through vision CP split/gather and dataloader checkpoint handling. Token-weighted SFT evaluation avoids bias from unequal valid-token counts.

Related PRs: #6081, #6315, #6843, #7207, #7253, #7254, #7255, #7315, #7316

Inference serving, MTP decoding, and distributed model refit

Expanded serving and decoding capabilities while protecting request state, multimodal inputs, and refreshed model weights.

  • DP-scaled HTTP frontends and load-aware, weight-versioned prefix routing reduce CPU coordination bottlenecks; cancellation and lifecycle fixes preserve request ownership across checkpointing and pause/resume.
  • Chat handling rejects request-supplied templates and moves template tokenization off the event loop. FP32 sampling and model-declared EOS handling improve generation consistency.
  • ReFIT stream ordering prevents stale copies, bounded NCCL submissions prevent refit deadlocks, and component-aware planning transfers MIMO weights into LLaVA inference models. GTP inference resharding also supports the reported tied-embedding GRPO workflow.
  • MTP-only training excludes the frozen backbone from optimizer and gradient storage; MTP attention gains KV caching, and GDP gains speculative decoding. Multimodal prefix stitching and RadioViT TP fixes preserve conversation and vision inputs.

Related PRs: #6223, #6497, #6823, #6916, #6940, #7021, #7033, #7070, #7182, #7189, #7191, #7245, #7256, #7367, #7598, #7665

In Progress

DeepSeek-V4.1, Qwen3.8-Flash-Next, and MiniMax-M3 hybrid models

Work in progress extends hybrid model construction with sparse attention, n-gram memory, hyper-connections, and draft-model training.

  • DeepSeek-V4.1 work combines CSA2, single-pass mHC, Engram, and packed THD CP. The Flash training path reports 100 steps on real 128K data without NaNs on 64 GB300 GPUs; broader reference validation remains incomplete.
  • Engram/Qwen PLE adds expert-sharded trainable n-gram tables and checkpoint resharding. Standard HybridStack Engram integration currently targets unpacked FP32/BF16 execution with TP=CP=PP=1.
  • Qwen4-Exp/Qwen3.8-Flash-Next components include Qwen Sparse Attention, hashed memory, gated-residual mHC, and GDN output gating. MiniMax-M3 work adds its text stack, checkpoint mappings, sparse attention, and Lite HybridEP dispatcher.
  • Kimi Delta Attention adds packed THD and CP support. DSpark introduces draft-component objectives and validation; reduced-width synthetic runs establish execution and updates, not released-scale convergence or throughput.

Related PRs: #7054, #7224, #7231, #7285, #7393, #7500, #7501, #7503, #7553, #7621

Deterministic DeepSeek-V4 sparse attention and trainable GQA indexing

Ongoing attention work combines staged indexer training with deterministic kernels and boundary-correct sparse execution.

  • DSA-over-GQA introduces learned Top-K indexing and tiled kernels that avoid a full sequence-by-sequence QK matrix. Separate optimizer clocks and reset/freeze controls support staged indexer training.
  • DeepSeek-V4 determinism work stabilizes Top-K ordering and indexer gradients and selects deterministic sparse backward paths. Packed-CP support on compatible SM100 hardware requires serialized workspace use and prewarmed graph shapes.
  • Corrections address fused YaRN head bounds, compiled packed-document boundary lookup, and sample-local CSA backward indexing.
  • KPool indexing and NoPE MLA add GLM-5.3-Flash attention conventions with document-aware pooling and selective precision controls.

Related PRs: #7104, #7152, #7156, #7158, #7181, #7441, #7522, #7705, #7706, #7708

Dynamic CP schedules and typed cross-layer pipeline state

Work is extending per-microbatch topology changes and differentiable cross-layer state through standard parallel schedules.

  • Dynamic CP integration covers PP, VPP, MTP, and hybrid attention/state-space consumers, including Mamba rebinding. The hybrid-layer topology work excludes CUDA graphs.
  • MoE routing, auxiliary losses, expert synchronization, and metrics follow each microbatch's effective CP topology and valid-token counts.
  • Typed cross-layer state preserves gradients and mixed dtypes across recomputation, graphs, and parallel boundaries. Eager PP validation covers TP=CP=1; VPP full-model multi-GPU validation r