arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.19429cs.DCcs.LG
收藏

Lancet:通过全图计算-通信重叠加速混合专家训练

Lancet: Accelerating Mixture-of-Experts Training via Whole Graph Computation-Communication Overlapping

The University of Hong Kong(香港大学);Amazon Web Services(亚马逊网络服务);Boson AI(玻色人工智能)

Chenyu Jiang, Ye Tian, Zhen Jia, Shuai Zheng, Chuan Wu, Yida Wang

AI总结:

Lancet系统通过训练图级别的划分、流水线化和梯度权重计算调度,实现非MoE计算与全交换通信的重叠,显著加速混合专家模型训练,非重叠通信时间最多减少77%,端到端加速最高达1.3倍。

摘要:

混合专家(MoE)技术在扩大深度神经网络模型参数规模方面发挥着关键作用。然而,它在训练过程中面临全交换(all-to-all)通信延迟延长的挑战。现有方法试图通过将全交换与专家计算重叠来缓解这一问题。但这些方法往往难以实现充分的重叠,从而限制了性能提升的潜力。在我们的研究中,我们通过在更广泛的训练图层面考虑重叠来扩展这一挑战的范围。在前向传播过程中,我们通过仔细的划分和流水线化,使非MoE计算能够与全交换重叠。在后向传播过程中,我们通过调度梯度权重计算来实现与全交换的重叠。我们在Lancet中实现了这些技术,Lancet是一个使用基于编译器的优化来自动增强MoE模型训练的系统。我们广泛的评估表明,Lancet显著减少了用于非重叠通信的时间,最多减少了77%。此外,与最先进的解决方案相比,它实现了高达1.3倍的显著端到端加速。

英文摘要:

The Mixture-of-Expert (MoE) technique plays a crucial role in expanding the size of DNN model parameters. However, it faces the challenge of extended all-to-all communication latency during the training process. Existing methods attempt to mitigate this issue by overlapping all-to-all with expert computation. Yet, these methods frequently fall short of achieving sufficient overlap, consequently restricting the potential for performance enhancements. In our study, we extend the scope of this challenge by considering overlap at the broader training graph level. During the forward pass, we enable non-MoE computations to overlap with all-to-all through careful partitioning and pipelining. In the backward pass, we achieve overlap with all-to-all by scheduling gradient weight computations. We implement these techniques in Lancet, a system using compiler-based optimization to automatically enhance MoE model training. Our extensive evaluation reveals that Lancet significantly reduces the time devoted to non-overlapping communication, by as much as 77%. Moreover, it achieves a notable end-to-end speedup of up to 1.3 times when compared to the state-of-the-art solutions.

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

↑