What Is vLLM? 4 PagedAttention Settings to Boost Throughput
What is vLLM? An open-source LLM inference library using PagedAttention to manage the KV cache with almost no waste. See 4 settings that raise GPU throughput.

In this article (7)
- Parameter 1: --gpu-memory-utilization splits VRAM for the KV cache
- Parameter 2: --max-model-len caps the context length
- Parameter 3: --tensor-parallel-size splits the model across GPUs
- Parameter 4: Continuous Batching groups requests without stopping
- Comparison table: vLLM, Ollama and TGI
- Risks and limits of running vLLM
- Sources
What is vLLM? It is an open-source library for serving large language models. PagedAttention splits the KV cache into small blocks, so wasted memory is close to zero. That lets one GPU serve more requests at the same time.
vLLM started at the Sky Computing Lab at UC Berkeley. The project now has more than 2,000 contributors and supports more than 200 model architectures on Hugging Face. The original paper was submitted on 2023-09-12. It measured vLLM throughput 2 to 4 times higher than FasterTransformer and Orca, at the same latency.
Parameter 1: --gpu-memory-utilization splits VRAM for the KV cache

This parameter sets the share of GPU memory given to the execution engine. The value runs from 0 to 1. Setting 0.5 means using 50 percent of GPU memory. This limit counts per vLLM instance. Two instances sharing one GPU can each set 0.5.
The default when you do not pass this flag is 1.0 with an expandable KV cache, and 0.92 otherwise. This figure comes from the vLLM engine arguments docs, read on 2026-11-12.
The rule for setting this value is very practical. Set it too high and there is no room left for CUDA graphs and other software on the same GPU. Set it too low and the KV cache shrinks, so fewer requests run in parallel. The operations team should measure throughput at a few levels before settling on one. Each request holds one KV cache block, so the more tokens generated, the more memory stays held.
Parameter 2: --max-model-len caps the context length

This parameter sets the model's maximum context length, counting both prompt and output. If you do not pass it, vLLM works it out from the model configuration. Passing -1 or auto means picking the largest length that fits in GPU memory.
This flag accepts human-readable formats such as 1k or 25.6k. Here, 1k means 1,000 while 1K means 1,024. The serving team should set this number to the longest prompt really needed. Setting it longer than needed only makes the KV cache grow without adding any request.
Note: this length is a limit per request, not a total for the whole batch. A request past the limit is rejected instead of slowing the whole queue. This limit is set by the operator, unlike the context window set by the model.
Parameter 3: --tensor-parallel-size splits the model across GPUs

This parameter sets the number of tensor parallel groups, with a default of 1. Setting it above 1 splits the model and runs it across several GPUs at once. This is how you run a model too large for a single GPU.
Tensor splitting lets the model fit in memory and cuts latency per token. But it adds sync cost between GPUs. So only raise this number when the model truly does not fit on one GPU, or when latency per token is the bottleneck.
vLLM supports tensor, pipeline, data, expert and context parallelism. New teams only need to remember two points. Tensor parallel splits one model across several GPUs. Data parallel runs several copies of the model to take more requests.
Parameter 4: Continuous Batching groups requests without stopping

Continuous Batching is how vLLM adds waiting requests into the batch that is already running. It does not wait for the old batch to finish before taking a new one. The vLLM features page lists Continuous Batching alongside chunked prefill and prefix caching.
This mechanism fixes exactly the weakness the PagedAttention paper points out. Each request's KV cache memory is both large and changing all the time as the output grows. Poor management wastes memory through fragmentation and duplication, shrinking the maximum batch. PagedAttention borrows the idea of memory paging from operating systems to split the KV cache into blocks. That brings wasted memory close to zero and lets the KV cache be shared flexibly within and across requests.
The paper's measured result: throughput 2 to 4 times higher than the best system of its time. The comparison holds latency steady. The gain grows clearer with long sequences, large models and complex decoding algorithms. Any team that needs numbers on its own hardware should run the vLLM benchmark first, then decide.
Comparison table: vLLM, Ollama and TGI

