AMP: Automatically Finding Model Parallel Strategies with Heterogeneity Awareness

Dacheng Li, Hongyi Wang, Eric Xing, Hao Zhang
10/13/2022
cs.LG

Official code: DachengLi1/AMP (45 stars, Python, last commit 2022-11-04).

Abstract

Scaling up model sizes can lead to fundamentally new capabilities in many machine learning (ML) tasks. However, training big models requires strong distributed system expertise to carefully design model-parallel execution strategies that suit the model architectures and cluster setups.

Show full abstract

In this paper, we develop AMP, a framework that automatically derives such strategies. AMP identifies a valid space of model parallelism strategies and efficiently searches the space for high-performed strategies, by leveraging a cost model designed to capture the heterogeneity of the model and cluster specifications. Unlike existing methods, AMP is specifically tailored to support complex models composed of uneven layers and cluster setups with more heterogeneous accelerators and bandwidth. We evaluate AMP on popular models and cluster setups from public clouds and show that AMP returns parallel strategies that match the expert-tuned strategies on typical cluster setups. On heterogeneous clusters or models with heterogeneous architectures, AMP finds strategies with 1.54x and 1.77x higher throughput than state-of-the-art model-parallel systems, respectively.

View on arXivView PDF

Code Implementations(1)

DachengLi1/AMPOfficial100%

(NeurIPS 2022) Automatically finding good model-parallel strategies, especially for complex models and clusters.

457Python, CudaOct 3, 20224 years ago

Similar Papers

Cite this paper

@article{li2022amp,
  title  = {AMP: Automatically Finding Model Parallel Strategies with Heterogeneity Awareness},
  author = {Dacheng Li and Hongyi Wang and Eric Xing and Hao Zhang},
  year   = {2022},
  eprint = {2210.07297},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07297}
}

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

Discussion