Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

PyTorch Distributed: Experiences on Accelerating Data Parallel Training

About

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.

Shen Li, Yanli Zhao, Rohan Varma, Omkar Salpekar, Pieter Noordhuis, Teng Li, Adam Paszke, Jeff Smith, Brian Vaughan, Pritam Damania, Soumith Chintala• 2020

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringTextVQA--
1453
Physical Interaction Question AnsweringPIQA
Accuracy79.3
415
Multi-discipline Multimodal UnderstandingMMMU--
363
Visual Question AnsweringDocVQA--
205
Commonsense ReasoningHellaSwag
HellaSwag Score72.1
62
Visual Question AnsweringChartQA
Score21.6
24
Visual Question AnsweringInfographicVQA
ANLS45.9
19
Commonsense ReasoningWinoGrande
Score64.2
13
Social Interaction Question AnsweringSIQA
Normalized PLL Score49.8
10
Question AnsweringARC Challenge
ARC Score56.1
6
Showing 10 of 15 rows

Other info

Follow for update