Megatron-LM Monthly Activity Report — September 2026 (Final, through September 30, 2026)
Megatron-LM Monthly Activity Report — September 2026 (Final, through September 30, 2026)
Chinese version: 中文版本
Reporting window: 2026-09-01 through 2026-09-30 (Asia/Shanghai); source:
NVIDIA/Megatron-LM.
Overview
Delivered work advanced DeepSeek-V4 and hybrid-model execution, MFSDP and parallel training, MoE and quantization support, inference serving, multimodal SFT, and checkpoint reliability. Ongoing work advances hybrid model architectures, sparse attention, distributed execution, checkpoint portability, CUDA Graph and offload paths, MoE and MTP efficiency, quantization, inference, and determinism.
- Substantive PR activity after filtering: opened 592; merged 291; closed without merge 179; active at cutoff 392.
- Excluded from the report and statistics: test-only 50, CI-only 25, test/CI-only 6, format-only 0.
Delivered
DeepSeek-V4 sparse attention and CSA
DeepSeek-V4 received native hybrid attention construction, compact DSA indexing, fused CSA execution, packed-THD support, and deterministic sparse-attention behavior.
- Added compact cuDNN DSA indexing, load-balanced context-parallel indexing, and plan-driven packed-THD scoring with reusable layout metadata. (dev #5992, dev #6058, dev #6206)
- Added DeepSeek-V4 HybridModel construction and orchestration for compressed, windowed, sink, and D2 attention patterns, including fused SBHD CSA execution and an Agent Compose path using Core fusions, THD attention projection, main-gradient accumulation, and overlapped collectives. (main #6402, main #6404, main #6405, dev #7127)
- Optimized CSA backward and packed-THD training by recomputing inverse RoPE and fusing layout lowering, position mapping, indexer preparation, compressor preparation, and sparse-loss processing. (dev #7036, dev #7064)
- Stabilized fused CSA Top-K ordering and context-parallel padding behavior for deterministic rollout and policy-loss comparisons. (dev #7169)
MFSDP v2 sharding, scheduling, and MXFP8
MFSDP v2 expanded its scheduling, virtual-pipeline, sharding, accumulation, and MXFP8 capabilities.
- Exposed MFSDP v2 lifecycle controls and integrated shared contexts across virtual pipeline chunks, allowing external schedules and VPP execution to coordinate unshard, reshard, prefetch, gradients, and optimizer handling. (main #6484, main #6486)
- Added mixed dense and expert sharding strategies, hybrid FSDP bucket formation, fine-grained 1F1B integration, and correct microbatch accumulation behavior. (main #6594, main #6773, main #7112, main #7186)
- Integrated MXFP8 parameter storage and execution into MFSDP v2, including quantized data and scale planes, redistribution, distributed requantization, and validated compute recipes. (main #7114, main #7265, main #7588)
HybridModel, GDN, and mHC execution
HybridModel execution gained fused GDN paths, hash routing, wide residuals, ShortcutMoE, and CUDA-graph-compatible mHC activation handling.
- Added streamed GatedDeltaNet preprocessing fusion and Transformer Engine fused GDN kernels for training and inference. (main #5532, main #6645)
- Added checkpointed hash routing for early HybridModel MoE layers while retaining learned routing for later layers and MTP. (main #6403)
- Added mHC pipeline and virtual-pipeline execution, streamwise wide residuals, and selective replay of wide-residual boundaries. (dev #6613, main #6716, main #6805, main #7336)
- Added ShortcutMoE hybrid execution and reworked mHC activation-offload ownership and Transformer Engine CUDA-graph capture boundaries. (main #6959, dev #7014)
MoE routing, activations, and quantization
MoE execution gained new dispatch backends, routing representations, balancing, activations, exact counting, and selective MXFP8 inference.
- Added the Mixture-of-Kittens MoE megakernel backend and dense routing-map support for Flex dispatch, preserving routed and shared-expert integration paths. (dev #6572, dev #6614, main #6615)
- Added global-batch quantile-balanced routing, configurable SiTU-GLU activation support, and exact integer expert-token accounting for stable bias updates. (dev #6637, main #6638, dev #6673, main #6674, main #7081, main #7394)
- Added DeepSeek-V3 NVFP4 training support and selective MXFP8 inference storage and batch-invariant MoE execution across supported backends. (main #6841, main #7300, main #7302)
- Added validated attention-logit softcapping across Transformer Engine, local attention, and direct flash-attention paths. (main #6590)
THD, context parallelism, and distributed collectives
Packed sequence training and runtime context parallelism gained dynamic process-group handling, safer stream ordering, and reduced collective overhead.
- Integrated scheduled sequence packing and variable-length THD training into GPT and Hybrid pretraining, with runtime DP×CP and TP×DP×CP group resolution. (main #6742, main #7045)
- Added reusable packed-THD context-parallel layouts and routed runtime CP attention through lazily created Transformer Engine streams with the correct fused RoPE group. (main #6821, main #6912)
- Ordered resharding local-copy streams against the caller stream and bounded NCCL resharding submissions into deterministic parameter batches and task windows. (main #6823, main #7189)
- Made Muon QKV splitting layout-invariant under GTP, added layer-sharded Newton-Schulz processing across the GTP-by-TP domain, and combined repeated MTP output-layer gradients into one GTP reduce-scatter per iteration. (main #6683, main #7117, main #7573)
Inference serving, caching, and request lifecycle
Inference serving improved coordinator routing, prefix caching, MTP attention caching, cancellation, lifecycle ownership, and multimodal preprocessing robustness.
- Reworked coordinator frames, binary request serialization, prompt and multimodal hashing, versioned prefix-cache keys, expanded vision caching, load-aware routing, and TTL eviction to reduce request-processing work and prevent stale cache matches. (main #6497, main #7352)
- Added request cancellation cleanup, MTP attention KV caching across dynamic and disaggregated inference, and model-declared EOS and sampling-default handling. (main #6916, main #7033, main #7191)
- Hardened dynamic inference admission, checkpointing, pause/resume, recompute, completion, and failure ownership so request state and result ownership remain consistent. (main #7256)
- Removed unsafe frontend-replica forking and added Nemotron-VL tubelet image/video metadata to inference prompts. (main #7556)
Multimodal SFT and vision context parallelism
Multimodal SFT gained an Energon data pipeline, packed metadata integration, and vision-token context parallelism.
- Added Energon conversation preprocessing, dynamic-resolution image and video handling, sample packing, and resumable multimodal dataloaders. (main #7254)
- Added packed multimodal metadata propagation, vision-token context parallelism, padding and loss-weight handling, and dataloader checkpoint state support with GTP-spanning rank ownership and shared-file handling for rank-independent loaders. (main #7315, main #7413)
Checkpointing and deterministic reliability
Checkpoint workflows and deterministic execution gained weighted merging, quantized-parameter restoration, corrected RNG ownership, repeated-layer gradient handling, and kernel determinism coverage.
- Added CPU-only weighted torch_dist checkpoint merging without constructing the model or gathering a full checkpoint on one rank. (main #5114)
- Reconstructed MXFP8 parameters from FP32 optimizer masters during checkpoint load and stored expert-parallel RNG state using data/context-parallel coordinates. (main #6666, main #6858)
- Corrected repeated MTP gradient accumulation by removing stale first-microbatch signaling for repeated layers. (main #6965)
- Added byte-exact kernel replay tests, a kernel coverage manifest, and a CI gate for changed kernel-bearing files. (main #7148)
In Progress
Hybrid model architectures and DeepSeek/Qwen model support
Expands HybridModel composition, residual pathways, memory modules, multimodal processing, and model-specific reference implementations.
- HybridModel gains grouped scheduling, first-class layer configuration, attention residual aggregation, Kimi Delta Attention, wide residual and ShortcutMoE composition, and typed cross-layer pipeline state. (main #4942, dev #6840, main #7054, main #7153, main #7440, main #7553, main #7608, main #7678)
- New and extended model paths cover Engram memory, DeepSeek V4/V4.1 variants, DeepSeek-V4 vision routing, DSpark drafting, Qwen4-Exp components, and MiniMax-M3 Lite integration. (main #7178, dev #7224, dev #7231, dev #7285, main #7393, main #7500, pull-request/7500 #7501, pull-request/7501 #7502, pull-request/7502 #7503, dev #7621, main #7667)
- The internal Gated Delta Net backend adds selectable fused forward, backward, and context-parallel boundary kernels on SM100 systems. (dev #6511)
DSA and sparse attention
Builds simplified DSA and sparse-attention training, inference, CUDA Graph, precision, and packed context-parallel paths.
- Simplified DSA over GQA receives model wiring, minimum-memory Triton and autograd kernels, partial CUDA Graph execution, inference integration, and per-parameter optimizer-clock support. (main #6869, main #7152, pull-request/7152 #7156, pull-request/7156 #7158, dev #7206, main #7211)
- Sparse-attention execution adds KPool and NoPE precision controls, CuTe GQA and THD/context-parallel backends, fused MLA RoPE bounds handling, and deterministic DSv4 sparse-attention and sparse-indexer backward paths for SBHD and packed THD execution with stable Top-K and fixed-order gradient accumulation. (main #7104, main #7522, main #7558, main #7614, pull-request/7469 #7708)
- Packed DSv4 attention gains static context parallelism with boundary exchanges, compressed-indexer communication, MTP handling, and packed-THD integration. (main #7469)
Dynamic context parallelism and generalized tensor parallelism
Extends runtime-selected context-parallel topologies, generalized tensor parallelism, packed layouts, and cross-layer distributed transport.
- Generalized tensor parallelism adds asynchronous materialization, communication overlap, low-precision gathers, CUDA Graph support, checkpointing, optimizer integration, and CP-aware rematerialization. (dev #6608, dev #6882)
- Dynamic context parallelism supports arbitrary sizes and propagates runtime topology through schedules, MoE losses, hybrid consumers, Mamba, MTP, and packed hybrid layouts. (dev #6801, main #7046, main #7047, main #7048, main #7128)
- Shared-prefix tree execution, fused TP×CP packed-sequence conversion, and operation-package organization extend distributed execution coverage. (main #7239, main #7387, dev #7545)
MFSDP v2 and uneven distributed sharding
Integrates MFSDP v2 execution, optimizer state, local tensor runtime, TensorAtomic placement, and dense/expert sharding policies.
- MFSDP v2 combines 1F1B execution, VPP contexts, MXFP8 primary weights, distributed Muon, and fused weight-gradient accumulation while retaining local tensors during training. (main #6197, main #6485, main #7101, main #7322)
- Distributed checkpointing and gradient readiness gain optimizer DCP state, declared shared-parameter contribution multiplicities, and combined-1F1B tied-weight handling. (main #6215, main #7581, main #7582)
- TensorAtomic layouts add owner-based placement, uneven collectives, fully sharded construction, and separate dense and expert sharding policies. (main #7396)
Checkpoint conversion, portability, and optimizer resume
Improves checkpoint conversion across FSDP, GTP, PEFT, MoE, and quantized inference layouts.
- An offline CPU-only converter transforms Megatron-FSDP dtensor checkpoints into native torch_dist checkpoints with model and distributed-optimizer state and resharding support. (main #5895)
- Uneven-dtensor preflight validates rank-invariant metadata before collectives, while GTP checkpoint paths preserve fused logical projections, padded layouts, and reshardable optimizer state; tensor-parallel checkpoints also restore the forward FP8 autocast state and recipe for backward recomputation, including fused weight-gradient accumulation. (dev #6573, main #7161, main #7162, main #7168, dev #7538)
- Checkpoint handling adds adapter-only distributed saves, precision-aware optimizer resume, and scalable MoE distributed checkpoint planning. (main #7280, main #7288, main #7644)
CUDA Graph capture and activation offload
Expands graph capture to packed sequences, THD, dynamic CP, hybrid stacks, and CPU activation offload while tightening capture safety.
- THD chunk capture, dynamic-CP storage sharing, dynamic packed-batch staging, and packed-sequence metadata inputs extend full-iteration CUDA Graph replay across variable layouts. (dev #5258, dev #6479, dev #7102, main #7703)
- Hybrid and mHC training gains broader graph coverage, including partial HybridStack spans, full-iteration mHC replay, graph-safe activation offload with fixed virtual addresses, configurable mHC normalization precision, FP32 mapping and residual mixing, mean output contraction, and full activation recomputat
Source: NVIDIA/Megatron-LM