Improving Automatic Parallel Training via Balanced Memory Workload Optimization

Yujie Wang, Youhe Jiang, Xupeng Miao, Fangcheng Fu, Shenhan Zhu +3 more
7/5/2023
cs.LGcs.DBcs.DC

Official code: PKU-DAIR/Hetu-Galvatron (185 stars, Apache-2.0, last commit 2026-04-22).

Abstract

Transformer models have emerged as the leading approach for achieving state-of-the-art performance across various application domains, serving as the foundation for advanced large-scale deep learning (DL) models. However, efficiently training these models across multiple GPUs remains a complex challenge due to the abundance of parallelism options. Existing DL systems either require manual efforts to design distributed training plans or limit parallelism combinations to a constrained search space. In this paper, we present Galvatron-BMW, a novel system framework that integrates multiple prevalent parallelism dimensions and automatically identifies the most efficient hybrid parallelism strategy. To effectively navigate this vast search space, we employ a decision tree approach for decomposition and pruning based on intuitive insights. We further utilize a dynamic programming search algorithm to derive the optimal plan. Moreover, to improve resource utilization and enhance system efficiency, we propose a bi-objective optimization workflow that focuses on workload balance. Our evaluations on different Transformer models demonstrate the capabilities of Galvatron-BMW in automating distributed training under varying GPU memory constraints. Across all tested scenarios, Galvatron-BMW consistently achieves superior system throughput, surpassing previous approaches that rely on limited parallelism strategies.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Galvatron is an automatic distributed training system designed for Transformer models, including Large Language Models (LLMs).

18520C++, ShellNov 30, 20236 months agoApache-2.0

Similar Papers

Cite this paper

@article{wang2023improving,
  title  = {Improving Automatic Parallel Training via Balanced Memory Workload Optimization},
  author = {Yujie Wang and Youhe Jiang and Xupeng Miao and Fangcheng Fu and Shenhan Zhu and Xiaonan Nie and Yaofeng Tu and Bin Cui},
  year   = {2023},
  eprint = {2307.02031},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.02031v2}
}

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

Discussion