What vLLM is famous for
vLLM's claim to fame is PagedAttention: KV cache stored in fixed-size blocks like OS memory pages, with a block table per sequence. The result is near-zero KV-cache fragmentation — you can fit many more concurrent requests on the same GPU than a naive engine.
Continuous batching, in one paragraph
Naive batching: collect N requests, run them through together, emit N responses. The slowest request stalls all others. Continuous batching: at every decoding step, the engine can swap finished sequences out and pull queued sequences in. Sequence A on token 50 can share a step with sequence B on token 1. Throughput on bursty traffic goes up by 5-10x.
Two ways to run vLLM
- OpenAI-compatible server:
vllm serve {model_id}— drop-in for OpenAI clients. - Python library:
LLM+SamplingParamsfor offline batch jobs.