Skip to content
StackDecode
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.

Dataset in obje…Data loaderGPU node 1GPU node 2Checkpoints
  • 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

  1. 1Partition the work
  2. 2Compute gradients on each worker
  3. 3Synchronise (all-reduce)
  4. 4Update and repeat

Where it is used

Large models.

Watch out for

Communication can dominate compute.

Related