Table of Contents
vLLM is an open-source inference server that loads a language model onto your own GPU and serves it to many users at once through an OpenAI-compatible API. It is built for the case where one card has to answer a whole team, not one person at a keyboard.
This vLLM tutorial is a test, not a rewrite of the quickstart. We installed version 0.34.0 with pip on one RTX 3090 on the night of 1 to 2 December 2026, served Qwen/Qwen2.5-7B-Instruct, and then ran the same weights on Ollama on the same card.
The result is less dramatic than most comparisons and more useful. vLLM gave one client 46 tokens a second and gave 64 clients about 1,930 in total. A default Ollama stayed at about 52, whatever the load. A tuned Ollama was level with vLLM at 8 clients (355 against 347) and reached 825 at best. So the real gap at 64 clients was about 2.5 times, not the 37 times a default Ollama suggests. With one client, Ollama was the faster of the two.
Key points
- What it is: vllm-project/vllm, Apache-2.0, 97,967 stars on 1 December 2026. We tested 0.34.0, released on 16 November 2026.
- Install:
pip install vllm==0.34.0took 3 minutes 57 seconds and 9.4 GB of disk. It brings its own CUDA 13 build of PyTorch. - Start times: 180.8 seconds for the first start, 61.0 for the second (one run each). 97 seconds of the first start was one kernel build.
- Memory: the server held 22,040 MiB of the 24,576 MiB card while idle. That is the new default in 0.34.0, and it is on purpose.
- Throughput on one RTX 3090: 46.4 tokens a second for 1 client, 346.9 for 8, and 1,930.4 for 64. No request failed in 388.
- Against Ollama, same weights: one client was faster on Ollama (52.8 against 46.4). A default Ollama stayed near 52 for any number of clients. With 32 parallel slots, it reached 825.
- The API key does not cover every route: on a server started with
--api-key,POST /invocationsanswered a chat request with no key. - Usage statistics are on by default: a report of 45 fields went out 37 seconds after the start.
DO_NOT_TRACK=1turns it off;DO_NOT_TRACK=truedoes not.
What is vLLM?
vLLM is a server for running large language models on GPUs. You give it a model name from Hugging Face, it loads the weights onto the card, and it answers HTTP requests in the OpenAI format. The repository describes itself as “a high-throughput and memory-efficient inference and serving engine for LLMs.”
The facts as of 1 December 2026:
- Repository: vllm-project/vllm, 97,967 stars, license Apache-2.0.
- Origin: the README says it was “originally developed in the Sky Computing Lab at UC Berkeley.” It became a PyTorch Foundation-hosted project on 7 May 2025.
- Release rhythm: a minor release about every two weeks. Version 0.33.0 came out on 2 November 2026 and 0.34.0 on 16 November.
- What it needs, from the docs: Linux, Python 3.11 to 3.14, and an NVIDIA GPU with compute capability 7.5 or higher. There is no native Windows build.
That release rhythm matters for anyone following a guide. Several things in this article changed in the last two releases, and guides from earlier in the year describe defaults that no longer hold.
Why vLLM matters when one card serves a team
Most people meet local models through a desktop tool, with one person asking one question at a time. A team is a different problem. Ten developers, a support tool, and a nightly batch job all want the same model at the same moment.
The buyer’s question is cost per user. A GPU server is a fixed cost, so every extra user it can serve at an acceptable speed makes each one cheaper. A server that answers one request at a time gives the second user a queue. A server that batches gives the second user almost the same speed as the first.
That is the whole case for vLLM, and our numbers show both sides of it. At 64 clients, each client still got 30.2 tokens a second, against 46.3 alone. At one client, vLLM was the slower server. If one person uses the model, you do not need it.
If your hardware has no GPU at all, this is the wrong tool; our OpenVINO tutorial covers inference on a CPU.
How vLLM works
Two ideas do the work. Both are from the project’s docs and paper; we did not measure them in isolation.
Continuous batching. A language model produces one token per step. vLLM puts every request that is in flight into the same step, so one pass through the model moves all of them forward by one token. A new request joins the batch at the next step; it does not wait for the others to finish.
A shared cache. Each request needs memory for what it has read and written so far, called the KV cache. vLLM keeps one pool of it for all requests and hands it out in blocks as they grow. Our server’s log put the pool at 115,712 tokens.
You can see the batching in our results. At 64 clitogether asents, the median request took 6.62 seconds and the 95th percentile 6.71 seconds. The requests finished together as one batch.
A server with fixed slots works differently. Ollama gives each parallel slot its own context, so memory grows with the number of slots, and you choose that number before the start.
What this vLLM tutorial tested, and on what
| Part | What we used |
|---|---|
| Software | vLLM 0.34.0 from PyPI, installed with pip into a Python 3.12 virtual environment |
| Model | Qwen/Qwen2.5-7B-Instruct from Hugging Face, revision a09a35458c70, Apache-2.0, not gated; 15 GB on disk, loaded at 16-bit |
| Machine | Ubuntu 24.04, AMD Ryzen Threadripper PRO 5955WX (32 threads), 251 GB of memory |
| GPU | One NVIDIA GeForce RTX 3090 (24 GB), driver 620.70.10, power limit 280 W |
| Comparison | Ollama 0.40.18 with qwen2.5:7b-instruct-fp16, the same weights at 16-bit, on the same card |
| Date | The night of 1 to 2 December 2026 (IST) |
The machine has three RTX 3090 cards. Every measurement used one of them, with one server loaded at a time, so “one RTX 3090” is literal. The lab account has no root and no Docker, and the machine is shared.
One detail keeps the comparison fair. Ollama’s default tag qwen2.5:7b is a 4-bit file of 4.7 GB. We used the fp16 tag, 15 GB, so both servers ran the same 16-bit weights. Not every comparison does that, and a 16-bit model against a 4-bit file measures the files as much as the servers.
Three things we did not run, so you can weigh the rest:
- Docker. The image
vllm/vllm-openai:v0.34.0exists; nothing here describes it. - The
uvinstall route from the quickstart. We used plain pip. - More than one GPU, or a card smaller than 24 GB.
How to set up vLLM step by step
This is the pip route. The install, the model download, and the first start took us about 11 minutes together.
1. Check the prerequisites
You need Linux, Python 3.11 to 3.14, and an NVIDIA card with a recent driver. We used Python 3.12 and driver 620.70.10. The docs say CUDA 13 needs an R580 or newer driver.
You do not need a system CUDA toolkit. vLLM used the one inside its PyTorch wheel.
2. Install vLLM with pip
python3 -m venv venv
./venv/bin/pip install vllm==0.34.0In our run, this vllm install took 3 minutes 57 seconds, downloads included. It installed 200 packages, and the virtual environment was 9.4 GB on disk.
It brought torch 2.14.0+cu130, which is the CUDA 13.0 build. The install page of the docs still mentions CUDA 12.9 and a cu129 index. The release notes for 0.33.0 and 0.34.0 say the wheels are CUDA 13.0 only, and that is what arrived.
The dependency list is wider than you might expect. Among the 200 packages were anthropic 2.16.0, mcp, fastapi-cloud-cli, and OpenTelemetry exporters.
Pin the version. With a release every two weeks, an unpinned install next month is a different product.
3. Download the model
./venv/bin/hf download Qwen/Qwen2.5-7B-InstructThis took 235 seconds for 15 GB. Doing it ahead keeps the download out of the start time, and it tells you early if the disk is too small.
The model is not gated, so no Hugging Face account or token is needed.
4. Start the server with vllm serve
./venv/bin/vllm serve Qwen/Qwen2.5-7B-InstructThat is the whole command for a first try. The server is ready when /health returns 200. The last lines of the log name the address:
Starting vLLM server on http://0.0.0.0:8000Read that address again before you leave it running. It is every network interface, with no authentication. The section on the open port below explains what to do about it.
5. Send the first request
curl -s localhost:8000/v1/chat/completions -H "Content-Type: application/json" \
-d '{"model":"Qwen/Qwen2.5-7B-Instruct","messages":[{"role":"user","content":"What is the capital of France? One word."}]}'The answer was "content":"Paris", with HTTP 200 in 0.10 seconds for the first request and 0.06 for the second. The usage block reported 39 prompt tokens and 2 completion tokens.
GET /v1/models lists the model as Qwen/Qwen2.5-7B-Instruct, with max_model_len: 32768. Any client that speaks the OpenAI format can use this endpoint by changing its base URL.
6. Give the model a short name
./venv/bin/vllm serve Qwen/Qwen2.5-7B-Instruct --served-model-name qwenWith --served-model-name qwen, clients ask for qwen, and the long name is no longer accepted. A short name also means you can swap the model later without touching the clients.
A wrong name gets a clear error, HTTP 404:
The model `gpt-4o` does not exist. Valid aliases: Qwen/Qwen2.5-7B-Instruct.How long vllm serve takes to start
The first start is slow, and the reason is in the log.
| Start | Ready after | What happened |
|---|---|---|
| First start | 180.8 s | 97 seconds went to one kernel build |
| Second start | 61.0 s | The compile cache was reused |
| First start with the kernel packages installed | 82.7 s | No kernel build |
One run each, timed from the command to the first HTTP 200 on /health, with the model already on disk.

