Lune

ASPLOS2024顶会

AdaPipe: Optimizing Pipeline Parallelism with Adaptive Recomputation and Partitioning

Zhenbo Sun, Huanqi Cao, Yuanwei Wang, Guanyu Feng, Shengqi Chen, Haojie Wang, Wenguang Chen

摘要

Large language models (LLMs) have demonstrated powerful capabilities, requiring huge memory with their increasing sizes and sequence lengths, thus demanding larger parallel systems. The broadly adopted pipeline parallelism introduces even heavier and unbalanced memory consumption. Recomputation is a widely employed technique to mitigate the problem but introduces extra computation overhead.

This paper proposes AdaPipe, which aims to find the optimized recomputation and pipeline stage partitioning strategy. AdaPipe employs adaptive recomputation to maximize memory utilization and reduce the computation cost of each pipeline stage. A flexible stage partitioning algorithm is also adopted to balance the computation between different stages. We evaluate AdaPipe by training two representative models, GPT-3 (175B) and Llama 2 (70B), achieving up to 1.32× and 1.22× speedup on clusters with NVIDIA GPUs and Ascend NPUs respectively.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter Training 引用了 ZeRO: memory optimizations toward training trillion parameter models
  • CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter Training 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Language Models are Few-Shot Learners
  • Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep Learning 引用了 ZeRO: memory optimizations toward training trillion parameter models
  • Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep Learning 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep Learning 引用了 Language Models are Few-Shot Learners
  • Efficient large-scale language model training on GPU clusters using megatron-LM 引用了 ZeRO: memory optimizations toward training trillion parameter models
  • Efficient large-scale language model training on GPU clusters using megatron-LM 引用了 Language Models are Few-Shot Learners
  • Efficient large-scale language model training on GPU clusters using megatron-LM 引用了 ZeRO-Offload: Democratizing Billion-Scale Model Training
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators 引用了 ZeRO: memory optimizations toward training trillion parameter models
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators 引用了 Language Models are Few-Shot Learners
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators 引用了 ZeRO-Offload: Democratizing Billion-Scale Model Training
  • Efficient Distributed MLLM Training with Cornstarch 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Efficient Distributed MLLM Training with Cornstarch 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • ZeRO-Offload: Democratizing Billion-Scale Model Training 引用了 ZeRO: memory optimizations toward training trillion parameter models
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization 引用了 ZeRO: memory optimizations toward training trillion parameter models
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper19

  1. CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter TrainingTiancheng Chen, Ales Kubicek, Langwen Huang, Torsten HoeflerUSENIX ATC 2025 · 20 次引用
  2. Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep LearningWei An, Xiao Bi, Guanting Chen, Shanhuang Chen 等SC 2024 · 20 次引用
  3. Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-OptimizationZhanda Zhu, Christina Giannoula, Muralidhar Andoorveedu, Qidong Su 等EuroSys 2025 · 8 次引用
  4. MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective AcceleratorsZhenbo Sun, Shengqi Chen, Yuanwei Wang, Jian Sha 等EuroSys 2025 · 7 次引用
  5. Efficient Distributed MLLM Training with CornstarchInsu Jang, Runyu Lu, Nikhil Bansal, Ang Chen 等ICML 2026 · 6 次引用

它引用的 Paper16

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
  3. ZeRO: memory optimizations toward training trillion parameter modelsSamyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong HeSC 2020 · 852 次引用
  4. ZeRO-Offload: Democratizing Billion-Scale Model TrainingJie Ren, Samyam Rajbhandari, Reza Yazdani Aminabadi, Olatunji Ruwase 等USENIX ATC 2021 · 657 次引用
  5. Efficient large-scale language model training on GPU clusters using megatron-LMDeepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley 等SC 2021 · 576 次引用

相关 Paper

  1. Obscura: Concealing Recomputation Overhead in Training of Large Language Models with Bubble-filling Pipeline TransformationYuzhou Huang, Yapeng Jiang, Zicong Hong, Wuhui Chen 等USENIX ATC 2025 · 4 次引用
  2. BPipe: Memory-Balanced Pipeline Parallelism for Training Large Language ModelsTaebum Kim, Hyoungjoo Kim, Gyeong-In Yu, Byung-Gon ChunICML 2023 · 34 次引用
  3. Mario: Near Zero-cost Activation Checkpointing in Pipeline ParallelismWeijian Liu, Mingzhen Li, Guangming Tan, Weile JiaPPoPP 2025 · 4 次引用
  4. DynaPipe: Dynamic Layer Redistribution for Efficient Serving of LLMs with Pipeline ParallelismHongxin Xu, Tianyu Guo, Xianwei ZhangNeurIPS 2025 · 4 次引用
  5. HelixPipe: Efficient Distributed Training of Long Sequence Transformers with Attention Parallel Pipeline ParallelismGeng Zhang, Shenggan Cheng, Xuanlei Zhao, Ziming Liu 等PPoPP 2026 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