HAP:基于自动程序合成的异构GPU集群SPMD DNN训练
HAP: SPMD DNN Training on Heterogeneous GPU Clusters with Automated Program Synthesis
AI总结:
HAP系统将SPMD DNN训练的模型划分形式化为程序合成问题,联合优化张量分片策略、异构设备分片比例和通信方法,在异构GPU集群上实现高达2.41倍加速。
摘要:
单程序多数据(SPMD)并行近年来已被用于训练大型深度神经网络(DNN)。很少有研究探索其在异构集群上的适用性,以充分利用可用资源进行大模型学习。本文提出HAP,一个旨在加速异构集群上SPMD DNN训练的自动化系统。HAP联合优化张量分片策略、异构设备间的分片比例以及张量交换的通信方法,以实现SPMD并行下的优化分布式训练。我们创新性地将模型划分形式化为一个程序合成问题,在该问题中,我们从一个分布式指令集上从零生成一个分布式程序,该程序在语义上类似于为单设备设计的程序,并利用基于A*的搜索算法系统地探索解空间。我们通过将最优张量分片比例形式化为线性规划问题来推导它。此外,HAP探索异构集群中的张量通信优化,并将其作为程序合成过程的一部分进行集成,以自动选择最优的集合通信原语并应用充分因子广播技术。在代表性工作负载上的大量实验表明,HAP在异构集群上实现了高达2.41倍的加速。
英文摘要:
Single-Program-Multiple-Data (SPMD) parallelism has recently been adopted to train large deep neural networks (DNNs). Few studies have explored its applicability on heterogeneous clusters, to fully exploit available resources for large model learning. This paper presents \OurSystem, an automated system designed to expedite SPMD DNN training on heterogeneous clusters. \OurSystem jointly optimizes the tensor sharding strategy, sharding ratios across heterogeneous devices and the communication methods for tensor exchanges for optimized distributed training with SPMD parallelism. We novelly formulate model partitioning as a program synthesis problem, in which we generate a distributed program from scratch on a distributed instruction set that semantically resembles the program designed for a single device, and systematically explore the solution space with an A*-based search algorithm. We derive the optimal tensor sharding ratios by formulating it as a linear programming problem. Additionally, \OurSystem explores tensor communication optimization in a heterogeneous cluster and integrates it as part of the program synthesis process, for automatically choosing optimal collective communication primitives and applying sufficient factor broadcasting technique. Extensive experiments on representative workloads demonstrate that \OurSystem achieves up to 2.41x speed-up on heterogeneous clusters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。