At 23:28:20, the first start’s log says:
flashinfer.jit: Building JIT module sampling; this can take several minutes on first use.The next line is at 23:29:57. The rest of the first start was small by comparison: 3.32 seconds to load the weights, 18.37 seconds for torch.compile, and 9 seconds to capture CUDA graphs. On the second start, torch.compile took 0.25 seconds.
vLLM has a command to skip that kernel build:
./venv/bin/vllm download-kernelsWe ran it, and the trade was poor on this card. The command took 5 minutes 22 seconds. It installs six wheels, 1,588 MB of downloads in total, and the virtual environment grew from 9.4 GB to 20 GB. A fresh first start then took 82.7 seconds.
So it saved about 98 seconds of one first start, and cost 5 minutes and 10 GB. The docs say the build “can add several minutes on Hopper and newer GPUs”, so on newer cards the sum may come out the other way. On an RTX 3090, we would skip it and accept one slow start.
For comparison, Ollama loaded the same weights and gave a first answer 7.2 to 7.3 seconds after a server restart (4 runs). If your servers restart often, a 61 second start is a cost to plan for.
Memory: why vLLM takes the whole card
With the server idle after the first start, nvidia-smi showed 22,040 MiB of 24,576 MiB in use. After a load run, it showed 22,476 MiB.
The weights are 14.3 GiB of that. The rest is the cache for requests in flight and working memory. vLLM takes the card on purpose: free memory becomes room for more concurrent requests.
The log spells it out:
Free memory on device (23.23/23.58 GiB) on startup. Desired GPU memory utilization is (1.0, 23.58 GiB).
GPU KV cache size: 115,712 tokens, Maximum concurrency for 32,768 tokens per request: 3.53xThe second line is worth a moment. Three and a half requests of the full 32,768 tokens fit at once. Short requests fit by the dozen, which is why 64 clients with short prompts were no trouble.
The default changed in this release. Older guides say --gpu-memory-utilization defaults to 0.9 and tell you to tune it. In 0.34.0, the flag’s help text says:
If unspecified, 1.0 with the extensible KV cache (sized from measured memory) and 0.92 otherwise
The same text advises you to “leave this unset unless something needs memory that vLLM does not measure: other processes sharing the GPU”. So the old tuning advice is now the exception. If another process shares the card, that is when you set it.
After we stopped the server with Ctrl+C, the card was back to 12 MiB within seconds.
One more line from the log deserves a mention:
Default vLLM sampling parameters have been overridden by the model's generation_config.json: {'repetition_penalty': 1.05, 'temperature': 0.7, 'top_k': 20, 'top_p': 0.8}.The model’s own repository sets the sampling defaults, not vLLM. If your answers differ from another server’s, look here first. The flag --generation-config vllm switches that off, according to the same log line.
vLLM throughput on one RTX 3090
This is the part most people come for. First, how we measured, because the method decides the numbers.
- Each level sends streaming chat requests from N client threads at once.
- Every request has a different prompt of about 60 tokens, so no cache can answer it, and asks for 200 output tokens at temperature 0. Every answer in every run was exactly 200 tokens.
- “Tokens/s” is all output tokens of the level divided by its wall time.
- Before each level, the script waited until the card had cooled to 66 C or below.
The script is ours, in Python with no dependencies.
vLLM 0.34.0 with default settings
| Clients | Requests | Errors | Tokens/s in total | Per client | First token | Request time (median) |
|---|---|---|---|---|---|---|
| 1 | 8 | 0 | 46.4 | 46.3 | 0.03 s | 4.32 s |
| 2 | 8 | 0 | 91.4 | 45.7 | 0.05 s | 4.39 s |
| 4 | 12 | 0 | 180.1 | 45.1 | 0.09 s | 4.44 s |
| 8 | 24 | 0 | 346.9 | 43.5 | 0.19 s | 4.60 s |
| 16 | 48 | 0 | 652.9 | 40.9 | 0.31 s | 4.90 s |
| 32 | 96 | 0 | 1,162.8 | 36.4 | 0.49 s | 5.50 s |
| 64 | 192 | 0 | 1,930.4 | 30.2 | 0.85 s | 6.62 s |
No request failed at any level, 388 requests in all. A repeat right after gave 46.2, 347.2, and 1,910.6 tokens a second for 1, 8, and 64 clients. An earlier run the same evening gave 1,915.8 at 64. So the top figure held across three runs, between about 1,900 and 1,930.
Read the “Per client” column. Going from 1 client to 64, each client’s own speed fell from 46.3 to 30.2 tokens a second. The total went up about 41 times. The first token still arrived in under a second for the median client.
We set nothing for any of these levels. The same command served 1 client and 64.
vLLM vs Ollama on the same card
Now the same weights on Ollama 0.40.18, on the same card.
Ollama with default settings
| Clients | Requests | Errors | Tokens/s in total | Per client | First token | Request time (median) |
|---|---|---|---|---|---|---|
| 1 | 8 | 0 | 52.8 | 52.9 | 0.04 s | 3.79 s |
| 2 | 8 | 0 | 52.2 | 26.1 | 3.87 s | 7.67 s |
| 4 | 8 | 0 | 51.6 | 13.0 | 11.57 s | 15.41 s |
| 8 | 8 | 0 | 51.8 | 11.8 | 15.31 s | 19.15 s |
| 16 | 16 | 0 | 46.2 | 6.0 | 31.21 s | 35.54 s |
Two things stand out.
One client is faster on Ollama: 52.8 against 46.4 tokens a second, about 14 percent. With one user, vLLM gives no speed advantage on this card.
Ollama’s default answers one request at a time. The total stays near 52 whatever the number of clients, and the others wait. With 8 clients, half of them waited 15 seconds or more for a first token. With 16, half waited 31 seconds or more. (The 16-client level reads 46 and not 52 because it ran for 69 seconds on a card at its power limit; more on that below.)
Stop here, and you get a headline: vLLM is 37 times faster at 64 clients. That headline compares a batching server with a server left on one slot.
Ollama with its parallel setting raised
Ollama has a setting for this, OLLAMA_NUM_PARALLEL. We ran it at 8, 16, and 32 slots.
The context has to come down first. Ollama gives every slot its own context, so the 32,768 default does not fit 8 slots on a 24 GB card. We set OLLAMA_CONTEXT_LENGTH=4096.
| Slots | Card memory | Clients | Requests | Ollama tokens/s | First token | vLLM at the same level |
|---|---|---|---|---|---|---|
| 8 | 15,898 MiB | 8 | 16 | 354.7, then 359.5 | 0.28 s | 346.9 |
| 8 | 16 | 32 | 353.6 | 4.75 s | 652.9 | |
| 16 | 17,546 MiB | 16 | 32 | 570.9, then 596.8 | 0.30 to 0.35 s | 652.9 |
| 16 | 32 | 64 | 571.0, then 551.3 | 5.65 to 6.03 s | 1,162.8 | |
| 32 | 21,130 MiB | 32 | 64 | 825.0 | 0.55 s | 1,162.8 |
| 32 | 64 | 128 | 783.0 | 8.22 s | 1,930.4 |
No errors in any of these runs.

