System Design
19. AI System Design and LLM InfrastructureAnimated
Machine Learning System Design
Designing the end-to-end system around an ML model.
The idea
Cover data, features, training, evaluation, serving and monitoring, with clear metrics for the business goal.
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
Changes to code or data trigger a pipeline.
- step:
- 1/4
- at:
- Code + data
1/10
The green dot is a request moving through the system.
Step by step
- 1Define the goal and metric
- 2Build data and features
- 3Train and validate
- 4Deploy and monitor for drift
Where it is used
ML interviews and real products.
Watch out for
Offline metrics that do not match online behaviour.