← Questions

KV cache eviction for million-token contexts

0
Hugging FaceSystem design

An AI system design interview question asked in Hugging Face's domain depth round. It tests kv cache, llm inference and attention.

A model serving system must handle contexts of up to a million tokens, but the KV cache for that many tokens doesn't fit in GPU memory, and it competes with the cache of every other request on the GPU.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

kv cache · llm inference · attention

Your canvas and the AI tutor open when you unlock this question.