Skip to content
StackDecode
System Design
19. AI System Design and LLM InfrastructureAnimated

Pipeline Parallelism

Layers split into stages across devices.

The idea

Micro-batches flow through the stages like an assembly line.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Model weightsGPU 1 (layers 1…GPU 2 (layers 9…GPU 3 (layers 1…Output
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

The model is too big for one GPU, so split the weights.

step:
1/4
at:
Model weights
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Assign layers to stages
  2. 2Split the batch into micro-batches
  3. 3Stream them through
  4. 4Overlap compute

Where it is used

Deep models.

Watch out for

Pipeline bubbles waste time.

Related