Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelines

Shigang Li, Torsten Hoefler
7/14/2021
cs.DCcs.LG

Official code: ParCIS/Chimera (73 stars, Python, GPL-3.0, last commit 2025-03-20).

Abstract

Training large deep learning models at scale is very challenging. This paper proposes Chimera, a novel pipeline parallelism scheme which combines bidirectional pipelines for efficiently training large-scale models.

Show full abstract

Chimera is a synchronous approach and therefore no loss of accuracy, which is more convergence-friendly than asynchronous approaches. Compared with the latest synchronous pipeline approach, Chimera reduces the number of bubbles by up to 50%; benefiting from the sophisticated scheduling of bidirectional pipelines, Chimera has a more balanced activation memory consumption. Evaluations are conducted on Transformer based language models. For a GPT-2 model with 1.3 billion parameters running on 2,048 GPU nodes of the Piz Daint supercomputer, Chimera improves the training throughput by 1.16x-2.34x over the state-of-the-art synchronous and asynchronous pipeline approaches.

View on arXivView PDF

Code Implementations(1)

ParCIS/ChimeraOfficial100%
GPL-3.0

Chimera: bidirectional pipeline parallelism for efficiently training large-scale models.

739Python, ShellMay 30, 20211 years agoGPL-3.0
distributed-deep-learningpipeline-parallelismtransformers

Similar Papers

Cite this paper

@article{li2021chimera,
  title  = {Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelines},
  author = {Shigang Li and Torsten Hoefler},
  year   = {2021},
  eprint = {2107.06925},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.06925}
}

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/2107.06925.svg)](https://codeofpaper.com/paper/2107.06925)

Discussion