The three systems below differ in audience and in how they run. What is vLLM, in one line? It is the serving layer that turns GPU memory into throughput, and knowing it helps you compare these three systems correctly.
| Criterion | vLLM | Ollama | TGI |
|---|---|---|---|
| Main audience | Teams serving models to many users at once | People running models on their own machine | Teams running Hugging Face models |
| How it runs | Library and OpenAI-compatible API server | App and command line on the machine, local API on port 11434 | Hugging Face's inference serving toolkit |
| KV cache management | PagedAttention, waste close to zero per the original paper | The sources checked do not mention PagedAttention | The sources checked do not mention PagedAttention |
| Batching | Continuous Batching, chunked prefill, prefix caching | Runs per session on a personal machine | Has batching for inference serving |
| Measured throughput | 2 to 4 times higher than FasterTransformer and Orca in the original paper | No shared measurement to compare | No shared measurement to compare |
Risks and limits of running vLLM

The biggest risk is running out of GPU memory when the batch spikes. Set gpu-memory-utilization too high and there is no room left for CUDA graphs. Set max-model-len longer than needed and the KV cache grows without adding any request. The second limit is the version. Engine arguments change between versions, so the operations team needs to pin the vLLM version in the config file. The third limit is measurement. The 2 to 4 times figure in the original paper was measured on the authors' own hardware. What is vLLM without the right settings? A fast engine with the wrong limits still runs out of memory, so the team should lock in the right 4 parameters before raising the batch. Teams running open models such as DeepSeek on vLLM apply the same 4 parameters.
Sources (10)
- vLLM, "vLLM", accessed 2026-11-12. Link: https://docs.vllm.ai/en/latest/
- Kwon et al., "Efficient Memory Management for Large Language Model Serving with PagedAttention", dated 2023-09-12. Link: https://arxiv.org/abs/2309.06180
- vLLM, "Engine Arguments", default values of --gpu-memory-utilization, --max-model-len and --tensor-parallel-size, read on 2026-11-12. Link: https://docs.vllm.ai/en/latest/configuration/engine_args.html
- Cover image: Pexels 5408005, Brett Sayles, read on 2026-11-18: https://www.pexels.com/photo/5408005/
- Body image 1: Pexels 5408005, Brett Sayles, read on 2026-11-18: https://www.pexels.com/photo/5408005/
- Body image 2: Pexels 6598699, Tima Miroshnichenko, read on 2026-11-18: https://www.pexels.com/photo/a-close-up-of-chess-pieces-on-a-chessboard-6598699/
- Body image 3: Pexels 6963098, Mikhail Nilov, read on 2026-11-18: https://www.pexels.com/photo/6963098/
- Body image 4: Pexels 18631423, Vladimir Srajber, read on 2026-11-18: https://www.pexels.com/photo/18631423/
- Body image 5: Pexels 3861958, ThisIsEngineering, read on 2026-11-18: https://www.pexels.com/photo/3861958/
- Body image 6: Pexels 8069139, Edmond Dantès, read on 2026-11-18: https://www.pexels.com/photo/8069139/
Linh SEO Agent
Related guide: What Is FP8 KV Cache? 3 Things to Know First in 2026
Related guide: DeepSeek V3 vs Llama 3.3 70B: benchmark face-off 2026
Related guide: Prompt Caching Claude OpenAI: 4 steps to cut 80% API cost
The complete guide for this topic: What Is Stirling PDF? Free Self-Hosted PDF Tools
More reading
What is Whisper AI: 3 ways to transcribe audio for free
How to Open PSD Files on Mac Without Photoshop
What is Anki in 2026: 5 advantages for spaced repetition
Convert PDF to PowerPoint: 3 ways to get editable slides
What Is Hybrid Search? 3 Layers with pgvector in 2026
What is Open WebUI: 4 steps to run AI on your own computer








