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.
- 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
- 1Assign layers to stages
- 2Split the batch into micro-batches
- 3Stream them through
- 4Overlap compute
Where it is used
Deep models.
Watch out for
Pipeline bubbles waste time.