PipeFSDP: Efficient Pipeline Parallel under Fully Sharded Data Parallel for Large Language Model Training
Xinglin Pan, Mingji Han, Penghao Zhao, Lin Zheng, Rayying, key, Shaohuai Shi, Xiaowen Chu
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Async Pipeline Communication Optimization · Type: new method · Keywords: pipeline parallelism, fully sharded data parallel, training efficiency, model FLOPs utilization, communication optimization
Summary
PipeFSDP is an efficient training framework that combines Fully Sharded Data Parallel with Pipeline Parallel to reduce pipeline bubbles and improve model FLOPs utilization on large language models.
Explained to a 5-year-old
Big computers work together to teach AI things. They share the work using two ways of splitting tasks. Sometimes the computers have to wait a lot, which makes training slow. This paper finds ways to make the computers talk less and work more. As a result, the AI learns faster and uses less memory.
Explained to a 5-year-old, longer
Imagine you have a huge puzzle and many friends help assemble it. Each friend can only hold a few pieces at a time, so they pass pieces to each other. When they pass pieces, they sometimes wait for each other, which slows down the whole puzzle. The paper looks at how two different ways of sharing pieces work together. It finds that the friends often get stuck waiting because they talk too much or hold onto pieces they don’t need. To fix this, the paper suggests that friends should start working on new pieces earlier. It also suggests that they should avoid talking at the same time, so they don’t get confused. Another idea is to remove pieces that are duplicated, so no one carries the same piece twice. Finally, it changes the order in which pieces are passed to reduce waiting. All these small changes help the friends finish the puzzle faster. The paper also includes a simple rule to decide how many friends should work on each part. When these ideas are used, the puzzle gets completed with less waiting and less memory used.
For a technical reader
The authors introduce PipeFSDP, a framework that combines Fully Sharded Data Parallel with Pipeline Parallel to reduce idle time and memory overhead during large language model training. It implements four targeted optimizations: dynamic prefetching based on runtime context, contention-aware communication scheduling, elimination of redundant resharding steps, and reordering of communication operations. A heuristic model automatically selects the optimal degrees of sharding and pipelining for a given hardware and model configuration. Evaluations on Llama3, Qwen3, and Qwen3-MoE across 32-GPU and 64-GPU clusters show up to 1.28× higher MFU and 1.87× lower memory usage compared to TorchTitan. The approach is practical for engineers seeking to scale LLM training efficiently on existing clusters.
Problem
Training large language models on large GPU clusters using both Fully Sharded Data Parallel and Pipeline Parallel often suffers from inefficient task scheduling, leading to pipeline bubbles and high memory usage.
Method
The approach introduces four fine-grained optimizations: dynamic context-aware prefetching, communication contention mitigation, redundant reshard elimination, and communication order optimization, along with a heuristic model that selects appropriate parallelism degrees based on hardware and model size.
Results
The approach achieves up to 1.28× higher Model FLOPs Utilization and reduces memory consumption by 1.87× compared to TorchTitan on the evaluated LLMs.
Contributions
It provides a systematic set of optimizations to alleviate pipeline bubbles and resource contention, and a heuristic for selecting parallelism degrees, enabling more efficient training of large language models on large clusters.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction