← All field notes
Inference · 27 November 20268 min

Choosing an inference engine in late 2026: vLLM, SGLang, TensorRT-LLM, llama.cpp, and MLX

There is no single best inference backend. The right choice depends on concurrency, shared prompt structure, quantization format, and hardware family.

Deploying the right open-weight checkpoint on the wrong inference runtime wastes both latency and hardware budget. Late-2026 serving engines have specialized around distinct hardware classes and workload shapes.

RuntimeCore strengthBest workloadHardware fit
SGLangRadixAttention prefix tree & zero-overhead XGrammar JSONMulti-turn agents, SQL copilots, structured tool calls48–80 GB GPUs & clusters
vLLMMature PagedAttention, wide model support, LoRA hot-swapMulti-tenant production APIs, heterogeneous clusters24 GB+ NVIDIA GPUs & clusters
TensorRT-LLMCompiled custom CUDA kernels & FP8/INT4 AWQ primitivesFixed production models needing minimal single-stream TTFTNVIDIA H100 / H200 / Blackwell
ExLlamaV2EXL2 fractional bit quantization on single GPUsFast personal desktop decode on 24–32 GB cardsSingle RTX 3090 / 4090 / 5090
llama.cpp / MLXGGUF hybrid CPU/GPU offload & unified Apple memoryLaptops, 128–512 GB Mac Studios, mixed CPU/GPU rigsApple Silicon, x86, edge rigs

When SGLang beats vLLM (and vice versa)

For single-prompt throughput benchmarks, tuned SGLang and vLLM frequently trade blows within single-digit percentages. For coding and database agents sharing a 20K–60K base prefix across dozens of parallel tool calls, SGLang's RadixAttention tree retains reusable prefix nodes more aggressively, cutting time-to-first-token noticeably at high concurrency.

Conversely, when an organization runs newly released weights on day one, needs multi-LoRA adapter routing, or standardizes on custom OpenAI/Anthropic wrapper middleware, vLLM's broader model registry and ecosystem compatibility often win out.

Why Ollama lags multi-user server engines

Ollama wraps llama.cpp cleanly for single-developer experimentation. Under multi-user load, however, a single-user wrapper lacks server-grade continuous batching and paged multi-tenant KV isolation. During every Deployment X-ray, we replace ad-hoc local daemons with continuously batched vLLM or SGLang profiles calibrated specifically to your card and prompt length.

Browse hardware and engine pairings →