System Design
19. AI System Design and LLM InfrastructureAnimated
Distributed Model Training
Training across many machines.
The idea
Split data, the model or layers across devices and synchronise gradients.
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
Stream shards of data to every GPU worker.
- step:
- 1/4
- at:
- Dataset in object storage
1/9
The green dot is a request moving through the system.
Step by step
- 1Partition the work
- 2Compute gradients on each worker
- 3Synchronise (all-reduce)
- 4Update and repeat
Where it is used
Large models.
Watch out for
Communication can dominate compute.