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

通过序列迁移与令牌压缩实现通信高效稀疏激活模型训练

Communication-Efficient Sparsely-Activated Model Training via Sequence Migration and Token Condensation

Fahao Chen, Peng Li, Zicong Hong, Zhou Su, Song Guo

AI总结:

本文提出分布式MoE训练系统Luffy,通过序列迁移隐藏GPU内令牌拉取路径,并利用令牌压缩消除冗余传输,在保持高专家并行度的同时显著降低通信开销,实现最高2.73倍加速。

摘要:

专家混合(Mixture-of-Experts,MoE)是一种通过稀疏激活扩展大模型的新兴技术。MoE模型通常采用专家并行方案以分布式方式训练,其中每个MoE层中的专家分布在多个GPU上。然而,默认的专家并行在专家执行前后,由于GPU之间需要进行全对全的中间数据交换,会带来沉重的网络负担。一些现有工作提出通过迁移专家来减少中间数据交换,以降低网络负载,但这会降低专家执行的并行度,使计算效率下降。现有工作的不足促使我们探索是否有可能在保持高专家并行度的同时减少GPU间流量。本文给出了肯定的回答,提出了Luffy,一个具有两项新技术的通信高效分布式MoE训练系统。首先,Luffy在GPU之间迁移序列,将繁重的令牌拉取路径隐藏在GPU内部,避免在GPU之间复制专家。其次,我们提出令牌压缩技术,识别相似令牌并消除冗余传输。我们基于PyTorch实现了Luffy,并在16块V100 GPU的测试平台上评估其性能。与最先进的MoE训练系统相比,Luffy系统可实现高达2.73倍的加速。

英文摘要:

Mixture-of-Experts (MoE) is an emerging technique for scaling large models with sparse activation. MoE models are typically trained in a distributed manner with an expert parallelism scheme, where experts in each MoE layer are distributed across multiple GPUs. However, the default expert parallelism suffers from the heavy network burden due to the all-to-all intermediate data exchange among GPUs before and after the expert run. Some existing works have proposed to reduce intermediate data exchanges by transferring experts to reduce the network loads, however, which would decrease parallelism level of expert execution and make computation inefficient. The weaknesses of existing works motivate us to explore whether it is possible to reduce inter-GPU traffic while maintaining a high degree of expert parallelism. This paper gives a positive response by presenting Luffy, a communication-efficient distributed MoE training system with two new techniques. First, Luffy migrates sequences among GPUs to hide heavy token pulling paths within GPUs and avoid copying experts over GPUs. Second, we propose token condensation that identifies similar tokens and then eliminates redundant transmissions. We implement Luffy based on PyTorch and evaluate its performance on a testbed of 16 V100 GPUs. Luffy system can achieve a speedup of up to 2.73x compared to state-of-the-art MoE training systems.

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

↑