HAP: SPMD DNN Training on Heterogeneous GPU Clusters with Automated Program Synthesis

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhang, Shiwei, Diao, Lansong, Wu, Chuan, Cao, Zongyan, Wang, Siyu, Lin, Wei
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909069827112960
author Zhang, Shiwei
Diao, Lansong
Wu, Chuan
Cao, Zongyan
Wang, Siyu
Lin, Wei
author_facet Zhang, Shiwei
Diao, Lansong
Wu, Chuan
Cao, Zongyan
Wang, Siyu
Lin, Wei
contents Single-Program-Multiple-Data (SPMD) parallelism has recently been adopted to train large deep neural networks (DNNs). Few studies have explored its applicability on heterogeneous clusters, to fully exploit available resources for large model learning. This paper presents \OurSystem, an automated system designed to expedite SPMD DNN training on heterogeneous clusters. \OurSystem jointly optimizes the tensor sharding strategy, sharding ratios across heterogeneous devices and the communication methods for tensor exchanges for optimized distributed training with SPMD parallelism. We novelly formulate model partitioning as a program synthesis problem, in which we generate a distributed program from scratch on a distributed instruction set that semantically resembles the program designed for a single device, and systematically explore the solution space with an A*-based search algorithm. We derive the optimal tensor sharding ratios by formulating it as a linear programming problem. Additionally, \OurSystem explores tensor communication optimization in a heterogeneous cluster and integrates it as part of the program synthesis process, for automatically choosing optimal collective communication primitives and applying sufficient factor broadcasting technique. Extensive experiments on representative workloads demonstrate that \OurSystem achieves up to 2.41x speed-up on heterogeneous clusters.
format Preprint
id arxiv_https___arxiv_org_abs_2401_05965
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HAP: SPMD DNN Training on Heterogeneous GPU Clusters with Automated Program Synthesis
Zhang, Shiwei
Diao, Lansong
Wu, Chuan
Cao, Zongyan
Wang, Siyu
Lin, Wei
Distributed, Parallel, and Cluster Computing
Single-Program-Multiple-Data (SPMD) parallelism has recently been adopted to train large deep neural networks (DNNs). Few studies have explored its applicability on heterogeneous clusters, to fully exploit available resources for large model learning. This paper presents \OurSystem, an automated system designed to expedite SPMD DNN training on heterogeneous clusters. \OurSystem jointly optimizes the tensor sharding strategy, sharding ratios across heterogeneous devices and the communication methods for tensor exchanges for optimized distributed training with SPMD parallelism. We novelly formulate model partitioning as a program synthesis problem, in which we generate a distributed program from scratch on a distributed instruction set that semantically resembles the program designed for a single device, and systematically explore the solution space with an A*-based search algorithm. We derive the optimal tensor sharding ratios by formulating it as a linear programming problem. Additionally, \OurSystem explores tensor communication optimization in a heterogeneous cluster and integrates it as part of the program synthesis process, for automatically choosing optimal collective communication primitives and applying sufficient factor broadcasting technique. Extensive experiments on representative workloads demonstrate that \OurSystem achieves up to 2.41x speed-up on heterogeneous clusters.
title HAP: SPMD DNN Training on Heterogeneous GPU Clusters with Automated Program Synthesis
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2401.05965