Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning

Lianmin Zheng, Zhuohan Li, Hao Zhang, Yonghao Zhuang, Zhifeng Chen +7 more
1/28/2022
cs.LGcs.DCcs.PL

Official code: alpa-projects/alpa (3,177 stars, Python, Apache-2.0, JAX, last commit 2023-12-09).

Abstract

Alpa automates model-parallel training of large deep learning (DL) models by generating execution plans that unify data, operator, and pipeline parallelism. Existing model-parallel training systems either require users to manually create a parallelization plan or automatically generate one from a limited space of model parallelism configurations.

Show full abstract

They do not suffice to scale out complex DL models on distributed compute devices. Alpa distributes the training of large DL models by viewing parallelisms as two hierarchical levels: inter-operator and intra-operator parallelisms. Based on it, Alpa constructs a new hierarchical space for massive model-parallel execution plans. Alpa designs a number of compilation passes to automatically derive efficient parallel execution plans at each parallelism level. Alpa implements an efficient runtime to orchestrate the two-level parallel execution on distributed compute devices. Our evaluation shows Alpa generates parallelization plans that match or outperform hand-tuned model-parallel training systems even on models they are designed for. Unlike specialized systems, Alpa also generalizes to models with heterogeneous architectures and models without manually-designed plans. Alpa's source code is publicly available at https://github.com/alpa-projects/alpa

View on arXivView PDF

Code Implementations(1)

alpa-projects/alpaOfficial100%
JAXApache-2.0

Training and serving large-scale neural networks with auto parallelization.

3,177354Python, Jupyter NotebookFeb 22, 20212 years agoApache-2.0
alpaauto-parallelizationcompilerdeep-learningdistributed-computing+5 more

Similar Papers

Cite this paper

@article{zheng2022alpa,
  title  = {Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning},
  author = {Lianmin Zheng and Zhuohan Li and Hao Zhang and Yonghao Zhuang and Zhifeng Chen and Yanping Huang and Yida Wang and Yuanzhong Xu and Danyang Zhuo and Eric P. Xing and Joseph E. Gonzalez and Ion Stoica},
  year   = {2022},
  eprint = {2201.12023},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12023}
}

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/2201.12023.svg)](https://codeofpaper.com/paper/2201.12023)

Discussion