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

异构环境中的基础模型去中心化训练

Decentralized Training of Foundation Models in Heterogeneous Environments

ETH Zürich(苏黎世联邦理工学院);Stanford University(斯坦福大学);Carnegie Mellon University(卡内基梅隆大学);Meta AI

Binhang Yuan, Yongjun He, Jared Quincy Davis, Tianyi Zhang, Tri Dao, Beidi Chen, Percy Liang, Christopher Re, Ce Zhang

AI总结:

本研究首次在异构去中心化网络中实现基础模型并行训练,通过调度算法和进化优化分配任务块,在跨洲场景下比Megatron快4.8倍。

摘要:

训练基础模型,如GPT-3和PaLM,可能极其昂贵,通常涉及数万个GPU连续运行数月。这些模型通常在具有快速、同构互连的专用集群中训练,并使用精心设计的软件系统,支持数据并行和模型/流水线并行。这种专用集群可能成本高昂且难以获得。我们能否转而利用数量更多、去中心化、异构且带宽较低的互联计算资源?先前关于异构、去中心化环境的研究主要关注可以以纯数据并行方式训练的相对较小的模型。最先进的基础模型并行训练方案,如Megatron,仅考虑同构数据中心环境。在本文中,我们首次研究了在异构网络上的去中心化环境中,使用模型并行训练大型基础模型。我们的关键技术贡献是一种调度算法,该算法将基础模型训练中的不同计算“任务块”分配给一组通过慢速异构网络连接的分散GPU设备。我们提供了一个正式的成本模型,并进一步提出了一种高效的进化算法来寻找最优分配策略。我们进行了大量实验,这些实验代表了使用真实世界网络测量模拟的地理分布式设备上学习的各种场景。在最极端的情况下,跨越3个大洲的8个不同城市,我们的方法比先前最先进的训练系统(Megatron)快4.8倍。

英文摘要:

Training foundation models, such as GPT-3 and PaLM, can be extremely expensive, often involving tens of thousands of GPUs running continuously for months. These models are typically trained in specialized clusters featuring fast, homogeneous interconnects and using carefully designed software systems that support both data parallelism and model/pipeline parallelism. Such dedicated clusters can be costly and difficult to obtain. Can we instead leverage the much greater amount of decentralized, heterogeneous, and lower-bandwidth interconnected compute? Previous works examining the heterogeneous, decentralized setting focus on relatively small models that can be trained in a purely data parallel manner. State-of-the-art schemes for model parallel foundation model training, such as Megatron, only consider the homogeneous data center setting. In this paper, we present the first study of training large foundation models with model parallelism in a decentralized regime over a heterogeneous network. Our key technical contribution is a scheduling algorithm that allocates different computational "tasklets" in the training of foundation models to a group of decentralized GPU devices connected by a slow heterogeneous network. We provide a formal cost model and further propose an efficient evolutionary algorithm to find the optimal allocation strategy. We conduct extensive experiments that represent different scenarios for learning over geo-distributed devices simulated using real-world network measurements. In the most extreme case, across 8 different cities spanning 3 continents, our approach is 4.8X faster than prior state-of-the-art training systems (Megatron).

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

↑