arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.11432cs.LGcs.DC
收藏

MegaScale-MoE:生产环境中大规模混合专家模型的高效通信训练

MegaScale-MoE: Large-Scale Communication-Efficient Training of Mixture-of-Experts Models in Production

School of Computer Science, Peking University(北京大学计算机学院)
Chao Jin, Ziheng Jiang, Zhihao Bai, Zheng Zhong, Juncai Liu, Xiang Li, Ningxin Zheng, Xi Wang, Cong Xie, Qi Huang, Wen Heng, Yiyuan Ma, Wenlei Bao, Size Zheng, … 展开作者

Chao Jin, Ziheng Jiang, Zhihao Bai, Zheng Zhong, Juncai Liu, Xiang Li, Ningxin Zheng, Xi Wang, Cong Xie, Qi Huang, Wen Heng, Yiyuan Ma, Wenlei Bao, Size Zheng, Yanghua Peng, Haibin Lin, Xuanzhe Liu, Xin Jin, Xin Liu

AI总结:

MegaScale-MoE提出面向生产环境的通信高效MoE训练系统,通过定制并行策略、通信计算重叠及压缩技术,在1440块Hopper GPU上训练352B模型达1.41M tokens/s,较Megatron-LM效率提升1.88倍。

摘要:

我们提出了MegaScale-MoE,一个专为高效训练大规模混合专家(MoE)模型而设计的生产系统。MoE作为一种有前景的架构,能够将大型语言模型(LLM)扩展到前所未有的规模,从而提升模型性能。然而,现有的MoE训练系统面临训练效率下降的问题,且随着MoE模型规模的不断扩大和硬件的持续演进,这一问题愈发严重。\n\n认识到高效通信在提升MoE训练中的关键作用,MegaScale-MoE为每个MoE层中的注意力机制和前馈网络(FFN)定制了通信高效的并行策略,并采用整体方法在算子间和算子内两个层面实现通信与计算的重叠。此外,MegaScale-MoE应用了带有调整后通信模式的通信压缩以降低精度,进一步提升了训练效率。在1440块NVIDIA Hopper GPU上训练一个352B参数的MoE模型时,MegaScale-MoE实现了1.41M tokens/s的训练吞吐量,与Megatron-LM相比效率提升了1.88倍。我们分享了在加速MoE训练方面的运维经验,并希望通过提供系统设计方面的见解,这项工作能够激励未来在MoE系统领域的研究。

英文摘要:

We present MegaScale-MoE, a production system tailored for the efficient training of large-scale mixture-of-experts (MoE) models. MoE emerges as a promising architecture to scale large language models (LLMs) to unprecedented sizes, thereby enhancing model performance. However, existing MoE training systems experience a degradation in training efficiency, exacerbated by the escalating scale of MoE models and the continuous evolution of hardware. Recognizing the pivotal role of efficient communication in enhancing MoE training, MegaScale-MoE customizes communication-efficient parallelism strategies for attention and FFNs in each MoE layer and adopts a holistic approach to overlap communication with computation at both inter- and intra-operator levels. Additionally, MegaScale-MoE applies communication compression with adjusted communication patterns to lower precision, further improving training efficiency. When training a 352B MoE model on 1,440 NVIDIA Hopper GPUs, MegaScale-MoE achieves a training throughput of 1.41M tokens/s, improving the efficiency by 1.88$\times$ compared to Megatron-LM. We share our operational experience in accelerating MoE training and hope that by offering our insights in system design, this work will motivate future research in MoE systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