Addressing MoE Training Bottlenecks
Mixture of Experts (MoE) models, such as DeepSeek-V3, offer efficient training through conditional computation. However, scaling MoE training presents significant challenges due to the dynamic nature of token routing and expert activation. Traditional MoE approaches, like capacity-based methods, often rely on fixed token budgets or padding, introducing inefficiencies and potentially compromising model quality. The NVIDIA Transformer Engine addresses these bottlenecks directly.
During training, MoE models generate ragged tensors – tensors with varying shapes – due to the unpredictable distribution of tokens across experts. This necessitates specialized kernel optimizations to handle these irregular data structures efficiently. The JAX Python library and NVIDIA Transformer Engine’s targeted kernel optimizations significantly improve MoE model operations.
Dropless MoE and Optimized Kernels
Dropless MoE preserves model quality by processing every token without dropping or padding. The NVIDIA Transformer Engine achieves this through grouped GEMM kernels and NCCL EP, which fuse dispatch and combine stages and deduplicate tokens to reduce network traffic. This approach avoids the inefficiencies associated with fixed expert shapes and variable token counts, a key differentiator from capacity-based MoE.
Scaling Efficiency and Implementation
With the full stack, sustained 97% scaling efficiency was observed at 1,024 GPUs on NVIDIA GB300 NVL72 hardware when training DeepSeek-V3 671B. The NVIDIA NGC MaxText container, with Transformer Engine enabled, provides a reproducible JAX MoE path. Detailed setup instructions are available in the MaxText MoE Configuration guide, and the Transformer Engine documentation provides a comprehensive understanding of the library’s capabilities.



