Ollama vs vLLM: Throughput, Latency & Production Limits
Red Hat’s A100 GuideLLM benchmark measured vLLM peaking at 793 output TPS with 80 ms P99 latency versus Ollama’s 41 TPS and 673 ms ceiling—pinpointing exactly when local prototyping outgrows Ollama and requires PagedAttention.

THE STORY IN THREE POINTS
- In Red Hat’s controlled single-A100 (40GB) GuideLLM sweep across 1–256 concurrent users on Llama-3.1-8B-Instruct FP16, vLLM reached 793 tokens/s output throughput and 80 ms P99 latency at peak load compared with Ollama’s flat 41 tokens/s ceiling and 673 ms P99 latency.
- The performance gulf is architectural: Ollama (MIT, llama.cpp backend) serializes requests by default (OLLAMA_NUM_PARALLEL=1, 4,096-token context default, per-slot KV duplication), whereas vLLM (Apache-2.0) packs batches dynamically using PagedAttention and continuous batching.
- Teams migrating via OpenAI-compatible HTTP endpoints (:11434/v1 to :8000/v1) should stay on Ollama for Apple Silicon and 1–2 local developers, move to vLLM above ~4 concurrent GPU streams, and evaluate SGLang or DeepSeek’s DeepInfer for large MoE deployments.
vLLM vs Ollama benchmark: 793 TPS vs 41 TPS and P99 latency under concurrency
Most developer debates comparing Ollama vs vLLM confuse ease of single-user local execution with multi-user GPU utilization. To isolate serving efficiency empirically, Red Hat Developer’s benchmarking study tested Llama-3.1-8B-Instruct in unquantized FP16 on a single NVIDIA A100-PCIE-40GB GPU using GuideLLM 0.2.1 across simulated traffic ranging from 1 to 256 concurrent virtual users over 300-second sustained runs.
Under default out-of-the-box configurations, throughput diverged immediately. vLLM scaled linearly with incoming concurrency to peak at 793 output tokens per second while holding worst-case P99 latency at 80 milliseconds. Ollama flatlined around 41 tokens per second while its P99 latency climbed to 673 milliseconds as waiting requests stacked behind active slots. Even after manually tuning Ollama’s parallelism flags, vLLM sustained substantially higher throughput and lower Time to First Token (TTFT) across every tested concurrency tier from 1 to 256 active clients.
Why Ollama plateaus: OLLAMA_NUM_PARALLEL defaults vs PagedAttention continuous batching
As Morph’s October 2026 comparison (auditing vLLM v0.30.0 under Apache-2.0 against Ollama v0.35.1 under MIT) details, the speed divergence comes directly from KV-cache memory management. Built atop a llama.cpp-derived runtime optimized for GGUF files and single-developer laptops, Ollama sets OLLAMA_NUM_PARALLEL to 1 by default—meaning one prompt computes per loaded model while excess traffic queues up to 512 requests (OLLAMA_MAX_QUEUE) before returning HTTP 503 errors. Worse, raising OLLAMA_NUM_PARALLEL allocates contiguous KV-cache memory redundantly per slot: 4 parallel slots at an 8K window reserve 32K worth of memory regardless of real prompt lengths.
By contrast, vLLM manages KV cache in non-contiguous fixed-size virtual pages via PagedAttention alongside iteration-level continuous batching. Completed responses vacate GPU memory instantly without stalling adjacent streams, and new requests merge mid-step onto spare Tensor Core compute—explaining how a single GPU serves tens of concurrent API requests without starving latency. Ollama retains two undeniable advantages for solo builders: zero-friction GGUF pulling on first-class Apple Silicon Metal laptops (whereas vLLM targets Linux CUDA/ROCm servers and weights via safetensors, FP8, AWQ, and GPTQ) and fast multi-model switching inside small desktop footprints (though coding-agent users must bump Ollama’s 4,096-token default OLLAMA_CONTEXT_LENGTH upward to avoid silent truncation).
When to switch from Ollama to vLLM—or SGLang and DeepSeek DeepInfer
The operational inflection point for when to switch from Ollama to vLLM hits as soon as a tool leaves a personal workstation: once 4+ teammates share an internal endpoint, an application runs asynchronous multi-agent subagents concurrently, or tail TTFT latency dictates UX SLAs, Ollama’s serialized queue turns expensive server GPUs idle-bound during scheduling waits. Fortunately, both runtimes implement OpenAI-compatible Chat Completions (/v1) routes natively—moving a prototype client only requires swapping base URLs from http://localhost:11434/v1 to http://localhost:8000/v1 and changing GGUF tags to Hugging Face safetensors IDs.
Once teams cross into multi-GPU production or frontier Mixture-of-Experts deployments spanning 200B–2T+ parameters (where Ollama only splits layers opportunistically when VRAM overflows), vLLM unlocks tensor, pipeline, data, and expert parallelism alongside native host-RAM speculative-table offloading. Engineers pushing high-prefix-reuse multi-turn agent loops or colossal MoE clusters should pair this decision with our vLLM vs SGLang RadixAttention comparison and inspect DeepSeek’s Apache-2.0 DeepInfer runtime core for production kernel and KV scheduling patterns.
Sources: Ollama vs. vLLM: A Deep Dive Into Performance Benchmarking|Red Hat Developer ↗ vLLM vs Ollama (2026): Performance, Concurrency, llama.cpp, and Which to Pick|Morph ↗ vLLM Official Documentation & Engine Architecture|GitHub / vLLM ↗
THE BROADER CONTEXT · FRONTIER LABS DOSSIER
Explore full product specifications, pricing analysis, and continuous coverage in the Frontier Labs Desk Hub and Others Dossier. Independent benchmarks available on the AI Intelligence Index and Coding Agents Leaderboard.


