// 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.

Ollama fits one user switching models, vLLM fits many users on one model, llama.cpp fits one GGUF model on a small GPU.
Ollama vs vLLM vs llama.cpp: which fits which job. Ollama fits one user who runs several models: it imports GGUF and Safetensors weights through a Modelfile, offers a subset of the OpenAI API under /v1/, processes 1 request per loaded model at a time by default on most backends with up to 512 queued, and keeps a model loaded for 5 minutes, up to 3 models per GPU. vLLM fits many users calling one model: it runs Hugging Face models and quantized weights including FP8, INT8, INT4, GPTQ, AWQ and GGUF, ships an OpenAI-compatible server, batches requests continuously with max_num_seqs as the cap, and manages the KV cache with PagedAttention. llama.cpp server fits one GGUF model on a small GPU, with OpenAI-compatible routes and parallel slots that share the context and are batched continuously. We ran no speed test. Source: Ollama, vLLM and llama.cpp documentation, read 2026-11-28.
Ollama vs vLLM - 4:16
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 vs vLLM: how do they compare at a glance?
OllamavLLMllama.cpp server
AudienceOne person running and switching between several modelsA team or an application calling one model at the same timeOne model from a GGUF file, from a laptop to one GPU
Model formatsGGUF files and Safetensors weights, imported through a ModelfileHugging Face models, plus quantized weights including FP8, INT8, INT4, GPTQ, AWQ and GGUFGGUF files
APIA subset of the OpenAI API under /v1/An OpenAI-compatible API server, plus the Anthropic Messages API and gRPCOpenAI-compatible chat completions, responses and embeddings routes
Concurrency1 request at a time per loaded model by default on most backends; up to 512 queued by defaultContinuous batching; max_num_seqs caps the requests in a batchParallel decoding with multi-user support; continuous batching on by default
Memory behaviourKeeps a model loaded for 5 minutes after use by default; up to 3 models per GPU by defaultPagedAttention manages the KV cacheServer slots (--parallel) share the context
Our tested LaunchableOllama + Open WebUI starter, NVIDIA L4 (24 GB), tested 2026-11-15Nemotron Chat, NVIDIA L40S (48 GB), tested 2026-11-15Hermes 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:

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:

How many people can use Ollama at the same time?
SettingDefaultWhat it does
OLLAMA_NUM_PARALLEL1 on most backendsRequests each model processes at the same time
OLLAMA_MAX_QUEUE512Requests queued when busy; beyond that Ollama answers with a 503 overloaded error
OLLAMA_MAX_LOADED_MODELS3 per GPUModels 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.cpp b12464 (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:

What did our tests record for each?
Ollama + Open WebUI starterNemotron Chat (vLLM)Hermes Agent (llama.cpp)
Test date2026-11-152026-11-152026-11-19
GPUNVIDIA L4NVIDIA L40SNVIDIA L4
Modelgpt-oss:20bnvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-NVFP4Nemotron 3.5 Bolt E4B
GPU memory in use12488 of 23034 MiB40781 of 46068 MiB4492 of 23034 MiB
Ready after createabout 13.5 minutes17.5 minutes17 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-server gives 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?

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.

All comparisons