vLLM request flow: queue, prefill, decode, stream

Scroll or pinch to zoom, drag to move, double-click to zoom in 100% SVG PNG Back to the post
vLLM request flow in five steps: a chat completion request is accepted, joins a queue and is batched with other requests, the prefill step reads the whole prompt and builds the key-value cache, the decode step generates one token at a time, tokens are streamed back to the caller, and metrics for queue time, latency and tokens per second are recorded.