Papers
arxiv:2503.01328

PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization

Published on Mar 3
· Submitted by ufotalent on Mar 5
Authors:
,

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 https://github.com/sail-sg/zero-bubble-pipeline-parallelism{this url}.

Community

Paper submitter
edited 4 days ago

The implementation is open-sourced at https://github.com/sail-sg/zero-bubble.

The keypoints we want to make:

  • There's a incredibly large room (at least half, in larger models cases all) of free-lunch activation offloading in PP.
  • Selective offloading can achieve better-than-linear memory saving
  • Combining these, PP's activation memory can be scalable. Its memory is comparable or even lower than TP in some cases, not to mention having a higher throughput comparing to TP.

Highlight in the paper!

image.png

image.png

image.png

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2503.01328 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2503.01328 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2503.01328 in a Space README.md to link it from this page.

Collections including this paper 1