With 8 slots and 8 clients, Ollama was level with vLLM: 355 and 360 against 347. For a small team, a tuned Ollama does the job.
The gap opens after that. At 16 clients, it was 571 to 597 against 653. At 32, it was 825 against 1,163. At 64, Ollama’s best was 783 with 32 slots, with half the clients queued for 8 seconds, against 1,930.
So against a tuned Ollama, vLLM’s advantage at 64 clients was about 2.5 times. That is the honest number from our run.
What the tuning cost is the other half of the answer:
- A small context per request. Each of the 32 slots had 4,096 tokens. Every vLLM request could use up to 32,768 from the shared pool.
- A number chosen in advance. You pick the slots before the start, and clients beyond them queue. vLLM needed no setting for any level.
- The same memory in the end. Ollama with 32 slots used 21,130 MiB, close to what vLLM takes.
The measurement trap: a warm card and the wrong backend
Our first three Ollama sweeps were wrong, and we threw them out. Both mistakes are easy to make, so here they are.
The first sweep ran on another card, through Vulkan. Ollama 0.40.18 has a Vulkan backend switched on in its settings. With CUDA_VISIBLE_DEVICES=1 set, it still listed the other two cards through Vulkan and chose one of them. With 8 slots and the default context, it spread a 32 GB model over all three cards. We set OLLAMA_VULKAN=false for every run reported here; the log then shows library=CUDA and one card.
The next two ran without a pause between levels. Ollama’s total fell from 52 to 41, 33, 29, and 28 tokens a second as clients were added. It looked like queueing overhead. It was heat. Sampled during a run, the card sat at its 280 W power limit, reached 80 C, and its clock fell from about 945 MHz to about 780 MHz. With a cool-down before each level, 1, 8, and 1 clients gave 53.2, 53.3, and 53.6.
So every number above comes from runs with a cool-down before each level, and levels of 9 to 35 seconds (the one 69 second level is marked above). A server that runs flat out for minutes on this card will do less than these tables say, whichever server it is.
The published comparisons we read do not say how they handled heat, and several ran Ollama on its default single slot. Red Hat’s test of August 2025 did tune Ollama to 32 parallel requests, on an A100, and reported 793 against 41 tokens a second; Red Hat sells a product built on vLLM. Treat any single ratio, ours included, as one machine’s answer.
The port is open, and the API key does not cover every route
This is the section to read twice.
With no flags, the server listens on all interfaces. The log says http://0.0.0.0:8000, and a request to the machine’s own network address, not localhost, got HTTP 200 on /v1/models. There is no authentication by default.
The obvious fix is --api-key. We started the server with a key, then called 13 routes with and without it (one run):
| Route | Without the key | With the key |
|---|---|---|
| GET /health | 200 | 200 |
| GET /version | 200 | 200 |
| GET /metrics | 200 | 200 |
| GET /load | 200 | 200 |
| GET /docs | 200 | 200 |
| GET /openapi.json | 200 | 200 |
| GET /ping | 200 | 200 |
| POST /tokenize | 200 | 200 |
| GET /v1/models | 401 | 200 |
| POST /v1/chat/completions | 401 | 200 |
| POST /v1/messages | 401 | 200 |
| POST /inference/v1/generate | 401 | 403 |
| POST /invocations | 200 | 200 |

