arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.05296cs.LGcs.AIcs.DC
收藏

MoEBlaze: 破解现代GPU上高效MoE训练的内存瓶颈

MoEBlaze: Breaking the Memory Wall for Efficient MoE Training on Modern GPUs

Meta Platforms Inc(Meta平台公司);Thinking Machines Lab(Thinking Machines实验室)

Jiyuan Zhang, Yining Liu, Siqi Yan, Lisen Deng, Jennifer Cao, Shuqi Yang, Min Ni, Bi Xue, Shen Li

AI总结:

MoEBlaze通过优化的数据结构和协同设计的内核,实现高效MoE训练,提升性能并减少内存消耗。

摘要:

普遍存在的'内存瓶颈'在现代大规模混合专家(MoE)架构中被显著放大。MoE固有的架构稀疏性导致了稀疏算术计算,同时也引入了显著的激活内存开销——由大型令牌路由缓冲区和需要材料化和缓冲中间张量的需求驱动。这种内存压力限制了GPU上可容纳的最大批量大小和序列长度,并导致过多的数据移动,阻碍了性能和高效模型扩展。我们提出了MoEBlaze,一种内存高效的MoE训练框架,通过一种协同设计的系统方法来解决这些问题:(i)一种端到端的令牌调度和MoE训练方法,通过优化的数据结构来消除中间缓冲区和激活材料化;(ii)协同设计的内核与智能激活检查点,以减轻内存足迹,同时实现更好的性能。我们证明,与现有MoE框架相比,MoEBlaze可以实现超过4倍的加速和超过50%的内存节省。

英文摘要:

The pervasive "memory wall" bottleneck is significantly amplified in modern large-scale Mixture-of-Experts (MoE) architectures. MoE's inherent architectural sparsity leads to sparse arithmetic compute and also introduces substantial activation memory overheads -- driven by large token routing buffers and the need to materialize and buffer intermediate tensors. This memory pressure limits the maximum batch size and sequence length that can fit on GPUs, and also results in excessive data movements that hinders performance and efficient model scaling. We present MoEBlaze, a memory-efficient MoE training framework that addresses these issues through a co-designed system approach: (i) an end-to-end token dispatch and MoE training method with optimized data structures to eliminate intermediate buffers and activation materializing, and (ii) co-designed kernels with smart activation checkpoint to mitigate memory footprint while simultaneously achieving better performance. We demonstrate that MoEBlaze can achieve over 4x speedups and over 50% memory savings compared to existing MoE frameworks.

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

↑