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

Pro-Prophet:一种用于大规模 MoE 模型高效并行训练的系统性负载均衡方法

Pro-Prophet: A Systematic Load Balancing Method for Efficient Parallel Training of Large-scale MoE Models

Wei Wang, Zhiquan Lai, Shengwei Li, Weijie Liu, Keshi Ge, Ao Shen, Huayou Su, Dongsheng Li

AI总结:

本文提出系统性负载均衡方法 Pro-Prophet,通过 planner 搜索通信高效的负载均衡策略、scheduler 优化通信与计算重叠,显著提升大规模 MoE 模型并行训练吞吐量,相对 Deepspeed-MoE 和 FasterMoE 最高加速 2.66 倍。

摘要:

深度学习模型的规模一直在增大,以提升模型质量。训练计算预算随模型规模线性增长,意味着训练超大规模模型极其耗时。近年来,专家混合(Mixture of Experts, MoE)引起了广泛关注,因为它能够在保持稳定计算预算的同时将模型扩展到超大规模。然而,大规模 MoE 模型分布式训练的低效阻碍了其更广泛的应用。具体而言,训练过程中设备之间会出现显著的动态负载不均衡,严重降低吞吐量。已有若干负载均衡工作被提出以应对这一挑战。与算法级方案相比,系统级方案因其硬件亲和性以及不干扰模型收敛而受到更多关注。然而,它们面临通信成本高和通信-计算重叠差的困扰。为解决这些挑战,我们提出了一种系统性负载均衡方法 Pro-Prophet,它由一个 planner 和一个 scheduler 组成,用于大规模 MoE 模型的高效并行训练。为适应动态负载不均衡,我们采集训练统计数据并利用它们设计 Pro-Prophet。为降低通信量,Pro-Prophet planner 确定一系列轻量级负载均衡策略,并基于统计数据高效搜索一种通信高效的训练策略。为实现通信与计算的充分重叠,Pro-Prophet scheduler 基于统计数据和操作特征调度数据依赖操作,进一步提高训练吞吐量。实验结果表明,与 Deepspeed-MoE 和 FasterMoE 相比,Pro-Prophet 实现了最高 2.66 倍的加速。此外,与 FasterMoE 相比,Pro-Prophet 的负载均衡提升最高可达 11.01 倍。

英文摘要:

The size of deep learning models has been increasing to enhance model quality. The linear increase in training computation budget with model size means that training an extremely large-scale model is exceedingly time-consuming. Recently, the Mixture of Expert (MoE) has drawn significant attention as it can scale models to extra-large sizes with a stable computation budget. However, inefficient distributed training of large-scale MoE models hinders their broader application. Specifically, a considerable dynamic load imbalance occurs among devices during training, significantly reducing throughput. Several load-balancing works have been proposed to address the challenge. System-level solutions draw more attention for their hardware affinity and non-disruption of model convergence compared to algorithm-level ones. However, they are troubled by high communication costs and poor communication-computation overlapping. To address these challenges, we propose a systematic load-balancing method, Pro-Prophet, which consists of a planner and a scheduler for efficient parallel training of large-scale MoE models. To adapt to the dynamic load imbalance, we profile training statistics and use them to design Pro-Prophet. For lower communication volume, Pro-Prophet planner determines a series of lightweight load-balancing strategies and efficiently searches for a communication-efficient one for training based on the statistics. For sufficient overlapping of communication and computation, Pro-Prophet scheduler schedules the data-dependent operations based on the statistics and operation features, further improving the training throughput. Experimental results indicate that Pro-Prophet achieves up to 2.66x speedup compared to Deepspeed-MoE and FasterMoE. Additionally, Pro-Prophet achieves a load-balancing enhancement of up to 11.01x when compared to FasterMoE.

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

↑