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

在Frontier上以低带宽分区扩展大语言模型训练

Scaling Large Language Model Training on Frontier with Low-Bandwidth Partitioning

The Ohio State University(俄亥俄州立大学)

Lang Xu, Quentin Anthony, Jacob Hatef, Aamir Shafi, Hari Subramoni, Dhabaleswar K., Panda

AI总结:

本文针对Frontier超算集群提出3级层次分区策略,优化ZeRO++的通信与内存利用,在20B GPT模型上实现每GPU 1.71倍TFLOPS提升和0.94扩展效率。

摘要:

扩展大语言模型(LLM)训练涉及在有限数量的工作节点之间分配海量训练参数。然而,像ZeRO-3这样大幅降低GPU内存压力的方法,往往会产生大量通信开销,以确保全局同步和一致性。已有的工作如ZeRO++利用次级分区来避免节点间通信,因为节点内GPU到GPU的传输通常比节点间连接具有更高的带宽和更低的延迟。然而,随着像Frontier这样配备AMD GPU、具有强大计算能力的基础设施的出现,有必要对其硬件拓扑进行研究,并制定有针对性的策略来提高训练效率。在这项工作中,我们为ZeRO++提出了一组通信和优化策略,以降低通信成本并提高内存利用率。在本文中,我们专门针对目前排名第二的超级计算集群Frontier提出了一种3级层次分区方法,旨在利用不同通信层(GCD-GCD、GPU-GPU和节点间)的各种带宽来减少通信开销。对于一个20B的GPT模型,与ZeRO++相比,在扩展到384个GCD时,我们观察到每个GPU的TFLOPS提升了1.71倍,并且在最多384个GCD的情况下扩展效率达到0.94。

英文摘要:

Scaling up Large Language Model(LLM) training involves fitting a tremendous amount of training parameters across a limited number of workers. However, methods like ZeRO-3 that drastically reduce GPU memory pressure often incur heavy communication to ensure global synchronization and consistency. Established efforts such as ZeRO++ use secondary partitions to avoid inter-node communications, given that intra-node GPU-GPU transfer generally has more bandwidth and lower latency than inter-node connections. However, as more capable infrastructure like Frontier, equipped with AMD GPUs, emerged with impressive computing capability, there is a need for investigations on the hardware topology and to develop targeted strategies to improve training efficiency. In this work, we propose a collection of communication and optimization strategies for ZeRO++ to reduce communication costs and improve memory utilization. In this paper, we propose a 3-level hierarchical partitioning specifically for the current 2nd ranked supercomputing cluster, Frontier, which aims at leveraging various bandwidths across layers of communications (GCD-GCD, GPU-GPU, and inter-node) to reduce communication overhead. For a 20B GPT model, we observe a 1.71x increase in TFLOPS per GPU when compared with ZeRO++ up to 384 GCDs and a scaling efficiency of 0.94 for up to 384 GCDs.

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

↑