ICASSP 2024accepted0 citations

3D Parallelism for Transformers via Integer Programming

Hao Zheng, Peng Liang, Yu Tang, Yanqi Shi, Linbo Qiao, Dongsheng Li

Abstract

Transformer models, such as BERT, GPT, and ViT, have been applied to a wide range of areas in recent years, due to their efficacy. In order to improve the training efficiency of Transformer models, different distributed training approaches have been proposed, like Megatron-LM [8]. However, when multi-dimensional parallelism strategies are considered, due to the complexity, existing works can not harmonize the different strategies well enough to obtain a globally optimal solution. In this paper, we propose a parallelism strategy searching algorithm PTIP, which generates operator-level parallelism strategies consisting of three schemes: data parallelism, tensor parallelism, and pipeline parallelism. PTIP abstracts these three parallelism schemes simultaneously into an auxiliary graph, reformulates the searching problem into a mixed-integer programming (MIP) problem, and uses a MIP solver to obtain a high-quality multi-dimensional strategy. Experiments conducted on Transformers demonstrate that PTIP obtains 13.9% − 24.7% performance improvement compared to Megatron-LM [8].

BibTeX
@inproceedings{icassp2024_3dparallelismfor,
  title = {3D Parallelism for Transformers via Integer Programming},
  author = {Hao Zheng and Peng Liang and Yu Tang and Yanqi Shi and Linbo Qiao and Dongsheng Li},
  booktitle = {ICASSP 2024},
  year = {2024}
}
3D Parallelism for Transformers via Integer Programming · ICASSP 2024