PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization

Xinyi Wan, Penghui Qi, Guangxing Huang, Jialin Li, Min Lin
3/1/2025

No official code found. Best implementation: sail-sg/zero-bubble-pipeline-parallelism (466 stars, last commit 2025-05-07).

Abstract

Pipeline parallelism (PP) is widely used for training large language models (LLMs), yet its scalability is often constrained by high activation memory consumption as the number of in-flight microbatches grows with the degree of PP. In this paper, we focus on addressing this challenge by leveraging the under-explored memory offload strategy in PP. With empirical study, we discover that in the majority of standard configurations, at least half, and potentially all, of the activations can be offloaded with negligible overhead. In the cases where full overload is not possible, we introduce a novel selective offload strategy that decreases peak activation memory in a better-than-linear manner. Furthermore, we integrate memory offload with other techniques to jointly consider overall throughput and memory limitation. Our experiments proves that the per-device activation memory effectively reduces with the total number of stages, making PP a stronger alternative than TP, offering up to a 19\% acceleration with even lower memory consumption. The implementation is open-sourced at \href{https://github.com/sail-sg/zero-bubble-pipeline-parallelism}{this url}.

View on arXivView PDF

Code Implementations(1)

Zero Bubble Pipeline Parallelism

46631C, C++Nov 20, 20231 years agoNOASSERTION

Similar Papers

Cite this paper

@article{wan2025pipeoffload,
  title  = {PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization},
  author = {Xinyi Wan and Penghui Qi and Guangxing Huang and Jialin Li and Min Lin},
  year   = {2025},
  eprint = {2503.01328},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.01328},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.01328.svg)](https://codeofpaper.com/paper/2503.01328)

Discussion