torchgpipe: On-the-fly Pipeline Parallelism for Training Giant Models
Not on the map. Why?
Abstract (arXiv)
We design and implement a ready-to-use library in PyTorch for performing micro-batch pipeline parallelism with checkpointing proposed by GPipe (Huang et al., 2019). In particular, we develop a set of design components to enable pipeline-parallel gradient computation in PyTorch's define-by-run and eager execution environment. We show that each component is necessary to fully benefit from pipeline parallelism in such environment, and demonstrate the efficiency of the library by applying it to various network architectures including AmoebaNet-D and U-Net. Our library is available at https://github.com/kakaobrain/torchgpipe .
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 1; 2023: 7; 2024: 8; 2025: 4.
26 papers.
Sort:
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
- 2023A Survey on Efficient Training of Transformerscited by 37
- 2021PipeTransformer: Automated Elastic Pipelining for Distributed Training of Transformerscited by 23
- 2024ORBIT: Oak Ridge Base Foundation Model for Earth System Predictabilitycited by 17
- 2021Pipeline Parallelism for Inference on Heterogeneous Edge Computingcited by 13
- 2024Asteroid: Resource-Efficient Hybrid Pipeline Parallelism for Collaborative DNN Training on Heterogeneous Edge Devicescited by 13
- 2025ORBIT-2: Scaling Exascale Vision Foundation Models for Weather and Climate Downscalingcited by 10
- 2024Linear Attention Sequence Parallelismcited by 8
- 2021A Survey and Empirical Evaluation of Parallel Deep Learning Frameworkscited by 7
- 2021Automatic Graph Partitioning for Very Large-scale Deep Learningcited by 6
- 2024PETRA: Parallel End-to-end Training with Reversible Architecturescited by 6
- 2024ACCO: Accumulate While You Communicate for Communication-Overlapped Sharded LLM Trainingcited by 6
14 more
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimizationcited by 6
- 2023Systems for Parallel and Distributed Large-Model Deep Learning Trainingcited by 4
- 2021Hydra: A System for Large Multi-Model Deep Learningcited by 3
- 2021An Oracle for Guiding Large-Scale Model/Hybrid Parallel Training of Convolutional Neural Networkscited by 2
- 2023Saturn: An Optimized Data System for Large Model Deep Learning Workloadscited by 2
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 2
- 2022PARTIME: Scalable and Parallel Processing Over Time with Deep Neural Networkscited by 1
- 2023RTP: Rethinking Tensor Parallelism with Memory Deduplicationcited by 1
- 2025FlashDP: Private Training Large Language Models with Efficient DP-SGDcited by 1
- 2023A Survey From Distributed Machine Learning to Distributed Deep Learningcited by 0
- 2023Practical Performance Guarantees for Pipelined DNN Inferencecited by 0
- 2024FreeRide: Harvesting Bubbles in Pipeline Parallelismcited by 0
- 2024On the Convergence Theory of Pipeline Gradient-based Analog In-memory Trainingcited by 0
- 2025Distributed Deep Learning using Stochastic Gradient Stalenesscited by 0
- 2025Distributed Deep Learning using Stochastic Gradient Staleness6 Sep 2025
- 2025FlashDP: Private Training Large Language Models with Efficient DP-SGD1 Jul 2025
- 2025ORBIT-2: Scaling Exascale Vision Foundation Models for Weather and Climate Downscaling7 May 2025
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization24 Mar 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024
- 2024On the Convergence Theory of Pipeline Gradient-based Analog In-memory Training19 Oct 2024
- 2024FreeRide: Harvesting Bubbles in Pipeline Parallelism11 Sep 2024
- 2024Asteroid: Resource-Efficient Hybrid Pipeline Parallelism for Collaborative DNN Training on Heterogeneous Edge Devices15 Aug 2024
- 2024PETRA: Parallel End-to-end Training with Reversible Architectures4 Jun 2024
- 2024ACCO: Accumulate While You Communicate for Communication-Overlapped Sharded LLM Training3 Jun 2024
- 2024ORBIT: Oak Ridge Base Foundation Model for Earth System Predictability23 Apr 2024
- 2024Linear Attention Sequence Parallelism3 Apr 2024
14 more
- 2023Practical Performance Guarantees for Pipelined DNN Inference7 Nov 2023
- 2023RTP: Rethinking Tensor Parallelism with Memory Deduplication2 Nov 2023
- 2023Saturn: An Optimized Data System for Large Model Deep Learning Workloads3 Sep 2023
- 2023A Survey From Distributed Machine Learning to Distributed Deep Learning11 Jul 2023
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel21 Apr 2023
- 2023A Survey on Efficient Training of Transformers2 Feb 2023
- 2023Systems for Parallel and Distributed Large-Model Deep Learning Training6 Jan 2023
- 2022PARTIME: Scalable and Parallel Processing Over Time with Deep Neural Networks17 Oct 2022
- 2021A Survey and Empirical Evaluation of Parallel Deep Learning Frameworks9 Nov 2021
- 2021Pipeline Parallelism for Inference on Heterogeneous Edge Computing28 Oct 2021
- 2021Hydra: A System for Large Multi-Model Deep Learning16 Oct 2021
- 2021An Oracle for Guiding Large-Scale Model/Hybrid Parallel Training of Convolutional Neural Networks19 Apr 2021
- 2021Automatic Graph Partitioning for Very Large-scale Deep Learning30 Mar 2021
- 2021PipeTransformer: Automated Elastic Pipelining for Distributed Training of Transformers5 Feb 2021
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
- 2023A Survey on Efficient Training of Transformerscited by 37
- 2021PipeTransformer: Automated Elastic Pipelining for Distributed Training of Transformerscited by 23
- 2024ORBIT: Oak Ridge Base Foundation Model for Earth System Predictabilitycited by 17
- 2021Pipeline Parallelism for Inference on Heterogeneous Edge Computingcited by 13
- 2024Asteroid: Resource-Efficient Hybrid Pipeline Parallelism for Collaborative DNN Training on Heterogeneous Edge Devicescited by 13
- 2025ORBIT-2: Scaling Exascale Vision Foundation Models for Weather and Climate Downscalingcited by 10
- 2024Linear Attention Sequence Parallelismcited by 8
- 2021A Survey and Empirical Evaluation of Parallel Deep Learning Frameworkscited by 7
- 2021Automatic Graph Partitioning for Very Large-scale Deep Learningcited by 6
- 2024PETRA: Parallel End-to-end Training with Reversible Architecturescited by 6
- 2024ACCO: Accumulate While You Communicate for Communication-Overlapped Sharded LLM Trainingcited by 6
12 most cited of 26 All 26 (JSON)
- 2025Distributed Deep Learning using Stochastic Gradient Staleness6 Sep 2025
- 2025FlashDP: Private Training Large Language Models with Efficient DP-SGD1 Jul 2025
- 2025ORBIT-2: Scaling Exascale Vision Foundation Models for Weather and Climate Downscaling7 May 2025
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization24 Mar 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024
- 2024On the Convergence Theory of Pipeline Gradient-based Analog In-memory Training19 Oct 2024
- 2024FreeRide: Harvesting Bubbles in Pipeline Parallelism11 Sep 2024
- 2024Asteroid: Resource-Efficient Hybrid Pipeline Parallelism for Collaborative DNN Training on Heterogeneous Edge Devices15 Aug 2024
- 2024PETRA: Parallel End-to-end Training with Reversible Architectures4 Jun 2024
- 2024ACCO: Accumulate While You Communicate for Communication-Overlapped Sharded LLM Training3 Jun 2024
- 2024ORBIT: Oak Ridge Base Foundation Model for Earth System Predictability23 Apr 2024
- 2024Linear Attention Sequence Parallelism3 Apr 2024
12 newest of 26 All 26 (JSON)