System Design
19. AI System Design and LLM InfrastructureAnimated walkthrough
Quantisation
Using fewer bits for weights.
The idea
Storing weights as 8-bit or 4-bit numbers cuts memory and speeds up inference, with a small quality loss.
Watch it work
The steps light up one at a time. Use the controls to pause or step through.
- 1Pick a lower precision
- 2Convert the weights
- 3Calibrate if needed
- 4Evaluate quality
1/4
Step by step
- 1Pick a lower precision
- 2Convert the weights
- 3Calibrate if needed
- 4Evaluate quality
Where it is used
Fitting larger models.
Watch out for
Quality loss on sensitive tasks.