ComparisonModels & inference
Ollama vs vLLM: which one to run your open models with
Ollama vs vLLM compared on model formats, hardware, OpenAI-compatible APIs, batching, install and licenses, so you can pick the right one.
In the Ollama vs vLLM choice, the documentation points one way for each job. Ollama is the simpler pick for one person running models on a Mac, Windows or Linux workstation. vLLM is built for serving many concurrent requests from Linux GPU servers, with continuous batching and multi-GPU parallelism.
Everything below comes from each project's own README and documentation, read on 2026-11-05. Neither tool was benchmarked for this article, so it contains no speed or throughput figures.
What are Ollama and vLLM?
Ollama is an open-source project for running open models on your own machine, with an optional cloud service. The Ollama README (opens in a new tab) shows a one-line installer per platform, a ollama run command and a local REST API on port 11434. Ollama names llama.cpp as a supported backend. The project lives under the ollama organization on GitHub.
vLLM is a library for LLM inference and serving. It started in the Sky Computing Lab at UC Berkeley. The vLLM README (opens in a new tab) says a community of academic institutions and companies now builds and maintains it, with more than 2,000 contributors. vLLM's README describes memory management through PagedAttention, continuous batching and an OpenAI-compatible API server.
The two projects were at these releases on 2026-11-05, according to the GitHub API:
- Ollama: v0.40.14, published 2026-11-03.
- vLLM: the release GitHub marks as latest is named v0.33.0 (tag v0.33.0rc3), published 2026-11-02.
Ollama vs vLLM at a glance
This comparison table cites a source for every row. Check the linked pages before you rely on a row, since both projects release often.
| Ollama | vLLM | Source | |
|---|---|---|---|
| Main job | Run open models locally, plus an optional cloud API | High-throughput inference and serving | Both READMEs |
| Operating systems | macOS, Windows, Linux, Docker image | Linux; no native Windows support (WSL is suggested) | Ollama README; vLLM GPU install docs |
| GPUs | NVIDIA (compute capability 5.0+), AMD via ROCm v7, Apple Metal, Vulkan on Windows and Linux | NVIDIA (compute capability 7.5+), AMD ROCm, Intel XPU, Apple Silicon through vLLM-Metal | Ollama GPU docs; vLLM install docs |
| Model formats | Ollama library, or GGUF and Safetensors imported with a Modelfile | Hugging Face models (200+ architectures); quantized formats include FP8, INT8, INT4, GPTQ/AWQ and GGUF | Ollama import docs; vLLM README |
| OpenAI-compatible API | Yes, at http://localhost:11434/v1/ | Yes, client examples use http://localhost:8000/v1 | Ollama and vLLM API docs |
| Concurrency default | 1 parallel request per model, queue of 512 | Continuous batching of incoming requests | Ollama FAQ; vLLM README |
| Multi-GPU | Splits a model across GPUs when it does not fit on one | Tensor, pipeline, data, expert and context parallelism | Ollama FAQ; vLLM README |
| License | MIT | Apache-2.0 | GitHub API |
Model formats and where models come from
Ollama pulls models by name from its own library at ollama.com/library. You can also import your own weights. Ollama's import page covers two formats: GGUF and Safetensors. A Modelfile with a FROM line points at the weights, then ollama create builds the model.
ollama create my-model
ollama run my-model
Ollama does not quantize GGUF files on import. The import docs say to quantize them first with a GGUF tool such as llama.cpp's llama-quantize. A custom model can be pushed to ollama.com under your username with ollama push.
vLLM works with Hugging Face models directly. The README says vLLM supports more than 200 Hugging Face model architectures, with Llama, Qwen, Mixtral, DeepSeek-V3 and LLaVA among the examples. Server examples pass a Hugging Face repository ID straight to vllm serve. vLLM's quantization list covers FP8, MXFP8/MXFP4, NVFP4, INT8, INT4, GPTQ/AWQ and GGUF, among others.
The practical difference: Ollama models carry Ollama names and Modelfile settings, while vLLM reads Hugging Face repositories. Moving a setup from one to the other means mapping model names and settings by hand.
Hardware and platform support
Ollama covers the three desktop systems. The README lists install scripts for macOS, Windows and Linux, and an official ollama/ollama Docker image. The Ollama GPU page lists these accelerators:
- NVIDIA cards with compute capability 5.0 or higher and driver 550 or newer
- AMD cards through the ROCm v7 driver on Linux, and a narrower set of cards on Windows
- Apple GPUs through Metal
- Vulkan on Windows and Linux, which is also how Intel GPUs are supported
One limit sits in the Ollama FAQ: GPU acceleration does not work inside Docker Desktop on macOS.
vLLM is a Linux tool first. The vLLM GPU installation page (opens in a new tab) lists Linux as the operating system and says vLLM does not support Windows natively. It points Windows users to WSL. NVIDIA GPUs need compute capability 7.5 or higher, and Python 3.11 to 3.14 is required.
Beyond NVIDIA, vLLM's installation docs list AMD ROCm, Intel XPU and Apple Silicon (via the separate vLLM-Metal package). CPU support covers x86, ARM AArch64, Apple silicon and IBM Z. The README adds hardware plugins for Google TPUs, Intel Gaudi, Huawei Ascend and others.
OpenAI-compatible APIs in Ollama and vLLM
Both servers accept requests from the OpenAI client libraries, so application code can switch between them by changing the base URL and model name.
The Ollama OpenAI compatibility page (opens in a new tab) uses http://localhost:11434/v1/ as the base URL. It lists chat completions, completions, models, embeddings, audio and responses endpoints. A local Ollama server ignores the API key, though the client library still needs a placeholder value. The page also lists gaps. Chat completions do not support tool_choice, logit_bias, n or logprobs, and images must be base64 rather than URLs.
vLLM's OpenAI-compatible server docs (opens in a new tab) start the server with vllm serve and point the client at http://localhost:8000/v1.
vllm serve NousResearch/Meta-Llama-3-8B-Instruct \
--dtype auto \
--api-key token-abc123
The --api-key flag, or the VLLM_API_KEY variable, checks keys only on some path prefixes. The vLLM docs warn that it does not protect every endpoint. vLLM's serving docs also list endpoints outside the OpenAI set, including Anthropic-style /v1/messages, rerank, scoring, tokenize and /metrics.
A model in vLLM needs a chat template in its tokenizer config, or chat requests fail. The --chat-template flag supplies one when the model lacks it.
Serving many users: batching and concurrency
Ollama's defaults favor one user. The Ollama FAQ (opens in a new tab) documents three settings:
OLLAMA_NUM_PARALLEL: parallel requests each model handles, default 1OLLAMA_MAX_QUEUE: queued requests before Ollama returns a 503, default 512OLLAMA_MAX_LOADED_MODELS: models loaded at once, default 3 per GPU (or 3 on CPU)
Raising parallelism costs memory. The FAQ says the context grows with the number of parallel requests, so 2K context and 4 parallel requests becomes 8K. The default context window is 4096 tokens. Models unload after 5 minutes idle unless OLLAMA_KEEP_ALIVE says otherwise.
vLLM's design is batch-first. Its README lists continuous batching of incoming requests, chunked prefill and prefix caching. PagedAttention manages the attention key and value memory. For models too large for one GPU, vLLM documents tensor, pipeline, data, expert and context parallelism.
Neither project's documentation gives a throughput number for comparison, so this article does not quote one. Throughput depends on the GPU, the model and the settings. Measure on your own hardware with your own prompts.
Install and operations
Ollama installs with a script or an installer. These are the README commands:
# macOS and Linux
curl -fsSL https://ollama.com/install.sh | sh
# Windows
irm https://ollama.com/install.ps1 | iex
Both commands run a remote script, so read it first if your policy requires that. After install, ollama run gemma4 downloads and starts a model. By default the server binds to 127.0.0.1:11434. Setting OLLAMA_HOST=0.0.0.0:11434 exposes it on the network. Models are stored under ~/.ollama/models on macOS, and OLLAMA_MODELS moves them.
vLLM is a Python package. The GPU installation page recommends uv for NVIDIA CUDA:
uv venv --python 3.12 --seed --managed-python
source .venv/bin/activate
uv pip install vllm --torch-backend=auto
vllm download-kernels
AMD ROCm and Intel XPU use separate wheel indexes, listed on the same page. Running vLLM in production also means managing Python environments, CUDA versions and GPU drivers yourself. Blackwell GPUs such as the B200 need CUDA 12.8 or later.
For step-by-step setups, HuiaHub has two guides: run a local LLM with Ollama and call it from your code and serve an open model with vLLM behind an OpenAI-compatible API.
Licenses
Ollama is MIT-licensed and vLLM is Apache-2.0, according to the GitHub API on 2026-11-05. Those licenses cover the runtimes only. Each model you run has its own license on its model card, and that is the one to check before commercial use.
Pick Ollama if, pick vLLM if
Use this decision table as a starting point. Each row maps to a documented fact above.
| Your situation | Pick | Why, from the docs |
|---|---|---|
| A Mac or Windows laptop, no Linux server | Ollama | Native installers; vLLM has no native Windows support |
| One developer, one model at a time | Ollama | Defaults to 1 parallel request and a 4096-token context |
| An older NVIDIA card (compute capability 5.0 to 7.4) | Ollama | vLLM needs 7.5 or higher |
| GGUF files you already have | Ollama | Imports GGUF through a Modelfile |
| Many users hitting one endpoint | vLLM | Continuous batching, PagedAttention, prefix caching |
| A model larger than one GPU | vLLM | Tensor and pipeline parallelism |
| Hugging Face repositories as the source of truth | vLLM | Serves Hugging Face model IDs directly |
| Rerank, scoring or Anthropic-style endpoints | vLLM | Listed in the serving docs |
Because both expose OpenAI-compatible endpoints, one workable split is to test prompts against Ollama on a workstation and deploy vLLM on Linux GPUs, with the same client code. If you are also weighing desktop runners, see llama.cpp vs Ollama vs LM Studio. The Ollama tool page tracks its listing on HuiaHub.
Frequently asked questions
Does vLLM run on a Mac?
vLLM's installation docs list Apple Silicon through a separate vLLM-Metal package, and a CPU backend for Apple silicon. The main GPU install page targets Linux. For Mac setup steps, follow the vLLM-Metal installation docs the vLLM page links to.
Can I put an Ollama server on my network for a small team?
Set `OLLAMA_HOST` to `0.0.0.0:11434` to bind beyond localhost, and raise `OLLAMA_NUM_PARALLEL` if several people send requests at once. The Ollama docs say a local server ignores API keys, so key checks will not protect it. Put it behind a reverse proxy or firewall you control.
Is the vLLM `--api-key` flag enough to secure a public server?
No. vLLM's docs say the key only covers certain path prefixes and warn that it does not protect every endpoint. Keep the server on a private network or behind a gateway that handles authentication.
Sources
- 1.GitHub - ollama/ollama: Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models. · GitHubRepositoryPrimarygithub.com
- 2.FAQ - OllamaOfficial docsPrimarydocs.ollama.com
- 3.OpenAI compatibility - OllamaOfficial docsPrimarydocs.ollama.com
- 4.GitHub - vllm-project/vllm: A high-throughput and memory-efficient inference and serving engine for LLMs · GitHubRepositoryPrimarygithub.com
- 5.vLLMOfficial docsPrimarydocs.vllm.ai
- 6.Redirecting...Official docsPrimarydocs.vllm.ai
- 7.Installation - vLLMOfficial docsPrimarydocs.vllm.ai
- 8.docs.vllm.ai/en/latest/getting_started/installation/gpuOfficial docsPrimary
- 9.docs.vllm.ai/en/latest/serving/online_serving/openai_compatible_serverOfficial docsPrimary
- 10.docs.ollama.com/importOfficial docsPrimary
- 11.docs.ollama.com/gpuOfficial docsPrimary
Spotted an error? See our corrections policy.
Enjoyed this? Get the weekly brief.
New guides, Project & Tool of the Week and the AI developments that matter. One email, no spam.
Read next
TutorialModels & inferenceHow to run Qwen locally: Qwen3.8-27B on Windows and Mac, with download sizes
How to run Qwen locally: check which Qwen3.8 download fits your Windows PC or Mac, then start it with Ollama, LM Studio or llama.cpp.
9 min read
TutorialModels & inferenceHow to run Gemma 4 locally on Windows and Mac: sizes, downloads and commands
Pick a Gemma 4 size that fits your PC or Mac, check the published download sizes, and see how to run Gemma 4 locally with Ollama, LM Studio or llama.cpp.
9 min read
NewsModels & inferenceIs Gemini 4 Carbon really the top model? What independent tests show
Google calls Gemini 4 Carbon its strongest model. Independent benchmarks and first reviews show where it leads, where it trails and what it costs.
4 min read
