System Design
19. AI System Design and LLM InfrastructureAnimated
Distributed Inference
Serving a model across several devices or nodes.
The idea
Large models are sharded over GPUs, requests are routed and batched.
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
Replicate the model across GPUs for throughput.
- step:
- 1/4
- at:
- Requests
1/8
The green dot is a request moving through the system.
Step by step
- 1Shard the model
- 2Route requests
- 3Batch across requests
- 4Stream tokens back
Where it is used
Big LLMs.
Watch out for
Interconnect latency.