SWARM Parallelism: Training Large Models Can Be Surprisingly Communication-Efficient
Ryabinin, Max, Dettmers, Tim, Diskin, Michael, Borzunov, Alexander
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Jun-29-2023
- Country:
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- Asia
- China > Hong Kong (0.04)
- Japan > Honshū
- Chūbu > Toyama Prefecture
- Toyama (0.04)
- Tōhoku > Fukushima Prefecture
- Fukushima (0.04)
- Chūbu > Toyama Prefecture
- Middle East > Jordan (0.04)
- Europe
- Austria (0.04)
- France (0.04)
- Germany
- Berlin (0.04)
- Hesse > Darmstadt Region
- Frankfurt (0.04)
- North Rhine-Westphalia > Upper Bavaria
- Munich (0.04)
- Italy > Calabria
- Catanzaro Province > Catanzaro (0.04)
- Spain > Andalusia
- Granada Province > Granada (0.04)
- North America
- Canada
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Quebec > Montreal (0.04)
- British Columbia > Metro Vancouver Regional District
- Puerto Rico > San Juan
- San Juan (0.04)
- United States
- New York > New York County
- New York City (0.04)
- California
- Los Angeles County > Long Beach (0.04)
- Santa Clara County > Stanford (0.04)
- Georgia > Fulton County
- Atlanta (0.04)
- Oregon > Multnomah County
- Portland (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Hawaii > Honolulu County
- Honolulu (0.04)
- Texas
- Irion County (0.04)
- Travis County > Austin (0.04)
- Nevada > Clark County
- Las Vegas (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- New York > New York County
- Canada
- Africa > Ethiopia
- Genre:
- Research Report > New Finding (0.34)
- Industry:
- Energy (0.46)
- Technology: