Skip to content
inference.academy

glossary/serving/request-scheduling

Request scheduling

also scheduler, admission control

Deciding, each step, which waiting requests join the batch and which running ones stay. The scheduler balances the memory the KV cache needs against the latency each request was promised. First-come-first-served is the default; it is fair and it lets one long prompt delay everyone. Admitting greedily fills the cache and forces preemptions later. A watermark of free memory held back is the usual compromise.


4 versus 32

Preemptions over forty requests in the PagedAttention explainer, with and without a free-block watermark.


See it happen


Related