arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.00254cs.AIcs.CL
收藏

面向大语言模型的自动规划最优并行策略

Automatically Planning Optimal Parallel Strategy for Large Language Models

HUAWEI(华为)

Zongbiao Li, Xiezhao Li, Yinghao Cui, Yijun Chen, Zhixuan Gu, Yuxuan Liu, Wenbo Zhu, Fei Jia, Ke Liu, Qifeng Li, Junyao Zhan, Jiangtao Zhou, Chenxi Zhang, Qike Liu

AI总结:

本文提出一种基于模型与硬件信息自动规划大语言模型最优并行策略的算法,通过训练时长仿真模型和解空间剪枝实现实时搜索,实验表明其估计准确率达96%且推荐策略始终全局最优。

摘要:

基于Transformer的大规模语言模型参数量逐渐增加,计算集群的规模也在不断扩大。快速调动大量计算资源进行并行计算的技术正变得越来越重要。本文提出了一种自动并行算法,该算法根据模型和硬件信息自动规划吞吐量最大的并行策略。通过将训练时间解耦为计算、通信和重叠三部分,我们建立了训练时长仿真模型。基于该仿真模型,我们对并行解空间进行剪枝,以缩短所需的搜索时间。多节点实验结果表明,该算法能够实时估计并行训练时长,平均准确率达到96%。在我们的测试中,该算法提供的推荐策略始终是全局最优的。

英文摘要:

The number of parameters in large-scale language models based on transformers is gradually increasing, and the scale of computing clusters is also growing. The technology of quickly mobilizing large amounts of computing resources for parallel computing is becoming increasingly important. In this paper, we propose an automatic parallel algorithm that automatically plans the parallel strategy with maximum throughput based on model and hardware information. By decoupling the training time into computation, communication, and overlap, we established a training duration simulation model. Based on this simulation model, we prune the parallel solution space to shorten the search time required. The multi-node experiment results show that the algorithm can estimate the parallel training duration in real time with an average accuracy of 96%. In our test, the recommendation strategy provided by the algorithm is always globally optimal.

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

↑