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

Max Ryabinin, Tim Dettmers, Michael Diskin, Alexander Borzunov
1/27/2023
cs.DCcs.LG

No official code found. Best implementation: yandex-research/swarm (150 stars, last commit 2023-12-11).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Official code for "SWARM Parallelism: Training Large Models Can Be Surprisingly Communication-Efficient"

15018C++, LuaJan 25, 20232 years ago

Similar Papers

Cite this paper

@article{ryabinin2023swarm,
  title  = {SWARM Parallelism: Training Large Models Can Be Surprisingly Communication-Efficient},
  author = {Max Ryabinin and Tim Dettmers and Michael Diskin and Alexander Borzunov},
  year   = {2023},
  eprint = {2301.11913},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.11913v2},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.11913.svg)](https://codeofpaper.com/paper/2301.11913)

Discussion