// comparison
Ollama vs vLLM
Pick Ollama for a single user who wants to run and switch between several models; pick vLLM to serve many concurrent users from one model, because vLLM batches incoming requests continuously and manages GPU memory with PagedAttention.
Updated
Published
- Ollama
- vLLM
- llama.cpp
Disclosure: 9owls publishes Launchables that run Ollama, vLLM and llama.cpp; no project paid for or reviewed this page. Criteria: concurrency, model formats, API and memory use, each taken from the project's own documentation, plus our own fresh-deploy test records dated 2026-11-15 and 2026-11-19. We ran no speed test.
Transcript
One GPU, one open model to serve: should it run on Ollama or on vLLM? Both serve language models and offer an OpenAI-compatible API. The difference is the job each is set up for. We ran no speed test, so this film compares fit, not speed.
vLLM's documentation calls it a library for language model inference and serving. It names PagedAttention, which manages attention key and value memory, and continuous batching of incoming requests. Ollama loads models on demand and keeps them in memory between requests, so one person can switch between models.
By default, Ollama processes one request at a time per loaded model on most backends. The rest wait in a queue of up to 512. Past that, it answers with a 503 overloaded error. You can raise the parallel setting, but more parallel requests need more memory: a 2K context with four parallel requests becomes an 8K context.
Ollama can also keep up to three models loaded per GPU, when they fit in memory. A model stays loaded for five minutes after use; the keep alive setting changes that. If a new model does not fit, its requests wait until idle models unload.
In vLLM, continuous batching groups incoming requests on the GPU. One setting, max num seqs, caps how many requests share a batch; lowering it needs less KV cache memory. When the cache runs short, vLLM can preempt a request and recompute it later.
Model formats differ too. Ollama imports GGUF files and Safetensors weights through a Modelfile. It does not quantize GGUF models during import, so you quantize first with a GGUF tool. vLLM runs Hugging Face models and supports quantized weights, including FP8, INT8, INT4, GPTQ, AWQ and GGUF.
An OpenAI client can reach either one by changing its base URL. Ollama supports a subset of the OpenAI API under the v1 path, including chat completions and embeddings. vLLM ships an OpenAI-compatible server, plus the Anthropic Messages API and gRPC. You start it with vllm serve and a model name.
So which one fits? For one person who wants a private assistant and several models to try, Ollama's defaults fit the job. For an API that a team or an application calls at the same time, vLLM's continuous batching fits. Both can sit behind Open WebUI. Test both on your own GPU and model.
To try either one, 9owls publishes a Launchable for each on NVIDIA Brev. The Ollama plus Open WebUI starter runs on an NVIDIA L4 with 24 gigabytes of GPU memory. Open WebUI plus vLLM runs on an NVIDIA L40S with 48 gigabytes. Our deploy guide walks through the steps.
To recap: Ollama queues requests per model and keeps several models loaded, which suits one person. vLLM batches requests continuously, which suits many callers on one model.
www.9owls.com.
On this page
Ollama vs vLLM: how do they compare at a glance?
| Ollama | vLLM | llama.cpp server | |
|---|---|---|---|
| Audience | One person running and switching between several models | A team or an application calling one model at the same time | One model from a GGUF file, from a laptop to one GPU |
| Model formats | GGUF files and Safetensors weights, imported through a Modelfile | Hugging Face models, plus quantized weights including FP8, INT8, INT4, GPTQ, AWQ and GGUF | GGUF files |
| API | A subset of the OpenAI API under /v1/ | An OpenAI-compatible API server, plus the Anthropic Messages API and gRPC | OpenAI-compatible chat completions, responses and embeddings routes |
| Concurrency | 1 request at a time per loaded model by default on most backends; up to 512 queued by default | Continuous batching; max_num_seqs caps the requests in a batch | Parallel decoding with multi-user support; continuous batching on by default |
| Memory behaviour | Keeps a model loaded for 5 minutes after use by default; up to 3 models per GPU by default | PagedAttention manages the KV cache | Server slots (--parallel) share the context |
| Our tested Launchable | Ollama + Open WebUI starter, NVIDIA L4 (24 GB), tested 2026-11-15 | Nemotron Chat, NVIDIA L40S (48 GB), tested 2026-11-15 | Hermes Agent on Nemotron 3.5 Bolt, NVIDIA L4 (24 GB), tested 2026-11-19 |
Sources for each row are listed under each section below and in the sources list at the end.
What is each built for?
The vLLM documentation (external site) describes vLLM as "Easy, fast, and cheap LLM serving for everyone". It names PagedAttention memory management, continuous batching of incoming requests, and optimized attention kernels.
Ollama loads models on demand and keeps them in memory between requests. Several models can be loaded at the same time when they fit in memory: by default up to 3 per GPU, according to the Ollama FAQ (external site).
The llama.cpp server README (external site) describes llama-server as a server with OpenAI API compatible routes, parallel decoding with multi-user support and continuous batching.
Is vLLM faster than Ollama?
We have not measured it, so this page gives no speed number. What the documentation does say is how each handles several requests at once:
Ollama processes 1 request at a time per loaded model by default on most backends, and queues the rest (Ollama FAQ (external site)).
vLLM batches incoming requests continuously on the GPU (vLLM documentation (external site)).
llama.cpp server splits its context into parallel slots and batches them continuously (llama.cpp server README (external site)).
For a single user sending one request at a time, those defaults matter less. For many users at once, the batching model is the difference to test on your own GPU and model.
How many people can use Ollama at the same time?
By default, one request per loaded model is processed at a time and the rest wait, according to the Ollama FAQ (external site), read 2026-11-28:
| Setting | Default | What it does |
|---|---|---|
OLLAMA_NUM_PARALLEL | 1 on most backends | Requests each model processes at the same time |
OLLAMA_MAX_QUEUE | 512 | Requests queued when busy; beyond that Ollama answers with a 503 overloaded error |
OLLAMA_MAX_LOADED_MODELS | 3 per GPU | Models loaded at the same time when memory allows |
Raising OLLAMA_NUM_PARALLEL needs more memory: the FAQ's example is a 2K context with 4 parallel requests, which becomes an 8K context.
How does vLLM serve many users at once?
Continuous batching groups incoming requests on the GPU. The max_num_seqs setting caps how many concurrent requests share a batch. Lowering max_num_seqs or max_num_batched_tokens puts fewer requests in a batch and needs less KV cache memory (vLLM optimization and tuning (external site)). If vLLM fails at startup for lack of cache memory, see the cache-blocks error.
Which model formats does each run?
Ollama imports GGUF files and Safetensors weights through a Modelfile (Ollama import guide (external site)).
vLLM runs models from Hugging Face and supports quantized weights, including FP8, INT8, INT4, GPTQ, AWQ and GGUF (vLLM documentation (external site)).
llama.cpp runs GGUF files; our Hermes Launchable serves an NVIDIA Nemotron 3.5 Bolt GGUF model with
llama.cppb12464 (pinned as of 2026-11-28).
Ollama vs vLLM: do both offer an OpenAI-compatible API?
Yes. Ollama supports a subset of the OpenAI API under the /v1/ path, including chat completions, completions, models and embeddings (Ollama OpenAI compatibility (external site)). vLLM ships an OpenAI-compatible API server, plus the Anthropic Messages API and gRPC support; vllm serve followed by a model name starts it (vLLM online serving (external site)). Setup for the vLLM side is in serve an OpenAI-compatible API with vLLM.
What did our tests record for each?
These are our own fresh-deploy test records, one run each, not benchmarks:
| Ollama + Open WebUI starter | Nemotron Chat (vLLM) | Hermes Agent (llama.cpp) | |
|---|---|---|---|
| Test date | 2026-11-15 | 2026-11-15 | 2026-11-19 |
| GPU | NVIDIA L4 | NVIDIA L40S | NVIDIA L4 |
| Model | gpt-oss:20b | nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4 | Nemotron 3.5 Bolt E4B |
| GPU memory in use | 12488 of 23034 MiB | 40781 of 46068 MiB | 4492 of 23034 MiB |
| Ready after create | about 13.5 minutes | 17.5 minutes | 17 min 47 s |
GPU memory use reflects each server's own settings and model, so the rows do not compare the servers' efficiency.
Ollama vs vLLM: a single-user assistant or an API for a team?
Ollama: for one person who wants a private assistant and wants to try several models, Ollama's defaults fit the job.
vLLM: for an API that a team or an application calls at the same time, vLLM's continuous batching fits the job.
llama.cpp: for one GGUF model on a small GPU,
llama-servergives an OpenAI-compatible API with parallel slots.All three can sit behind Open WebUI; run Open WebUI with vLLM and run Ollama and Open WebUI walk through two pairings.
Where do I deploy each, stop it, or package my own?
Deploy steps are in how to deploy a Launchable on NVIDIA Brev, GPU choice in NVIDIA L4 vs L40S, and packaging your own repository in NightKeeper.
Sources: where do these facts come from?
- vLLM documentation (external site), read 2026-11-16
- vLLM optimization and tuning (external site), read 2026-11-28
- vLLM online serving (external site), read 2026-11-16
- Ollama FAQ (external site), read 2026-11-28
- Ollama import guide (external site), read 2026-11-16
- Ollama OpenAI compatibility (external site), read 2026-11-16
- llama.cpp server README (external site), read 2026-11-28
- 9owls fresh-deploy test records: Ollama + Open WebUI starter and Nemotron Chat (2026-11-15), Hermes Agent on Nemotron 3.5 Bolt (2026-11-19)
How was this page made?
9owls published this page and publishes Launchables for all three servers. Each server fact comes from that project's own documentation, read on the dates above. The tested values come from our own fresh-deploy records, one run each. No speed claim is made because we have not measured one. Found an error? Tell us on the company page.
What changed on 2026-11-28: added the disclosure and criteria, a llama.cpp column, answers on speed and on how many people can use Ollama at once, our recorded test values, and replaced the repeated deploy and packaging sections with links.