English

Re-evaluating the Memory-balanced Pipeline Parallelism: BPipe

Machine Learning 2024-01-05 v1 Computation and Language Distributed, Parallel, and Cluster Computing

Abstract

Pipeline parallelism is an essential technique in the training of large-scale Transformer models. However, it suffers from imbalanced memory consumption, leading to insufficient memory utilization. The BPipe technique was proposed to address this issue and has proven effective in the GPT-3 model. Nevertheless, our experiments have not yielded similar benefits for LLaMA training. Additionally, BPipe only yields negligible benefits for GPT-3 training when applying flash attention. We analyze the underlying causes of the divergent performance of BPipe on GPT-3 and LLaMA. Furthermore, we introduce a novel method to estimate the performance of BPipe.

Keywords

Cite

@article{arxiv.2401.02088,
  title  = {Re-evaluating the Memory-balanced Pipeline Parallelism: BPipe},
  author = {Mincong Huang and Chao Wang and Chi Ma and Yineng Zhang and Peng Zhang and Lei Yu},
  journal= {arXiv preprint arXiv:2401.02088},
  year   = {2024}
}
R2 v1 2026-06-28T14:08:24.367Z