the.ai

Systems / Distributed

verified

Pipeline Parallelism

Give each device a consecutive group of layers and pass activations along the chain. The problem is obvious the moment you draw the schedule: while the first stage works, every other stage has nothing to do. Splitting the batch into micro-batches keeps them all busy, and the more micro-batches are in flight the smaller the idle fraction — the part that remains is called the bubble.

Viz primitive · budget-splitbubble-steps = 3

bubble-steps holds 27% of the budget; rest holds the remaining 73%.

The pipeline bubble against the micro-batch steps that fill it, both as slots in the schedule. Drag the number of idle stages to watch the bubble take the run over.

3

Reviewed by opendroid · 2026-08-04

  • arXiv:1811.06965 — GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism
  • arXiv:1806.03377 — PipeDream: Fast and Efficient Pipeline Parallel DNN Training
  • arXiv:2104.04473 — Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM