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

ATOM:去中心化环境中大规模模型的异步深度学习训练

ATOM: Asynchronous Training of Massive Models for Deep Learning in a Decentralized Environment

Xiaofeng Wu, Jia Rao, Wei Chen

AI总结:

针对去中心化环境下大规模模型训练受限于硬件的问题,提出ATOM异步训练框架,通过模型交换在消费级硬件上训练完整LLM,静态分析优化策略,较流水线并行最高提升20倍效率。

摘要:

Transformer架构的出现推动了自然语言处理(NLP)模型的发展,在众多NLP任务中取得了显著成就。然而,缺乏诸如大容量GPU内存和高速互连等专用硬件,给大规模模型的训练带来了挑战。这使得许多用户难以尝试大型语言模型(LLMs)的预训练和微调。在本研究中,我们引入了ATOM,一个弹性分布式训练框架,旨在使用经济高效的硬件(包括消费级GPU和以太网)在去中心化环境中异步训练庞大模型。与传统的将子模型分布到各GPU上的模型划分方法不同,ATOM旨在通过无缝模型交换在一台主机(对等节点)上容纳完整的LLM,并同时在多个对等节点上训练多个副本以优化训练吞吐量。通过静态分析,ATOM确定最佳模型划分策略,并将模型执行与交换完美融合。ATOM的主要优势包括:避免流水线并行方法中存在的单点故障;在较慢的网络中,与紧密集成的流水线并行相比,展现出优越的性能和可扩展性。我们使用不同GPT-3模型配置进行的实验表明,在网络连接欠佳的场景中,与最先进的去中心化流水线并行方法相比,ATOM可将训练效率提升高达20倍。

英文摘要:

The advent of the Transformer architecture has propelled the growth of natural language processing (NLP) models, leading to remarkable achievements in numerous NLP tasks. Yet, the absence of specialized hardware like expansive GPU memory and high-speed interconnects poses challenges for training large-scale models. This makes it daunting for many users to experiment with pre-training and fine-tuning large language models (LLMs). In this study, we introduce \atom, a resilient distributed training framework designed for asynchronous training of vast models in a decentralized setting using cost-effective hardware, including consumer-grade GPUs and Ethernet. Unlike conventional model partitioning methods that distribute sub-models across GPUs, \atom aims to accommodate a complete LLM on one host (peer) through seamlessly model swapping and concurrently trains multiple copies across various peers to optimize training throughput. Through static analysis, \atom identifies the best model partitioning strategy and flawlessly merges model execution with swapping. Key benefits of \atom include: Avoiding the central point of failure found in pipeline parallelism methods. Demonstrating superior performance and scalability compared to closely-integrated pipeline parallelism in slower networks. Our experiments using different GPT-3 model configurations reveal that, in scenarios with suboptimal network connections, \atom can enhance training efficiency up to $20 \times$ when juxtaposed with the state-of-the-art decentralized pipeline parallelism approaches.

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

↑