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

HetuMoE:一个高效的万亿级混合专家分布式训练系统

HetuMoE: An Efficient Trillion-scale Mixture-of-Expert Distributed Training System

Xiaonan Nie, Pinxue Zhao, Xupeng Miao, Tong Zhao, Bin Cui

摘要:

由于巨型密集模型提高了模型的质量,但需要大量的GPU预算进行训练,因此提出了一种条件计算架构--稀疏门控专家混合(MoE)来扩展模型,同时保持其计算量不变。具体来说,输入令牌由门网络路由,并且仅激活专家网络的一部分。现有的MoE训练系统仅支持昂贵的高带宽GPU集群下的部分主流MoE模型(例如Top k)训练。在本文中,我们提出了Hetu MoE,一个高性能的大规模稀疏MoE训练系统建立在Hetu。HetuMoE提供多种门控策略和高效的GPU内核实现。为了进一步提高商品GPU集群(例如,只有1个NiC)的训练效率,我们引入了分层AllToAll通信,它结合了分层网络和聚合消息。与现有的最先进的MoE系统相比,Hetu MoE获得至少15%的加速比。具体而言,HetuMoE在开关门下的性能优于DeepSpeed-MoE高达8.1倍,批量大小为32。我们的代码可在https://github.com/PKU-DAIR/Hetu上获取。

英文摘要:

As giant dense models advance quality but require large amounts of GPU budgets for training, the sparsely gated Mixture-of-Experts (MoE), a kind of conditional computation architecture, is proposed to scale models while keeping their computation constant. Specifically, the input tokens are routed by the gate network and only activates part of the expert network. Existing MoE training systems only support part of mainstream MoE models (e.g. Top k) training under expensive high-bandwidth GPU clusters. In this paper, we present HetuMoE, a high-performance large-scale sparse MoE training system built on Hetu. HetuMoE provides multiple gating strategies and efficient GPU kernel implementations. To further improve the training efficiency on commodity GPU clusters (e.g, with only 1 NiC), we introduce the hierarchical AllToAll communication that combines hierarchical networks and aggregating messages. Compared with existing state-of-the-art MoE systems, HetuMoE obtains at least 15% speedup. Specifically, HetuMoE outperforms DeepSpeed-MoE up to 8.1x under the switch gate with a batch size of 32. Our code is available at: https://github.com/PKU-DAIR/Hetu.

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

↑