Skip to content
inference.academy

glossary/serving/preemption

Preemption

also swap, recompute

Evicting a running request from the batch when the KV cache runs out, so the others can keep growing. Its cache is either swapped to host memory and copied back later, or dropped and recomputed from the prompt when the request resumes. Either way the user sees their stream pause. Preemptions are the symptom of admitting more than the memory can carry to completion.


youngest first

The request usually chosen, because it has the least cache to throw away and the least work to redo.


See it happen


Related