POST /invocations answered a chat request without any key. The body was the same JSON as for /v1/chat/completions, and the answer was a normal completion. The same request to /v1/chat/completions without the key got {"error":"Unauthorized"}.
This is documented, not a bug. The source says the key only covers the /v1, /v2, /inference, and /cohere path prefixes, and the flag’s own help text ends with “Do not rely on --api-key alone to secure vLLM”. We confirmed it by running it.
/metrics and /tokenize are open too. Anyone who can reach the port can read your load figures.
What we would do, and did not run as a test: start with --host 127.0.0.1, and put a reverse proxy or a gateway in front that passes only /v1/. The project’s security guide gives the same advice.
Usage statistics: on by default, and strict about the opt-out
vLLM reports usage statistics by default. The source gives the destination as https://stats.vllm.ai.
To read the payload, we pointed vLLM at a listener of our own on the same machine with VLLM_USAGE_STATS_SERVER, a variable vLLM reads. Nothing left the lab.
A POST arrived 37 seconds after the first start command: 1,510 bytes of JSON with 45 fields. The same record was written to ~/.config/vllm/usage_stats.json.
What it contained on our machine: a random uuid, the CPU model and core count, total memory, the kernel and platform string, gpu_type: NVIDIA GeForce RTX 3090, GPU memory, model_architecture: Qwen2ForCausalLM, the vLLM version, and engine settings such as max_model_len: 32768 and max_num_seqs: 256.
What it did not contain: the model’s name or path, any prompt or answer, the host name, or the user name.
Exactly 600 seconds after one server’s first report, a second POST arrived from the same uuid: 81 bytes, with two fields only, uuid and log_time. That is the heartbeat the source describes, and we saw it once.
The docs’ sample of what is collected is labelled “as of v0.4.0” and shows about 26 fields. Version 0.34.0 sent 45.
Then the opt-out. We checked seven settings with vLLM’s own function:
| Setting | Usage statistics |
|---|---|
| nothing set | on |
DO_NOT_TRACK=1 | off |
DO_NOT_TRACK=true | still on |
VLLM_NO_USAGE_STATS=1 | off |
VLLM_NO_USAGE_STATS=true | still on |
VLLM_DO_NOT_TRACK=1 | off |
the file ~/.config/vllm/do_not_track exists | off |
The value must be exactly 1. A deploy script that sets DO_NOT_TRACK=true leaves reporting on.
The payload is modest, and we have no complaint about what is in it. Our complaint is the opt-out: a privacy switch should not depend on the spelling of yes.
Structured output and tool calls
Two features that applications need, and one result worth the test.
Structured output. We sent 20 requests asking for a city, its country, and its population as JSON with three named keys, at temperature 0.7.
- Without
response_format: 0 of 20 answers parsed. Every answer wrapped the JSON in a Markdown code fence. - With
response_formatset to ajson_schema: 20 of 20 parsed, each with exactly the three keys and the right types.
So ask for the schema. A polite prompt was not enough for this model.
Tool calls need two flags at the start. On a default server, a request with tool_choice: "auto" gets HTTP 400:
"auto" tool choice requires --enable-auto-tool-choice and --tool-call-parser to be setStarted like this, both automatic and named tool calls worked (one request each way):
./venv/bin/vllm serve Qwen/Qwen2.5-7B-Instruct --served-model-name qwen \
--enable-auto-tool-choice --tool-call-parser hermesThe parser depends on the model. hermes is the one the docs name for Qwen2.5.
One more limit you will meet. A prompt that is too long gets HTTP 400, with a message that names the limit:
This model's maximum context length is 32768 tokens. However, your prompt contains at least 32769 input tokens, which exceeds this limit even without any output tokens.vLLM behind the LiteLLM proxy
vLLM serves a model. It does not manage users, budgets, or more than a shared key. A gateway does that, so we put the proxy from our LiteLLM proxy tutorial in front of it, LiteLLM 1.111.1 on the same lab.
One entry in the proxy’s config was enough:
model_list:
- model_name: chat
litellm_params:
model: hosted_vllm/qwen
api_base: http://127.0.0.1:8002/v1
timeout: 30The hosted_vllm/ prefix is LiteLLM’s name for a vLLM server, followed by the served model name.
3 of 3 chat requests through the proxy were answered by vLLM. The proxy’s own header put its overhead at 286.7 ms on the first request, and 9.9 and 9.8 ms on the next two.
The contrast between the two tools was instructive. The proxy refused to start without a master key, with this message: “LiteLLM proxy refused to start: no master key is set, so every request would be accepted without authentication”. vLLM, with nothing set, started open.
A gateway does not close vLLM’s open routes by itself. Bind vLLM to localhost, or firewall its port, so that the gateway is the only way in.
This is also where a team would call us. Running a model server in production means pinned releases, a locked-down port, restarts that take a minute, and capacity planned from measured numbers, not from a vendor’s chart. That is the MLOps work we do at HyScaler.
vLLM vs Ollama vs llama.cpp: when to use which
We tested vLLM and Ollama. The llama.cpp column is from its docs and from published comparisons, not from our run.
| vLLM | Ollama | llama.cpp server | |
|---|---|---|---|
| Best for | Many users on one GPU | One user, or a small team with slots set | not tested here |
| Concurrent requests | Continuous batching, no setting needed | One at a time by default; slots through OLLAMA_NUM_PARALLEL | Server slots, with continuous batching on by default (from the docs) |
| One client, our run | 46.4 tokens/s | 52.8 tokens/s | not tested |
| 64 clients, our run | 1,930 tokens/s | 783 at best, with 32 slots | not tested |
| Model format | Hugging Face safetensors, plus AWQ, GPTQ, and other quantized forms | GGUF | GGUF |
| Start, our run | 61 s (second start) | 7.2 to 7.3 s | not tested |
| Memory on a 24 GB card | Takes the card (22,040 MiB) | 15,954 MiB at default; grows with slots | not tested |
On vLLM vs llama.cpp, the published tests we read point the same way as ours. Red Hat’s comparison of September 2025, on an H200, found the two similar at one request, and vLLM far ahead at peak load. We did not run llama.cpp, so we give no number of our own.
Our advice in three lines:
- One person, one machine: Ollama. It was faster for one client, and it started in seconds.
- Up to about 8 people at once: either. A tuned Ollama matched vLLM at 8 clients.
- More than that, or long contexts under load: vLLM.
Limits and gotchas
What surprised us, in the order you will meet it:
- The first start takes three minutes. Do not conclude it has hung. Watch the log for the “Building JIT module” line.
- The server takes the whole card. Nothing else will fit on that GPU unless you set
--gpu-memory-utilization. - It listens on every interface with no key. Use
--host 127.0.0.1. --api-keyleaves/invocationsopen. Put a proxy in front that passes only/v1/.- Usage reporting needs
DO_NOT_TRACK=1, nottrue. - Tool calls fail with HTTP 400 until you add two flags.
- Sampling defaults come from the model’s repository, not from vLLM.
- Advice from older guides is out of date. The memory default and the CUDA version both changed in the last two releases.
A note on security history, from the repository’s advisories page: it lists 102 published advisories for 2026 up to 1 December, 2 of them critical. Most concern features we did not use, but it is one more reason to keep the port private and the version current.
What we did not test
- Docker, the
uvinstall route, and more than one GPU. - GGUF files. In 0.34.0, GGUF needs a separate plugin, and the docs call the support “highly experimental”.
- LoRA adapters, vision models, and
vllm bench serve. - Any card smaller than 24 GB. An open issue reports trouble with the new memory default on an 8 GB card.
- Long prompts and long answers under load. Every load request here had a short prompt and 200 output tokens.
- Answer quality. Both servers ran the same weights; we did not compare their answers.
Frequently asked questions
What is vLLM used for?
vLLM is used to serve a large language model from your own GPU to many users at once, through an OpenAI-compatible API. It batches all requests in flight together, so adding users costs each one little speed. In our test, one RTX 3090 gave 64 clients about 1,930 tokens a second in total.
Is vLLM faster than Ollama?
It depends on the number of users. In our test on one RTX 3090 with the same weights, Ollama was faster for one client, 52.8 against 46.4 tokens a second. The two were level at 8 clients once Ollama had 8 parallel slots. At 64 clients, vLLM gave about 2.5 times Ollama’s best.
How do I install vLLM?
Create a Python virtual environment on Linux and run pip install vllm==0.34.0. In our run, that took 3 minutes 57 seconds and 9.4 GB of disk, and it brought its own CUDA 13 build of PyTorch. The docs also describe an install with uv and a Docker image; we did not run those.
How do I use vLLM after installing it?
Run vllm serve followed by a model name from Hugging Face, for example vllm serve Qwen/Qwen2.5-7B-Instruct. When /health returns 200, send requests to http://localhost:8000/v1/chat/completions in the OpenAI format. Our first start took 180.8 seconds, and the second took 61.0.
Why does vLLM use all my GPU memory?
vLLM takes the free memory of the card on purpose and uses it as cache for concurrent requests. In version 0.34.0, that is the default: our idle server held 22,040 MiB of a 24,576 MiB card, of which the weights were 14.3 GiB. Set --gpu-memory-utilization only if another process shares the GPU.
How do I run vLLM with Docker?
The project publishes the image vllm/vllm-openai, with the tag v0.34.0 for the version we tested, and documents a docker run line with --runtime nvidia --gpus all. We did not run it, because our lab account has no Docker, so the numbers in this guide are from the pip install only.
Is the vLLM API key enough to secure the server?
No. In our test, a server started with --api-key still answered a chat request on POST /invocations without any key, and left /metrics and /tokenize open. The flag’s own help text says not to rely on it alone. Bind the server to 127.0.0.1 and put a reverse proxy in front.
Does vLLM collect telemetry?
Yes, by default. In our test, version 0.34.0 sent a report of 45 fields 37 seconds after the start, with hardware and engine settings and no prompts or model name. Set DO_NOT_TRACK=1 or VLLM_NO_USAGE_STATS=1 to turn it off. The value must be exactly 1; true left it on.
Does vLLM support GGUF models?
Only through a separate plugin in version 0.34.0, and the docs call that support “highly experimental and under-optimized”. vLLM’s main format is Hugging Face safetensors, with AWQ, GPTQ, and other quantized forms. We did not test GGUF. If your models are GGUF files, Ollama or llama.cpp is the simpler choice.
Can I use vLLM with LiteLLM?
Yes. Add a model entry to the LiteLLM proxy with model: hosted_vllm/<served model name> and the vLLM address as api_base. In our test, 3 of 3 requests through LiteLLM 1.111.1 were answered by vLLM, and the proxy reported about 10 ms of overhead after the first request.
Watch the video
The video shows the same test in under three minutes: the install, the start, 64 clients on one card, and the route that answers without a key.
Watch it on YouTube: vLLM Tutorial: Setup, and vLLM vs Ollama on One GPU.
Try it
Start with the model you already use and one question: how many people have to share this card? Install the pinned version, start it on localhost, and run a small load script against it at 1, 8, and 32 clients. Let the card cool between levels. Then do the same on the server you run today, with the same weights.
If the answer is one person, keep what you have. If it is a team, the numbers will tell you where the line is on your own hardware.
The code and the issue tracker are at github.com/vllm-project/vllm.
References
- vllm-project/vllm on GitHub, README and source at tag v0.34.0 (read 1 December 2026)
- vLLM 0.34.0 release notes, 16 November 2026, and vllm 0.34.0 on PyPI
- vLLM docs: GPU installation, the vllm serve reference, Docker, and the security guide
- vLLM source at v0.34.0: usage statistics docs, usage_lib.py, the server’s arguments, tool calling, and GGUF
- vLLM security advisories, read 1 December 2026
- PyTorch Foundation welcomes vLLM, 7 May 2025
- Qwen/Qwen2.5-7B-Instruct on Hugging Face and the qwen2.5 tags in the Ollama library
- Ollama: the FAQ on concurrency and releases
- The llama.cpp server README
- Red Hat Developer: Ollama vs. vLLM, a performance benchmark, 8 August 2025, and vLLM or llama.cpp, 30 September 2025
- LiteLLM docs, the vLLM provider page