arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.19241cs.DC
收藏

UniEP:统一的专家并行MoE MegaKernel用于LLM训练

UniEP: Unified Expert-Parallel MoE MegaKernel for LLM Training

ByteDance Seed(字节跳动种子);Tsinghua University(清华大学)

Size Zheng, Xuegui Zheng, Li-wen Chang, Jidong Zhai

AI总结:

本文提出UniEP,通过统一专家并行优化策略,将MoE通信与计算融合为MegaKernel,实现自动化适应性调整,提升LLM训练效率并保持精度。

摘要:

大语言模型参数的指数增长使模型训练变得越来越资源密集。随着摩尔定律停滞和计算吞吐量与通信带宽的差距扩大,专家并行性(EP)已成为扩展混合专家(MoE)模型的关键策略。然而,尽管有众多优化EP的提案,如通信压缩和计算-通信重叠,但在生产级框架如Megatron-LM中仍较为保守。现有解决方案通常依赖于随意且复杂的内核,缺乏在多样化优化配置中的适应性,并经常忽视数值稳定性,无法满足大规模训练的严格精度要求。在本文中,我们介绍UniEP,一种新的系统,将多种EP优化策略统一为一个统一的抽象。UniEP将MoE通信和计算融合为MegaKernels,有效地将复杂的架构调优转化为统一的参数搜索空间,以实现自动化适应性。关键的是,UniEP结合了一种确定性的令牌排序机制,确保在激进的重叠调度下也能保持数值一致性。我们评估了UniEP在配备NVIDIA Hopper GPU的GPU集群上。我们的结果表明,UniEP在状态-of-the-art工作上实现了1.03×-1.38×的加速,有效缓解了通信瓶颈,同时保持了生产LLM训练所需的严格准确性标准。

英文摘要:

The exponential growth in Large Language Model (LLM) parameters has transformed model training into an increasingly resource-intensive endeavor. With the stagnation of Moore's Law and the widening disparity between computation throughput and communication bandwidth, expert parallelism (EP) has emerged as a critical strategy for scaling mixture-of-experts (MoE) models. However, despite numerous proposals for optimizing EP, ranging from communication compression to computation-communication overlap, adoption within production-grade frameworks like Megatron-LM remains conservative. Existing solutions often rely on ad-hoc, complex kernels that lack adaptability across diverse optimization configurations and frequently neglect numerical stability, failing to meet the strict precision requirements of large-scale training. In this paper, we introduce UniEP, a novel system that unifies diverse EP optimization strategies into a cohesive abstraction. UniEP fuses the MoE communication and computation into MegaKernels, effectively transforming complex architectural tuning into a unified parameter search space for automated adaptability. Crucially, UniEP incorporates a deterministic token ordering mechanism that guarantees numerical consistency with sequential execution, even under aggressive overlap schedules. We evaluate UniEP on GPU clusters equipped with NVIDIA Hopper GPUs. Our results demonstrate that UniEP achieves 1.03$\times$-1.38$\times$ speedups over state-of-the-art work, effectively mitigating communication bottlenecks while maintaining the rigorous accuracy standards required for production LLM training.

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

↑