Level 5: AI / LLM systems · L5.3 LLM inference serving & GPU capacity
Sizing a GPU fleet; self-host vs API
Size GPUs for a target load and compare with API cost (and a local Mac).
14 min · Pro
What you take away
- Size in two passes: tokens per second decides the GPU count, and KV cache memory usually overrides it.
And 3 more inside the class, in Pro.
How the class is laid out
- The problem
- Two passes, and the second one usually wins
- The crossover
- The memory bound
- KV cache
- Batching
- Optimisations
- Sizing
- Check your understanding