arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.16375cs.LGcs.DCmath.OC
收藏

UniAP:通过混合整数二次规划统一层间与层内自动并行

UniAP: Unifying Inter- and Intra-Layer Automatic Parallelism by Mixed Integer Quadratic Programming

National Key Laboratory for Novel Software Technology(计算机软件新技术国家重点实验室)

Hao Lin, Ke Wu, Jie Li, Jun Li, Wu-Jun Li

AI总结:

针对现有自动并行方法未联合优化层间与层内并行导致次优解的问题,提出UniAP方法,通过混合整数二次规划统一两类并行策略,在五个Transformer模型上吞吐量提升达3.80倍,优化时间缩短达107倍。

摘要:

分布式学习常用于训练深度学习模型,尤其是大型模型。在分布式学习中,手动并行(MP)方法需要大量人力且灵活性有限。因此,近年来提出了自动并行(AP)方法来自动化并行策略优化过程。现有AP方法因未联合优化两类并行策略(即层间并行和层内并行)而存在次优解问题。本文提出一种名为UniAP的新型AP方法,通过混合整数二次规划统一层间与层内自动并行。据我们所知,UniAP是首个能联合优化两类并行策略以找到最优解的并行方法。实验结果表明,在五个基于Transformer的模型上,UniAP的吞吐量较现有最优方法提升高达3.80倍,策略优化时间缩短高达107倍。

英文摘要:

Distributed learning is commonly used for training deep learning models, especially large models. In distributed learning, manual parallelism (MP) methods demand considerable human effort and have limited flexibility. Hence, automatic parallelism (AP) methods have recently been proposed for automating the parallel strategy optimization process. Existing AP methods suffer from sub-optimal solutions because they do not jointly optimize the two categories of parallel strategies (i.e., inter-layer parallelism and intra-layer parallelism). In this paper, we propose a novel AP method called UniAP, which unifies inter- and intra-layer automatic parallelism by mixed integer quadratic programming. To the best of our knowledge, UniAP is the first parallel method that can jointly optimize the two categories of parallel strategies to find an optimal solution. Experimental results show that UniAP outperforms state-of-the-art methods by up to 3.80$\times$ in throughput and reduces strategy optimization time by up to 107$\times$ across five Transformer-based models.

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

↑