arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.12705cs.DCcs.AI
收藏

优化Frontier上大规模语言模型的分布式训练

Optimizing Distributed Training on Frontier for Large Language Models

Oak Ridge National Laboratory(橡树岭国家实验室);Université Paris-Saclay(巴黎萨克雷大学)

Sajal Dash, Isaac Lyngaas, Junqi Yin, Xiao Wang, Romain Egele, Guojing Cong, Feiyi Wang, Prasanna Balaprakash

AI总结:

本研究探索在Frontier超级计算机上高效训练大规模语言模型的分布式策略,通过张量、流水线和分片数据并行技术及超参数调优,实现了不同规模模型的高吞吐量和扩展效率。

摘要:

大规模语言模型(LLMs)作为基础模型已展现出显著的成功,通过微调惠及各种下游应用。近期关于损失缩放的研究表明,与较小规模的LLMs相比,更大规模的LLMs具有更优越的性能。然而,训练具有数十亿参数的大规模语言模型面临重大挑战,需要大量的计算资源。例如,在20万亿个token上训练一个一万亿参数的GPT风格模型需要惊人的1.2亿百亿亿次浮点运算。本研究探索高效的分布式训练策略,以从Frontier(世界上第一台专用于开放科学的百亿亿次超级计算机)中提取这种计算能力。我们启用并研究了各种模型和数据并行训练技术,如张量并行、流水线并行和分片数据并行,以促进在Frontier上训练万亿参数模型。我们通过实验评估这些技术及其相关参数,以确定它们对内存占用、通信延迟和GPU计算效率的影响。我们分析了这些技术之间复杂的相互作用,并通过超参数调优找到了一种组合它们的策略,以实现高吞吐量。通过实证分析和超参数调优,我们确定了训练不同规模大型LLMs的高效策略。对于22亿、1750亿和1万亿参数,我们分别实现了38.38%、36.14%和31.96%的GPU吞吐量。对于1750亿参数模型和1万亿参数模型的训练,我们分别在1024和3072个MI250X GPU上实现了100%的弱扩展效率。我们还为这两个模型实现了89%和87%的强扩展效率。

英文摘要:

Large language models (LLMs) have demonstrated remarkable success as foundational models, benefiting various downstream applications through fine-tuning. Recent studies on loss scaling have demonstrated the superior performance of larger LLMs compared to their smaller counterparts. Nevertheless, training LLMs with billions of parameters poses significant challenges and requires considerable computational resources. For example, training a one trillion parameter GPT-style model on 20 trillion tokens requires a staggering 120 million exaflops of computation. This research explores efficient distributed training strategies to extract this computation from Frontier, the world's first exascale supercomputer dedicated to open science. We enable and investigate various model and data parallel training techniques, such as tensor parallelism, pipeline parallelism, and sharded data parallelism, to facilitate training a trillion-parameter model on Frontier. We empirically assess these techniques and their associated parameters to determine their impact on memory footprint, communication latency, and GPU's computational efficiency. We analyze the complex interplay among these techniques and find a strategy to combine them to achieve high throughput through hyperparameter tuning. We have identified efficient strategies for training large LLMs of varying sizes through empirical analysis and hyperparameter tuning. For 22 Billion, 175 Billion, and 1 Trillion parameters, we achieved GPU throughputs of $38.38\%$, $36.14\%$, and $31.96\%$, respectively. For the training of the 175 Billion parameter model and the 1 Trillion parameter model, we achieved $100\%$ weak scaling efficiency on 1024 and 3072 MI250X GPUs, respectively. We also achieved strong scaling efficiencies of $89\%$ and $87\%$ for these two models.

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

↑