MadPipe: Memory Aware Dynamic Programming Algorithm for Pipelined Model Parallelism - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Communication Dans Un Congrès Année : 2022

MadPipe: Memory Aware Dynamic Programming Algorithm for Pipelined Model Parallelism

Résumé

The training phase in Deep Neural Networks (DNNs) is very computationally intensive and is nowadays often performed on parallel computing platforms, ranging from a few GPUs to several thousand GPUs. The strategy of choice for the parallelization of training is the so-called data parallel approach, based of the parallel training of the different inputs (typically images) and a the aggregation of network weights with collective communications (AllReduce). The scalability of this approach is limited both by the memory available on each node and the networking capacities for collective operations. Recently, a parallel model approach, in which the network weights are distributed and images are trained in a pipeline/stream manner over the computational nodes has been proposed (Pipedream, Gpipe). In this paper, we formalize in detail the optimization problem associated with the placement of DNN layers onto computation resources when using pipelined model parallelism, and we derive a dynamic programming based heuristic, MadPipe, that allows to significantly improve the performance of the parallel model approach compared to the literature.
Fichier principal
Vignette du fichier
MadPipeRR.pdf (520.15 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03025305 , version 1 (26-11-2020)

Identifiants

  • HAL Id : hal-03025305 , version 1

Citer

Olivier Beaumont, Lionel Eyraud-Dubois, Alena Shilova. MadPipe: Memory Aware Dynamic Programming Algorithm for Pipelined Model Parallelism. ScaDL 2022 - Scalable Deep Learning over Parallel and Distributed Infrastructure - An IPDPS 2022 Workshop, Jun 2022, Lyon / Virtual, France. ⟨hal-03025305⟩
152 Consultations
205 Téléchargements

Partager

Gmail Facebook X LinkedIn More