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

SWARM并行:训练大模型可以具有出人意料的通信效率

SWARM Parallelism: Training Large Models Can Be Surprisingly Communication-Efficient

HSE University(高等经济大学);Yandex(扬克斯);University of Washington(华盛顿大学)

Max Ryabinin, Tim Dettmers, Michael Diskin, Alexander Borzunov

AI总结:

提出SWARM parallelism模型并行训练算法,通过在节点间创建临时随机流水线并在故障时重平衡,使在连接差、异构且不可靠的设备上高效训练大模型成为可能。

摘要:

许多深度学习应用受益于使用具有数十亿参数的大模型。由于需要专用的HPC集群,训练这些模型出了名地昂贵。在这项工作中,我们考虑了训练大模型的替代设置:使用廉价的“可抢占”实例,或汇集来自多个区域的现有资源。我们分析了在这些条件下现有模型并行算法的性能,并找到了使训练更大模型变得不那么通信密集的配置。基于这些发现,我们提出了SWARM parallelism,这是一种专为连接不良、异构和不可靠设备设计的模型并行训练算法。SWARM在节点之间创建临时的随机化流水线,并在发生故障时重新平衡。我们凭经验验证了这些发现,并将SWARM parallelism与现有的大规模训练方法进行了比较。最后,我们将我们的见解与压缩策略相结合,在具有不到200Mb/s网络的抢占式T4 GPU上训练了一个具有1B共享参数(共享前约13B)的大型Transformer语言模型。

英文摘要:

Many deep learning applications benefit from using large models with billions of parameters. Training these models is notoriously expensive due to the need for specialized HPC clusters. In this work, we consider alternative setups for training large models: using cheap "preemptible" instances or pooling existing resources from multiple regions. We analyze the performance of existing model-parallel algorithms in these conditions and find configurations where training larger models becomes less communication-intensive. Based on these findings, we propose SWARM parallelism, a model-parallel training algorithm designed for poorly connected, heterogeneous and unreliable devices. SWARM creates temporary randomized pipelines between nodes that are rebalanced in case of failure. We empirically validate our findings and compare SWARM parallelism with existing large-scale training approaches. Finally, we combine our insights with compression strategies to train a large Transformer language model with 1B shared parameters (approximately 13B before sharing) on preemptible T4 GPUs with less than 200Mb/s network.

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

↑