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

FlowMoE:面向分布式混合专家训练的可扩展流水线调度框架

FlowMoE: A Scalable Pipeline Scheduling Framework for Distributed Mixture-of-Experts Training

Zhejiang University(浙江大学);Institute for Communication Systems (ICS), University of Surrey(萨里大学通信系统研究所);Xi’an Jiaotong-Liverpool University(西交利物浦大学);Northeastern University(东北大学);Khalifa University(哈利法大学)

Yunqi Gao, Bing Hu, Mahdi Boloursaz Mashhadi, A-Long Jin, Yanfeng Zhang, Pei Xiao, Rahim Tafazolli, Merouane Debbah

AI总结:

FlowMoE提出统一流水线调度框架,覆盖MHA、门控、专家计算及A2A通信,并通过张量块优先级机制重叠全归约通信,显著降低训练时间、能耗和内存使用。

摘要:

现代大型语言模型(LLM)的参数规模可以通过稀疏激活的混合专家(MoE)技术进行扩展,以避免计算成本的过度增加。为了进一步提高训练效率,将计算与通信进行流水线化已成为分布式MoE训练中一种有前景的解决方案。然而,现有工作主要关注MoE层内的任务调度,如专家计算和全对全(A2A)通信,而忽略了其他关键操作,包括多头注意力(MHA)计算、门控和全归约通信。在本文中,我们提出了FlowMoE,一个用于调度多类型任务流水线的可扩展框架。首先,FlowMoE构建了一个统一的流水线,以一致地调度MHA计算、门控、专家计算和A2A通信。其次,FlowMoE引入了一种基于张量块优先级的调度机制,以将全归约通信与所有计算任务重叠。我们在PyTorch之上将FlowMoE实现为一个自适应且通用的框架。在两个GPU集群上使用675个典型MoE层和四个真实世界MoE模型进行的大量实验表明,我们提出的FlowMoE框架优于最先进的MoE训练框架,将训练时间减少了13%-57%,能耗减少了10%-39%,内存使用减少了7%-32%。

英文摘要:

The parameter size of modern large language models (LLMs) can be scaled up via the sparsely-activated Mixture-of-Experts (MoE) technique to avoid excessive increase of the computational costs. To further improve training efficiency, pipelining computation and communication has become a promising solution for distributed MoE training. However, existing work primarily focuses on scheduling tasks within the MoE layer, such as expert computing and all-to-all (A2A) communication, while neglecting other key operations including multi-head attention (MHA) computing, gating, and all-reduce communication. In this paper, we propose FlowMoE, a scalable framework for scheduling multi-type task pipelines. First, FlowMoE constructs a unified pipeline to consistently scheduling MHA computing, gating, expert computing, and A2A communication. Second, FlowMoE introduces a tensor chunk-based priority scheduling mechanism to overlap the all-reduce communication with all computing tasks. We implement FlowMoE as an adaptive and generic framework atop PyTorch. Extensive experiments with 675 typical MoE layers and four real-world MoE models across two GPU clusters demonstrate that our proposed FlowMoE framework outperforms state-of-the-art MoE training frameworks, reducing training time by 13%-57%, energy consumption by 10%-39%, and memory usage by 7%-32%.

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

↑