Lune

ICML2023顶会

BPipe: Memory-Balanced Pipeline Parallelism for Training Large Language Models

Taebum Kim, Hyoungjoo Kim, Gyeong-In Yu, Byung-Gon Chun

摘要

Pipeline parallelism is a key technique for training large language models within GPU clusters. However, it often leads to a memory imbalance problem, where certain GPUs face high memory pressure while others underutilize their capacity. This imbalance results in suboptimal training performance, even when the overall GPU memory capacity is sufficient for more efficient setups. To address this inefficiency, we propose BPIPE, a novel approach for achieving memory balance in pipeline parallelism. BPIPE employs an activation balancing method to transfer intermediate activations between GPUs during training, enabling all GPUs to utilize comparable amounts of memory. With balanced memory utilization, BPIPE enhances the training efficiency of large language models like GPT-3 by eliminating redundant recomputations or increasing the microbatch size. Our evaluation conducted on 48 A100 GPUs across six nodes interconnected with HDR InfiniBand shows that BPIPE accelerates the training of GPT-3 96B and GPT-3 134B models by 1.25x-2.17x compared to Megatron-LM, a stateof-the-art framework for training large language models.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Memory-Efficient Pipeline-Parallel DNN Training 引用了 Language Models are Few-Shot Learners
  • CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter Training 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter Training 引用了 AdaPipe: Optimizing Pipeline Parallelism with Adaptive Recomputation and Partitioning
  • Efficient large-scale language model training on GPU clusters using megatron-LM 引用了 Memory-Efficient Pipeline-Parallel DNN Training
  • Efficient large-scale language model training on GPU clusters using megatron-LM 引用了 ZeRO-infinity: breaking the GPU memory wall for extreme scale deep learning
  • Efficient large-scale language model training on GPU clusters using megatron-LM 引用了 Language Models are Few-Shot Learners
  • AdaPipe: Optimizing Pipeline Parallelism with Adaptive Recomputation and Partitioning 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • AdaPipe: Optimizing Pipeline Parallelism with Adaptive Recomputation and Partitioning 引用了 ZeRO-infinity: breaking the GPU memory wall for extreme scale deep learning
  • AdaPipe: Optimizing Pipeline Parallelism with Adaptive Recomputation and Partitioning 引用了 Language Models are Few-Shot Learners
  • DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward Propagation 引用了 Language Models are Few-Shot Learners
  • ZeRO-infinity: breaking the GPU memory wall for extreme scale deep learning 引用了 Memory-Efficient Pipeline-Parallel DNN Training
  • ZeRO-infinity: breaking the GPU memory wall for extreme scale deep learning 引用了 Language Models are Few-Shot Learners
  • Pipeline Parallelism with Controllable Memory 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • Pipeline Parallelism with Controllable Memory 引用了 Language Models are Few-Shot Learners
  • Training language models to follow instructions with human feedback 引用了 Language Models are Few-Shot Learners
  • ReCycle: Resilient Training of Large DNNs using Pipeline Adaptation 引用了 Efficient large-scale language model training on GPU clusters using megatron-LM
  • ReCycle: Resilient Training of Large DNNs using Pipeline Adaptation 引用了 ZeRO-infinity: breaking the GPU memory wall for extreme scale deep learning
  • ReCycle: Resilient Training of Large DNNs using Pipeline Adaptation 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper19

  1. AdaPipe: Optimizing Pipeline Parallelism with Adaptive Recomputation and PartitioningZhenbo Sun, Huanqi Cao, Yuanwei Wang, Guanyu Feng 等ASPLOS 2024 · 28 次引用
  2. Pipeline Parallelism with Controllable MemoryPenghui Qi, Xinyi Wan, Nyamdavaa Amar, Min LinNeurIPS 2024 · 25 次引用
  3. CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter TrainingTiancheng Chen, Ales Kubicek, Langwen Huang, Torsten HoeflerUSENIX ATC 2025 · 20 次引用
  4. DropBP: Accelerating Fine-Tuning of Large Language Models by Dropping Backward PropagationSunghyeon Woo, Baeseong Park, Byeongwook Kim, Minjung Jo 等NeurIPS 2024 · 13 次引用
  5. ReCycle: Resilient Training of Large DNNs using Pipeline AdaptationSwapnil Gandhi, Mark Zhao, Athinagoras Skiadopoulos, Christos KozyrakisSOSP 2024 · 13 次引用

它引用的 Paper12

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
  3. Efficient large-scale language model training on GPU clusters using megatron-LMDeepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley 等SC 2021 · 576 次引用
  4. Memory-Efficient Pipeline-Parallel DNN TrainingDeepak Narayanan, Amar Phanishayee, Kaiyu Shi, Xie Chen 等ICML 2021 · 283 次引用
  5. ZeRO-infinity: breaking the GPU memory wall for extreme scale deep learningSamyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith 等SC 2021 · 254 次引用

相关 Paper

  1. WeiPipe: Weight Pipeline Parallelism for Communication-Effective Long-Context Large Model TrainingJunfeng Lin, Ziming Liu, Yang You, Jun Wang 等PPoPP 2025 · 5 次引用
  2. SlimPipe: Memory-Thrifty and Efficient Pipeline Parallelism for Long-Context LLM TrainingZhouyang Li, Yuliang Liu, Wei Zhang, Tailing Yuan 等SC 2025 · 5 次引用
  3. Mario: Near Zero-cost Activation Checkpointing in Pipeline ParallelismWeijian Liu, Mingzhen Li, Guangming Tan, Weile JiaPPoPP 2025 · 4 次引用
  4. TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models TrainingHouming Wu, Ling ChenAAAI 2026
  5. PipeOffload: Improving Scalability of Pipeline Parallelism with Memory OptimizationXinyi Wan, Penghui Qi, Guangxing Huang, Min Lin 等ICML 2025
黄昏的海面,两侧是细线勾勒的悬崖