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

Xiaonan Nie, Pinxue Zhao, Xupeng Miao, Tong Zhao, Bin Cui
3/28/2022
cs.DC
moe

Official code: PKU-DAIR/Hetu (344 stars, Python, Apache-2.0, last commit 2025-12-13).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

PKU-DAIR/HetuOfficial100%
Apache-2.0

A high-performance distributed deep learning system targeting large-scale and automated distributed training.

34444Python, C++Jul 18, 202111 months agoApache-2.0
artificial-intelligenceautograddata-sciencedeep-learningdeep-neural-networks+8 more

Similar Papers

Cite this paper

@article{nie2022hetumoe,
  title  = {HetuMoE: An Efficient Trillion-scale Mixture-of-Expert Distributed Training System},
  author = {Xiaonan Nie and Pinxue Zhao and Xupeng Miao and Tong Zhao and Bin Cui},
  year   = {2022},
  eprint = {2203.14685},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.14685}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.14685.svg)](https://codeofpaper.com/paper/2203.14685)

Discussion