arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16256cs.DCcs.AI
收藏

HETHUB:一种面向大规模模型的异构集群分布式训练系统

HETHUB: A Distributed Training System with Heterogeneous Cluster for Large-Scale Models

Infinigence-AI;Tsinghua University(清华大学);Hangzhou Dianzi University(杭州电子科技大学);China Mobile Research Institute(中国移动研究院);Shanghai Jiao Tong University(上海交通大学)

Si Xu, Zixiao Huang, Yan Zeng, Shengen Yan, Xuefei Ning, Quanlu Zhang, Haolin Ye, Sipei Gu, Chunsheng Shui, Zhezheng Lin, Hao Zhang, Sheng Wang, Guohao Dai, Yu Wang

AI总结:

针对现有分布式训练系统不支持异构GPU集群的问题,本文提出HETHUB,通过统一通信器、性能预测器和自动并行规划器实现混合并行,并在768个异构加速器上高效训练Llama-140B。

摘要:

训练大规模模型依赖大量计算资源。例如,训练具有1.8万亿参数的GPT-4模型需要25000块A100 GPU。使用单一类型的GPU加速器构建大规模集群是一项挑战。采用多种类型的GPU加速器构建大规模集群,是解决同构GPU加速器不足问题的有效途径。然而,现有面向大规模模型的分布式训练系统仅支持同构GPU加速器,不支持异构GPU加速器。为解决该问题,本文提出了一种面向大规模模型、采用混合并行的分布式训练系统HETHUB,它支持异构集群,包括AMD、Nvidia GPU以及其他类型的GPU加速器。该系统引入了一个分布式统一通信器以实现异构GPU加速器之间的通信,并引入分布式性能预测器和自动并行规划器,以便利用异构GPU加速器高效开发和训练模型。与采用同构GPU加速器的分布式训练系统相比,我们的系统能够支持六种异构GPU加速器组合。我们在包含768个GPU加速器(128个AMD和640个GPU加速器A)的异构集群上训练Llama-140B模型。实验结果表明,我们的系统在异构集群中的最优性能最高达到理论上界性能的97.49%。

英文摘要:

Training large-scale models relies on a vast number of computing resources. For example, training the GPT-4 model (1.8 trillion parameters) requires 25000 A100 GPUs . It is a challenge to build a large-scale cluster with one type of GPU-accelerator. Using multiple types of GPU-accelerators to construct a large-scale cluster is an effective way to solve the problem of insufficient homogeneous GPU-accelerators. However, the existing distributed training systems for large-scale models only support homogeneous GPU-accelerators, not support heterogeneous GPU-accelerators. To address the problem, this paper proposes a distributed training system with hybrid parallelism, HETHUB, for large-scale models, which supports heterogeneous cluster, including AMD, Nvidia GPU and other types of GPU-accelerators . It introduces a distributed unified communicator to realize the communication between heterogeneous GPU-accelerators, a distributed performance predictor, and an automatic parallel planner to develop and train models efficiently with heterogeneous GPU-accelerators. Compared to the distributed training system with homogeneous GPU-accelerators, our system can support six combinations of heterogeneous GPU-accelerators. We train the Llama-140B model on a heterogeneous cluster with 768 GPU-accelerators(128 AMD and 640 GPU-accelerator A). The experiment results show that the optimal performance of our system in the heterogeneous cluster has achieved up to 97.49% of the theoretical upper bound performance.

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

↑