BaGuaLu-2: Taming Dynamic Memory Fluctuation for Efficient MoE Model Training over 10,000 GPUs
Mingshu Zhai, Minkun Guo, Hongrui Lian, Shuangyu Li, Qi Zhang, Chen Hu, Xiawei Du, Yuyang Jin, Zan Zong, Jidong Zhai
Abstract
Fine-grained Mixture-of-Experts (MoE) is the de facto architecture for scaling large language models. However, dynamic expert load imbalance causes severe memory fluctuations that degrade training efficiency. Existing systems rely on static memory provisioning: they either over-provision, leaving GPU memory idle during normal execution, or under- provision, inviting out-of-memory crashes and costly manual rollbacks when load spikes occur. To address these challenges, we propose BaGuaLu-2, a large-scale MoE training system that eliminates this dilemma through flexible provisioning. By transforming memory allocation from a static, one-time tuning choice into a continuous and fine-grained control. BaGuaLu-2 grants exact activation memory on demand for each training batch. Furthermore, it offsets any dynamic management overhead through system optimizations. BaGuaLu-2 demonstrates exceptional scalability, training a model with 1040 billion parameters across 12,288 GPUs while sustaining over 2 EFlops at 35% MFU. Compared with state-of-the-art systems, BaGuaLu-2 delivers 1.14x and 1.13x average throughput improvements over Megatron-Kuai and AdaPipe, respectively.
Create a lesson
Related papers
TrimSO(2): Fast and Memory-Efficient Training of Equivariant Interatomic Potentials
Shared title terminologycs.DCChen Wang, Yuanchang Zhou, Guangming Tan et al.
SlackSwap: Bandwidth-Aware Activation Swapping and Recomputation for Memory-Efficient DNN Training
Shared title terminologycs.DCHui Feng, Xun Zhou, Yuxin Wang
Fast and Memory Efficient Offload Training Framework with Hybrid XPU Computation
Shared title terminologycs.DCZhiyi Yao, Zuning Liang, Yuedong Xu et al.
Memory-Efficient Expert Routing for Distributed MoE Training
Shared title terminologycs.DCArnab Kanti Tarafder, Jaume Guasch-Martí, Gokcen Kestor et al.
SMART-Sharding: Scaling Per-tensor Sharding Search in LLM Training with Symbolic Dynamic Programming
Shared title terminologycs.DCKimia Noorbakhsh, Samuel Kushnir, Kavya Sreedhar et al.
LIBRA: Runtime Co-Tuning of Batch Size and Parallelism for Time-Efficient LLM Training
Shared title terminologycs.DCShengkai Lyu, Hairui Zhao, Daran Sun et al.