You decided to self-host. Now you need to pick a runtime. The choice matters: 5× difference in throughput at scale, vastly different deployment patterns, security characteristics that differ. This module benchmarks Ollama, llama.cpp, and vLLM on the same model + hardware so you can pick based on your use case.
Architectural differences in one paragraph each
Ollama is a wrapper around llama.cpp with developer-friendly UX (model registry, single-binary install, REST API). Optimised for ease, not throughput. Single request at a time per model by default (no batching). llama.cpp is the underlying C++ inference engine. Supports GGUF format, runs on CPU, CUDA, Metal, ROCm, Vulkan. Maximum portability, minimum overhead. Used as embedding library by many other projects. vLLM is Berkeley research-grade server. Implements PagedAttention (KV-cache memory management) and continuous batching (different requests at different stages share GPU efficiently). Supports tensor parallelism for multi-GPU. Built for concurrent serving at scale.
Benchmark setup
Hardware: RTX 4090 (24GB VRAM), 64GB system RAM, AMD Ryzen 9 7950X, Ubuntu 22.04. Model: Llama-3.1-8B-Instruct, Q4_K_M quantisation (4.6GB GGUF). Test workload: 100 prompts of varying length (50-2000 input tokens), max_tokens=512. Concurrency tested at 1, 4, 16, 64 concurrent users. Metrics: tokens/second per user, total throughput, time-to-first-token (TTFT), VRAM usage. Note: vLLM uses FP8 or FP16 (not GGUF Q4); compared at equivalent memory budget by using TheBloke’s AWQ-quant version.
Single-user benchmark results
At concurrency=1, all three are within 20% of each other on per-user tokens/sec. Ollama: 84 tok/s. llama.cpp: 88 tok/s. vLLM: 72 tok/s. Ollama and llama.cpp are essentially identical (Ollama wraps llama.cpp). vLLM is slightly slower at concurrency=1 because PagedAttention overhead is unamortised. TTFT: Ollama 180ms, llama.cpp 165ms, vLLM 320ms. Conclusion: for single-user developer workflows, llama.cpp/Ollama win on latency.
Concurrent benchmark results
At concurrency=16, the picture inverts. Ollama: 12 tok/s per user (queue serialises requests). llama.cpp: 14 tok/s per user (similar). vLLM: 35 tok/s per user (continuous batching). At concurrency=64: Ollama and llama.cpp throughput plateaus at ~100 tok/s aggregate; vLLM hits ~700 tok/s aggregate. vLLM wins decisively at scale. This matches the architectural difference — PagedAttention + continuous batching are designed for concurrent serving. If you have one user, use Ollama; if you have 50, use vLLM.
Memory and quantisation trade-offs
Q4_K_M (4-bit) is the sweet spot for most quantisations: minimal quality loss (perplexity within 2% of FP16), half the memory of Q8. Q5_K_M for higher quality at +25% memory. Q3 and below show measurable degradation; avoid for production. AWQ and GPTQ are alternative quantisations that vLLM prefers; quality similar to Q4. FP16 is full precision but doubles memory; usually only worth it for fine-tuning. Mac users: GGUF on llama.cpp via Metal is the fastest path; vLLM Mac support is experimental. NVIDIA enterprise: TensorRT-LLM is faster than vLLM but proprietary and harder to set up; only worth the migration cost above ~1000 concurrent users.
Deployment recipes
Ollama production setup: docker run -d -v ollama:/root/.ollama -p 11434:11434 --gpus all ollama/ollama; docker exec ollama ollama pull llama3.1:8b. Add Caddy reverse proxy for TLS + auth. vLLM production setup: pip install vllm; vllm serve meta-llama/Llama-3.1-8B-Instruct --tensor-parallel-size 1 --gpu-memory-utilization 0.9 --max-model-len 32768. Behind a load balancer if you need multiple GPUs. llama.cpp embedded: build the C library, link from your application, use directly. Best for edge devices (Raspberry Pi, Jetson Nano).
Multi-GPU and tensor parallelism
For 70B+ models, single GPU is insufficient. Options: (1) tensor parallelism — split model layers across GPUs, all work on each request. vLLM and TensorRT-LLM support natively. Requires NVLink for full bandwidth. (2) pipeline parallelism — different layers on different GPUs, requests pass through pipeline. Lower memory bandwidth requirement; higher latency. Used in distributed setups. (3) data parallelism — replicate model across GPUs, each handles different requests. Simplest; horizontal scaling. Use Kubernetes with vLLM pods. For Indian deployments: dual RTX 3090 used (~$1,400) handles 70B AWQ at concurrency=8. Three-node Kubernetes with one A100 each handles 405B-FP8 at meaningful throughput.
Realistic 2026 throughput numbers — measured, not theoretical
On a single A100 80GB, running Llama-3.1-8B-Instruct: vLLM 0.6+ with continuous batching delivers 600-1200 tokens/sec output across concurrent users (varies with prompt length). Ollama running the same model: 50-150 tok/s single-user, no useful concurrent batching. llama.cpp with CUDA: 100-300 tok/s, supports CPU offload for memory pressure. For Llama-3.3-70B on 2× A100: vLLM ~150 tok/s aggregate, Ollama ~10-30 tok/s. Practical implication: a single A100 with vLLM serves roughly 100-200 concurrent users for a chat app at human reading speed (10 tok/s/user). For an Indian fintech doing 10k chat sessions/day with 1k tokens average, that is ~$200-500/month in cloud GPU vs $5,000-15,000/month on premium APIs at full-frontier model quality. Choose based on quality tolerance: if Llama-3.3-70B meets your eval, self-host is dramatically cheaper at scale.
Cost & operational reality — what self-hosting actually requires
Self-hosting an LLM is not just spinning up vLLM. The full stack has: (1) GPU capacity planning — peak vs average load, autoscaling on RunPod / Modal / your-own-cluster; (2) model lifecycle — pulling new models from HF safely, eval, canary deploy, rollback path; (3) observability — Prometheus metrics on tokens/sec, queue depth, OOM rate; (4) disaster recovery — what if your single GPU host crashes mid-day? You need a hot-standby or multi-region; (5) updates — vLLM ships every 2-4 weeks with security and performance fixes; track and apply; (6) on-call — someone needs to wake up if inference is down at 3am. Realistic FTE cost: 0.25-0.5 of a senior engineer ongoing. Hardware cost: $0.50-1/hour cloud per A10/A100, or $20-40k upfront for owned hardware that lasts 3 years. Self-hosting wins on cost above ~500k requests/month and on data sovereignty regardless of volume; below that, APIs are usually correct.
Indian GPU options — colocation, Yotta, E2E, and the sovereignty calculus
For Indian companies where data sovereignty matters (regulated workloads, government contracts, healthcare), foreign cloud GPUs are sometimes off-limits. Options in 2026: (1) Yotta D1 (Hiranandani group, Navi Mumbai) — India’s largest data center, has H100 capacity; expensive but India-hosted. (2) E2E Networks — listed Indian cloud, A100/H100 inventory, more affordable than Yotta, NSE-listed so financial transparency. (3) NxtGen / CtrlS / Sify — Indian DCs with GPU offerings; quality varies. (4) AWS / Azure / GCP India regions — multinational but data resides in India; meets some sovereignty requirements but not “Indian-controlled cloud” definitions. (5) Colocate your own GPUs — buy A100/H100, rack at Yotta or NxtGen; ~3-year breakeven vs cloud at consistent high utilisation; need ops capability. (6) Krutrim Cloud (Ola) — emerging Indian AI cloud, focus on sovereign AI; capacity limited but growing. Cost: H100 at Indian providers ~₹150-300/hour vs $2-4/hour at AWS. Cheaper US cloud often offsets cross-border data tax + latency for non-regulated workloads. Practical advice: for non-regulated SaaS — international cloud is fine; for BFSI / healthcare / govt — start with AWS Mumbai / Azure Pune India regions and verify regulator alignment; for full sovereignty mandate — Yotta + colocate or E2E. India’s GPU capacity is growing; expect this landscape to shift through 2027.
Operations playbook — 24×7 self-hosted LLM serving
A real ops checklist for production. Health checks: GET /health returns 200 if model loaded and responsive; GET /v1/models returns model list. Wire to load balancer health probe. Metrics to expose (Prometheus / OpenTelemetry): tokens-per-second (input + output), queue depth, GPU memory %, GPU compute %, request latency histogram, error rate, OOM count, KV-cache hit rate. Alerts: GPU mem > 95%; queue depth > 100 for > 60s; error rate > 1%; latency p99 > 30s; sustained tokens/sec drop. Scaling: vLLM supports tensor parallelism for >1 GPU; pipeline parallelism for very large models; data parallelism via multiple replicas behind LB. Multi-region: replicate models to each region; route by user proximity. Model updates: blue-green deploy — bring up new replica with new model version, eval against fixed test set, shift traffic 1/10/50/100% with rollback at any step. Never in-place upgrade. Backup: model artifacts mirrored to your own bucket; if HF goes down, you keep serving. Logging: redact prompts to PII-safe form; log token counts + latency + error categories; 30-day rolling retention typical. Capacity planning: measure tokens/sec per GPU; project demand growth; provision for 2x peak. vLLM commands worth bookmarking: vllm serve --tensor-parallel-size 2; --max-num-seqs 256; --enable-prefix-caching; --gpu-memory-utilization 0.9; --quantization fp8. Ollama production config: OLLAMA_NUM_PARALLEL=4 OLLAMA_KEEP_ALIVE=10m OLLAMA_MAX_LOADED_MODELS=2 ollama serve. Reverse proxy (Caddy): TLS termination, bearer auth, rate limit, request logging — all in 30 lines of Caddyfile. Security hardening: never bind 0.0.0.0 publicly; firewall the GPU port; auth on the proxy; audit logs to SIEM. The biggest mistake: shipping vLLM directly to the internet without auth. Shodan finds thousands of these; do not be one.
FAQ
Is vLLM ready for production in 2026?
Yes. Used by Databricks, Anthropic (for some workloads), Hugging Face Inference Endpoints. Active development, Apache licence. The “production-grade open LLM server” choice.
Should I bother with TensorRT-LLM?
Only if you are at >1000 concurrent users or need <50ms TTFT for trading/voice applications. Setup complexity 3-4× vLLM, performance gain 20-40%. For most teams, vLLM is the right answer.
Can I serve fine-tuned LoRA adapters on vLLM?
Yes — vLLM 0.5+ supports multi-LoRA serving. One base model + many adapters loaded at runtime, switched per request. Saves enormous VRAM versus loading multiple full fine-tunes.
Can I run a useful 70B model on consumer hardware?
Marginally. A single RTX 4090 (24 GB VRAM) cannot fit 70B in fp16. With 4-bit quantization (Q4_K_M GGUF in llama.cpp), Llama-3.3-70B fits in ~40 GB total memory; you can run it with CPU offload at 5-15 tok/s. Acceptable for personal use; not for production. If you need 70B production, budget A100/H100.
How does TensorRT-LLM compare to vLLM in 2026?
TensorRT-LLM (NVIDIA): higher peak throughput, NVIDIA-only, more complex to operate, best for fixed-model production at the largest scale. vLLM: easier to operate, model-agnostic (any HF transformer), 80-90% of TensorRT throughput, the standard choice for most teams. Pick TensorRT only if you have benchmarked vLLM and need the extra 10-20%.
⚖️ Legal: Use AI security techniques only on systems you own or have explicit written authorisation to test. In India, unauthorised access is punishable under IT Act §66 (up to 3 years + fine). Pair AI red-teaming with signed Statement of Work or Rules of Engagement before testing.
Book a free 30-minute scoping call
Our senior consultants will review your stack and tell you honestly what to fix first. No slide deck. No obligation. Indian businesses only.