PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wan, Xinyi, Qi, Penghui, Huang, Guangxing, Lin, Min, Li, Jialin
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908427940265984
author Wan, Xinyi
Qi, Penghui
Huang, Guangxing
Lin, Min
Li, Jialin
author_facet Wan, Xinyi
Qi, Penghui
Huang, Guangxing
Lin, Min
Li, Jialin
contents 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}.
format Preprint
id arxiv_https___arxiv_org_abs_2503_01328
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization
Wan, Xinyi
Qi, Penghui
Huang, Guangxing
Lin, Min
Li, Jialin
Machine Learning
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
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}.
title PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization
topic Machine Learning
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2503.01328