The KV cache budget
Lesson 13 of 28 · Serving and scaling · 2 min Get the course to watchYour model fits on the GPU, the pod is healthy, and yet at twenty concurrent users the queue starts growing. The weights are not the problem. The problem is the other thing in GPU memory, which grows with every conversation.
That thing is the key value cache, and once you can size it with a little arithmetic, capacity planning stops being a mystery and becomes a calculation.
The rest of this lesson
- What the cache holds
- The arithmetic
- Turning it into capacity
- The levers
- Judgement
The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Run AI in production on Kubernetes.