PyTorch Distributed: Experiences on Accelerating Data Parallel Training

Shen Li, Yanli Zhao, Rohan Varma, Omkar Salpekar, Pieter Noordhuis +6 more
6/28/2020
cs.DCcs.LG

Official code: pytorch/pytorch (102,325 stars, last commit 2026-05-04).

Abstract

This paper presents the design, implementation, and evaluation of the PyTorch distributed data parallel module. PyTorch is a widely-adopted scientific computing package used in deep learning research and applications. Recent advances in deep learning argue for the value of large datasets and large models, which necessitates the ability to scale out model training to more computational resources. Data parallelism has emerged as a popular solution for distributed training thanks to its straightforward principle and broad applicability. In general, the technique of distributed data parallelism replicates the model on every computational resource to generate gradients independently and then communicates those gradients at each iteration to keep model replicas consistent. Despite the conceptual simplicity of the technique, the subtle dependencies between computation and communication make it non-trivial to optimize the distributed training efficiency. As of v1.5, PyTorch natively provides several techniques to accelerate distributed data parallel, including bucketing gradients, overlapping computation with communication, and skipping gradient synchronization. Evaluations show that, when configured appropriately, the PyTorch distributed data parallel module attains near-linear scalability using 256 GPUs.

View on arXivView PDF

Code Implementations(1)

pytorch/pytorchOfficial100%

Tensors and Dynamic neural networks in Python with strong GPU acceleration

102,32528,837C, C++Aug 13, 20165 months agoNOASSERTION
autograddeep-learninggpumachine-learningneural-network+3 more

Similar Papers

Cite this paper

@article{li2020pytorch,
  title  = {PyTorch Distributed: Experiences on Accelerating Data Parallel Training},
  author = {Shen Li and Yanli Zhao and Rohan Varma and Omkar Salpekar and Pieter Noordhuis and Teng Li and Adam Paszke and Jeff Smith and Brian Vaughan and Pritam Damania and Soumith Chintala},
  year   = {2020},
  eprint = {2006.15704},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.15704}
}

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

Discussion