TeraPipe: Token-Level Pipeline Parallelism for Training Large-Scale Language Models
Not on the map. Why?
Abstract (arXiv)
Model parallelism has become a necessity for training modern large-scale deep language models. In this work, we identify a new and orthogonal dimension from existing model parallel approaches: it is possible to perform pipeline parallelism within a single training sequence for Transformer-based language models thanks to its autoregressive property. This enables a more fine-grained pipeline compared with previous work. With this key idea, we design TeraPipe, a high-performance token-level pipeline parallel algorithm for synchronous model-parallel training of Transformer-based language models. We develop a novel dynamic programming-based algorithm to calculate the optimal pipelining execution scheme given a specific model and cluster configuration. We show that TeraPipe can speed up the training by 5.0x for the largest GPT-3 model with 175 billion parameters on an AWS cluster with 48 p3.16xlarge instances compared with state-of-the-art model-parallel methods. The code for reproduction can be found at https://github.com/zhuohan123/terapipe
Key facts. Cited by 75 papers in the map (data through 14 Oct 2026). Builds on 22 of its 39 references that are in the map. First posted on arXiv 16 Feb 2021.
Builds on
22 of 39 references.
References · 22
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
- 2016Training Deep Nets with Sublinear Memory Costcited by 848
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
10 more
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
- 2014One weird trick for parallelizing convolutional neural networkscited by 264
- 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 179
- 2018Mesh-TensorFlow: Deep Learning for Supercomputerscited by 169
- 2018PipeDream: Fast and Efficient Pipeline Parallel DNN Trainingcited by 117
- 2020DAPPLE: A Pipelined Data Parallel Approach for Training Large Modelscited by 101
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 91
- 2018Supporting Very Large Models using Automatic Dataflow Graph Partitioningcited by 43
- 2018Exploring Hidden Dimensions in Parallelizing Convolutional Neural Networkscited by 23
- 2016Optimizing Performance of Recurrent Neural Networks on GPUscited by 12
Built on by
Citing papers per year: 2021: 11; 2022: 9; 2023: 14; 2024: 15; 2025: 19; 2026: 7.
75 papers.
Sort:
By area:
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 196
- 2024Vidur: A Large-Scale Simulation Framework For LLM Inferencecited by 117
- 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 111
- 2024DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Modelscited by 98
- 2022Decentralized Training of Foundation Models in Heterogeneous Environmentscited by 87
- 2024Large Language Model (LLM) for Telecommunications: A Comprehensive Survey on Principles, Key Techniques, and Opportunitiescited by 83
38 more
- 2021ERNIE 3.0 Titan: Exploring Larger-scale Knowledge Enhanced Pre-training for Language Understanding and Generationcited by 46
- 2024ExeGPT: Constraint-Aware Resource Scheduling for LLM Inferencecited by 45
- 2024ReaL: Efficient RLHF Training of Large Language Models with Parameter Reallocationcited by 37
- 2024PipeFusion: Patch-level Pipeline Parallelism for Diffusion Transformers Inferencecited by 28
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 26
- 2024A Survey on Large Language Models for Communication, Network, and Service Management: Application Insights, Challenges, and Future Directionscited by 25
- 2025PrefillOnly: An Inference Engine for Prefill-only Workloads in Large Language Model Applicationscited by 21
- 2022Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learningcited by 20
- 2022On Optimizing the Communication of Model Parallelismcited by 19
- 2021Persia: An Open, Hybrid System Scaling Deep Learning-based Recommenders up to 100 Trillion Parameterscited by 17
- 2025WLB-LLM: Workload-Balanced 4D Parallelism for Large Language Model Trainingcited by 17
- 2021PatrickStar: Parallel Training of Pre-trained Models via Chunk-based Memory Managementcited by 15
- 2025Jupiter: Fast and Resource-Efficient Collaborative Inference of Generative LLMs on Edge Devicescited by 15
- 2025HydraServe: Minimizing Cold Start Latency for Serverless LLM Serving in Public Cloudscited by 14
- 2021BAGUA: Scaling up Distributed Learning with System Relaxationscited by 13
- 2021Pipeline Parallelism for Inference on Heterogeneous Edge Computingcited by 13
- 2022AMP: Automatically Finding Model Parallel Strategies with Heterogeneity Awarenesscited by 13
- 2023Does compressing activations help model parallel training?cited by 12
- 2025Graph2text or Graph2token: A Perspective of Large Language Models for Graph Learningcited by 12
- 2021Amazon SageMaker Model Parallelism: A General and Flexible Framework for Large Model Trainingcited by 11
- 2022AI and 6G into the Metaverse: Fundamentals, Challenges and Future Research Trendscited by 8
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Trainingcited by 8
- 2024SimpleFSDP: Simpler Fully Sharded Data Parallel with torch.compilecited by 7
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimizationcited by 7
- 2025SlimPipe: Memory-Thrifty and Efficient Pipeline Parallelism for Long-Context LLM Trainingcited by 6
- 2021End-to-end Adaptive Distributed Training on PaddlePaddlecited by 5
- 2023SuperScaler: Supporting Flexible DNN Parallelization via a Unified Abstractioncited by 5
- 2023Colossal-Auto: Unified Automation of Parallelization and Activation Checkpoint for Large-scale Modelscited by 5
- 2025PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimizationcited by 5
- 2025BucketServe: Bucket-Based Dynamic Batching for Smart and Efficient LLM Inference Servingcited by 5
- 2023Systems for Parallel and Distributed Large-Model Deep Learning Trainingcited by 4
- 2025DeServe: Towards Affordable Offline LLM Inference via Decentralizationcited by 4
- 2022Integrating AI Planning with Natural Language Processing: A Combination of Explicit and Tacit Knowledgecited by 3
- 2023TAPAS: Fast and Automatic Derivation of Tensor Parallel Strategies for Large Neural Networkscited by 3
- 2023InTune: Reinforcement Learning-based Data Pipeline Optimization for Deep Recommendation Modelscited by 3
- 2025LoRAFusion: Efficient LoRA Fine-Tuning for LLMscited by 3
- 2023Baechi: Fast Device Placement of Machine Learning Graphscited by 2
- 2023Auto-Parallelizing Large Models with Rhino: A Systematic Approach on Production AI Platformcited by 2
50 most cited of 75 All 75 (JSON)
- 2026BSIPipe: Bidirectional Sequence-Level Interleaved Pipeline Parallelism for Long-Sequence Large Language Model Training10 Oct 2026
- 2026WavePP: High-Throughput Pipeline Parallel LLM Prefill under Prefix Reuse28 Sep 2026
- 2026The Life of a Token: from Words to Bits on the Wire17 Sep 2026
- 2026DeltaServe: Host-Agnostic Co-Serving of Inference and Fine-Tuning for LLMs30 Jul 2026
- 2026MOCAP: Wafer-Scale-Chip-Oriented Memory-Orchestrated Chunked Pipelining Framework for Prefill-Only LLM Inference22 Jun 2026
- 2026Performance of Small Language Model Pretraining on FABRIC: An Empirical Study2 Feb 2026
- 2026Layer-Parallel Training for Transformers13 Jan 2026
- 2025AsyncHZP: Hierarchical ZeRO Parallelism with Asynchronous Scheduling for Scalable LLM Training23 Oct 2025
- 2025LoRAFusion: Efficient LoRA Fine-Tuning for LLMs30 Sep 2025
- 2025Concertina: Data-Centric Adaptive Pipeline Parallelism for Efficient Heterogeneous Long-Context LLM Training25 Sep 2025
- 2025Advancing Compositional LLM Reasoning with Structured Task Relations in Interactive Multimodal Communications28 Jul 2025
- 2025Accelerating Parallel Diffusion Model Serving with Residual Compression23 Jul 2025
38 more
- 2025BucketServe: Bucket-Based Dynamic Batching for Smart and Efficient LLM Inference Serving23 Jul 2025
- 2025HelixPipe: Efficient Distributed Training of Long Sequence Transformers with Attention Parallel Pipeline Parallelism1 Jul 2025
- 2025Minute-Long Videos with Dual Parallelisms27 May 2025
- 2025PrefillOnly: An Inference Engine for Prefill-only Workloads in Large Language Model Applications12 May 2025
- 2025SlimPipe: Memory-Thrifty and Efficient Pipeline Parallelism for Long-Context LLM Training20 Apr 2025
- 2025Jupiter: Fast and Resource-Efficient Collaborative Inference of Generative LLMs on Edge Devices11 Apr 2025
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization24 Mar 2025
- 2025WLB-LLM: Workload-Balanced 4D Parallelism for Large Language Model Training23 Mar 2025
- 2025PipeBoost: Resilient Pipelined Architecture for Fast Serverless LLM Scaling22 Mar 2025
- 2025Automatic Operator-level Parallelism Planning for Distributed Deep Learning -- A Mixed-Integer Programming Approach12 Mar 2025
- 2025PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization3 Mar 2025
- 2025HydraServe: Minimizing Cold Start Latency for Serverless LLM Serving in Public Clouds21 Feb 2025
- 2025DeServe: Towards Affordable Offline LLM Inference via Decentralization4 Jan 2025
- 2025Graph2text or Graph2token: A Perspective of Large Language Models for Graph Learning2 Jan 2025
- 2024A Survey on Large Language Models for Communication, Network, and Service Management: Application Insights, Challenges, and Future Directions16 Dec 2024
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Training20 Nov 2024
- 2024Accelerating Large Language Model Training with 4D Parallelism and Memory Consumption Estimator10 Nov 2024
- 2024SimpleFSDP: Simpler Fully Sharded Data Parallel with torch.compile1 Nov 2024
- 2024Superpipeline: A Universal Approach for Reducing GPU Memory Usage in Large Models11 Oct 2024
- 2024Accelerating Large Language Model Training with Hybrid GPU-based Compression4 Sep 2024
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving24 Jun 2024
- 2024ReaL: Efficient RLHF Training of Large Language Models with Parameter Reallocation20 Jun 2024
- 2024PipeFusion: Patch-level Pipeline Parallelism for Diffusion Transformers Inference23 May 2024
- 2024Large Language Model (LLM) for Telecommunications: A Comprehensive Survey on Principles, Key Techniques, and Opportunities17 May 2024
- 2024Vidur: A Large-Scale Simulation Framework For LLM Inference8 May 2024
- 2024Arena: Efficiently Training Large Models via Dynamic Scheduling and Adaptive Parallelism Co-Design24 Mar 2024
- 2024ExeGPT: Constraint-Aware Resource Scheduling for LLM Inference15 Mar 2024
- 2024DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Models29 Feb 2024
- 2024MLCC: A Congestion Control Technique to Accelerate ML Training14 Feb 2024
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Survey1 Dec 2023
- 2023Practical Performance Guarantees for Pipelined DNN Inference7 Nov 2023
- 2023Saturn: Efficient Multi-Large-Model Deep Learning6 Nov 2023
- 2023Saturn: An Optimized Data System for Large Model Deep Learning Workloads3 Sep 2023
- 2023InTune: Reinforcement Learning-based Data Pipeline Optimization for Deep Recommendation Models13 Aug 2023
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance9 May 2023
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel21 Apr 2023
- 2023Auto-Parallelizing Large Models with Rhino: A Systematic Approach on Production AI Platform16 Feb 2023
- 2023Colossal-Auto: Unified Automation of Parallelization and Activation Checkpoint for Large-scale Models6 Feb 2023
50 newest of 75 All 75 (JSON)
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 196
- 2025PrefillOnly: An Inference Engine for Prefill-only Workloads in Large Language Model Applicationscited by 21
- 2025Jupiter: Fast and Resource-Efficient Collaborative Inference of Generative LLMs on Edge Devicescited by 15
- 2025HydraServe: Minimizing Cold Start Latency for Serverless LLM Serving in Public Cloudscited by 14
- 2025BucketServe: Bucket-Based Dynamic Batching for Smart and Efficient LLM Inference Servingcited by 5
- 2025PipeBoost: Resilient Pipelined Architecture for Fast Serverless LLM Scalingcited by 2
- 2026MOCAP: Wafer-Scale-Chip-Oriented Memory-Orchestrated Chunked Pipelining Framework for Prefill-Only LLM Inferencecited by 0
- 2026DeltaServe: Host-Agnostic Co-Serving of Inference and Fine-Tuning for LLMscited by 0
- 2026DeltaServe: Host-Agnostic Co-Serving of Inference and Fine-Tuning for LLMs30 Jul 2026
- 2026MOCAP: Wafer-Scale-Chip-Oriented Memory-Orchestrated Chunked Pipelining Framework for Prefill-Only LLM Inference22 Jun 2026
- 2025BucketServe: Bucket-Based Dynamic Batching for Smart and Efficient LLM Inference Serving23 Jul 2025
- 2025PrefillOnly: An Inference Engine for Prefill-only Workloads in Large Language Model Applications12 May 2025
- 2025Jupiter: Fast and Resource-Efficient Collaborative Inference of Generative LLMs on Edge Devices11 Apr 2025
- 2025PipeBoost: Resilient Pipelined Architecture for Fast Serverless LLM Scaling22 Mar 2025
- 2025HydraServe: Minimizing Cold Start Latency for Serverless LLM Serving in Public Clouds21 Feb 2025
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving24 Jun 2024
- 2024DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Modelscited by 98
- 2024PipeFusion: Patch-level Pipeline Parallelism for Diffusion Transformers Inferencecited by 28
- 2025Accelerating Parallel Diffusion Model Serving with Residual Compressioncited by 2
- 2025Minute-Long Videos with Dual Parallelismscited by 1
- 2025Accelerating Parallel Diffusion Model Serving with Residual Compression23 Jul 2025
- 2025Minute-Long Videos with Dual Parallelisms27 May 2025
- 2024PipeFusion: Patch-level Pipeline Parallelism for Diffusion Transformers Inference23 May 2024
- 2024DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Models29 Feb 2024
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
- 2024Vidur: A Large-Scale Simulation Framework For LLM Inferencecited by 117
- 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 111
- 2022Decentralized Training of Foundation Models in Heterogeneous Environmentscited by 87
- 2021ERNIE 3.0 Titan: Exploring Larger-scale Knowledge Enhanced Pre-training for Language Understanding and Generationcited by 46
- 2024ExeGPT: Constraint-Aware Resource Scheduling for LLM Inferencecited by 45
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 26
12 most cited of 59 All 59 (JSON)
- 2026BSIPipe: Bidirectional Sequence-Level Interleaved Pipeline Parallelism for Long-Sequence Large Language Model Training10 Oct 2026
- 2026WavePP: High-Throughput Pipeline Parallel LLM Prefill under Prefix Reuse28 Sep 2026
- 2026The Life of a Token: from Words to Bits on the Wire17 Sep 2026
- 2026Performance of Small Language Model Pretraining on FABRIC: An Empirical Study2 Feb 2026
- 2026Layer-Parallel Training for Transformers13 Jan 2026
- 2025LoRAFusion: Efficient LoRA Fine-Tuning for LLMs30 Sep 2025
- 2025Concertina: Data-Centric Adaptive Pipeline Parallelism for Efficient Heterogeneous Long-Context LLM Training25 Sep 2025
- 2025HelixPipe: Efficient Distributed Training of Long Sequence Transformers with Attention Parallel Pipeline Parallelism1 Jul 2025
- 2025SlimPipe: Memory-Thrifty and Efficient Pipeline Parallelism for Long-Context LLM Training20 Apr 2025
- 2025Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization24 Mar 2025
- 2025WLB-LLM: Workload-Balanced 4D Parallelism for Large Language Model Training23 Mar 2025
- 2025Automatic Operator-level Parallelism Planning for Distributed Deep Learning -- A Mixed-Integer Programming Approach12 Mar 2025
12 newest of 59 All 59 (JSON)