Skip to content
coderband

vLLM vs TensorRT-LLM vs SGLang: Choosing an LLM Serving Stack (2026)

Start with vLLM, pick SGLang for agentic, prefix-heavy traffic and TensorRT-LLM for all-NVIDIA fleets. Current releases, features, benchmarks and costs.

coderband engineering12 min read

If you self-host open-weights LLMs in November 2026, start with vLLM unless you have a reason not to: it is a PyTorch Foundation project, its latest release had 412 contributors, and its docs list 13 Kubernetes deployment options. Choose SGLang when traffic is agentic or multi-turn with long shared prefixes, the workload its radix-tree prefix cache and tiered KV cache target, and TensorRT-LLM when the fleet is all NVIDIA Hopper or Blackwell and you want NVIDIA’s own kernels under Dynamo. All three are Apache-2.0 and serve the OpenAI API, and we found no public benchmark at current versions that shows one winning across workloads, so the decision comes down to fit and operations, and you can reverse it.

Key takeaways

  • The mechanisms have converged. All three do continuous batching, paged KV caches, prefix reuse, grammar-constrained output, speculative decoding, multi-LoRA, FP8 and NVFP4. They differ in hardware coverage, release maturity and operations.
  • TensorRT-LLM no longer compiles TensorRT engines. Since v1.3.0rc21 it runs only on PyTorch and loads Hugging Face checkpoints directly. The engine workflow survives only in the stable 1.2.x line.
  • NVIDIA’s own packaging uses the other two. NIM 2.x bundles vLLM or SGLang, and Dynamo orchestrates all three.
  • TGI is closed. Hugging Face archived it on 21 March 2026 and recommends vLLM or SGLang.
  • Almost every published number is a project measuring itself. Read them as upper bounds for one engine, not as rankings.
  • Prompt length moves cost more than anything else here. NVIDIA’s Llama 3.3 70B figures work out to $0.32 per million output tokens with 1K prompts and $1.65 with 8K prompts on the same B200.
  • Benchmark throughput at a latency target, on your own prompt-length mix, with the prefix cache in a known state.

What each project is in November 2026

vLLM SGLang TensorRT-LLM
Maintainer Community project hosted by the PyTorch Foundation, started at UC Berkeley Hosted by LMSYS, a non-profit NVIDIA
Current release v0.34.0, 16 November 2026 v0.5.23, 2 November 2026 Stable v1.2.1, 20 April 2026. Pre-release v1.4.0rc3, 6 November 2026
Release rhythm About every two weeks About every two weeks Release candidates every week or two, stable releases months apart
Licence Apache-2.0 Apache-2.0 Apache-2.0
Hardware NVIDIA, AMD and Intel GPUs, x86, ARM and PowerPC CPUs, plus plugins for TPUs and others (README) NVIDIA, AMD, Google TPU, Intel, Apple Silicon and others (README) NVIDIA only: Ampere, Ada, Hopper, Blackwell

Release data is from GitHub on 18 November 2026.

TensorRT-LLM is the one that changed. If you remember it as a tool that compiles a TensorRT engine per model and GPU, that description is out of date. The engine path exists in the stable 1.2.x line as a legacy workflow: convert the checkpoint, then build an engine that, by TensorRT’s defaults, loads only on the TensorRT version and device type it was built with. The v1.3.0rc20 notes announced the last release with the TensorRT backend, and NVIDIA’s migration guide now states that “PyTorch is now the sole execution backend”. trtllm-build is gone, and trtllm-serve takes a Hugging Face model id with no build step.

The trade-off is maturity. No stable release has shipped since April, so running current TensorRT-LLM means running release candidates. The v1.4.0rc3 notes list known issues, including possible hangs while initializing some tensor-parallel deployments.

The mechanisms that matter

Mechanism vLLM SGLang TensorRT-LLM
Batching and KV memory Continuous batching, chunked prefill and PagedAttention Continuous batching with chunked prefill and selectable scheduling policies In-flight batching, NVIDIA’s name for continuous batching, on a paged KV cache
Prefix reuse Automatic prefix caching: KV blocks hashed with their prefix, LRU eviction RadixAttention radix tree; HiCache tiers it across GPU, host memory and storage Radix tree of KV blocks, on by default, with partial-block reuse and optional host-memory offload
Structured output xgrammar or guidance: JSON schema, regex, grammar, choice, structural tags XGrammar by default, Outlines or llguidance: JSON schema, regex, EBNF, structural tags XGrammar or llguidance: JSON schema, regex, EBNF; structural tags on XGrammar
Speculative decoding EAGLE, MTP, draft model, n-gram, suffix EAGLE-2, EAGLE-3, MTP, DFlash, standalone draft, n-gram EAGLE 3, MTP, PARD, DFlash; n-gram is deprecated
Quantization FP8, MXFP8, MXFP4, NVFP4, INT8, INT4, AWQ, GPTQ, GGUF (README, hardware table) AWQ, GPTQ, FP8, MXFP4 and NVFP4; pre-quantized checkpoints recommended over online quantization FP8, NVFP4, MXFP4, AWQ and GPTQ at W4A16 or W4A8, FP8 and NVFP4 KV cache (matrix by GPU)
Multi-LoRA Per-request adapters, loadable at runtime Different adapters in one batch, 8 slots by default Multiple adapters, switched per request
Multi-GPU and distributed Tensor and pipeline parallelism, multi-node; prefill/decode split is experimental Tensor, pipeline, expert and data parallelism (arguments); prefill/decode disaggregation behind a router Tensor, pipeline and expert parallelism; disaggregated serving
API OpenAI-compatible, plus Anthropic Messages and gRPC (README) OpenAI-compatible and Anthropic-compatible OpenAI-compatible trtllm-serve

Prefix reuse is where the designs differ most. vLLM hashes each KV block together with the tokens before it. SGLang and TensorRT-LLM keep a radix tree and can move cold blocks to host memory, and SGLang’s HiCache adds a storage tier that several instances can share. This is the self-hosted counterpart of the provider prompt caching we cover in RAG vs fine-tuning vs long context. With agent loops or a long system prompt, the cache hit rate drives time to first token, so watch vllm:prefix_cache_hits or sglang:cache_hit_rate before you compare engines.

Quantization follows the GPU generation, not the engine. vLLM’s hardware table has FP8 weights and activations on Ada and Hopper but not Ampere, and TensorRT-LLM’s matrix leaves an A100 with 4-bit AWQ or GPTQ weights and 16-bit activations. Native NVFP4 starts at Blackwell. We explain the formats in FP8 and NVFP4 for image generation. Gate a precision change the way you gate a model change: rerun your eval suite.

Speculative decoding is a latency lever for lightly loaded servers. vLLM’s docs call it lossless in theory, up to numerical precision, with gains that depend on model, traffic, hardware and sampling settings. NVIDIA describes it as a technique for low batch sizes. Measure it at your real concurrency before counting on it for capacity.

Published benchmarks, and what each one controls for

Source (publisher) Setup Result What it doesn’t control for
TensorRT-LLM 1.2.1 performance overview (NVIDIA) Llama 3.3 70B. One B200 at FP4, or two H200s at FP8. 1,024 tokens in and out, synthetic, all requests queued at once 6,943 output tokens/s per GPU on B200, 2,637 on H200 No latency target and no other engine. Precision differs between the GPUs. NVIDIA says it is a reference point, not peak performance
SGLang speculative decoding docs (project) Llama 3.1 8B Instruct, MT-Bench, one H100 158 tokens/s plain, 244 with EAGLE-2, 373 with EAGLE-3 Concurrency, precision and version aren’t stated
vLLM v0.34.0 notes (project) New default KV cache sizing; MiniMax-M3 on H200 KV cache grows from 433k to 672k tokens; per-token latency rises 6–18% on some H200 models at concurrency 128 Before and after on one engine. A documented trade of latency for throughput
SGLang v0.5.23 notes (project) MoE models, 8K prompts, H200 First token 30–58% sooner Before and after on one engine. Concurrency isn’t stated
LMSYS blog, July 2024 (SGLang’s host) Llama 3 8B and 70B on A100 and H100; vLLM 0.5.2 at default arguments, TensorRT-LLM 0.10.0; prefix cache off Up to 3.1x vLLM’s throughput on the 70B model Versions more than two years old
InferenceX (SemiAnalysis) Continuous public runs of vLLM, SGLang and TensorRT-LLM on NVIDIA, AMD and Google hardware; Apache-2.0 A live dashboard, not one number Hardware comes from vendors and clouds. Models, configurations and traffic shapes are InferenceX’s, not yours

Read together, these show each engine improving fast against its own past. None shows one engine beating the others at current versions under a controlled setup. The one head-to-head in the table comes from a project’s host and is more than two years old. InferenceX is the best public prior because its code and configurations are open source, and it still answers a different question from yours.

Operational differences

Where Triton, NIM and Dynamo fit

  • Dynamo-Triton is the new name for Triton Inference Server, a general model server for TensorRT, PyTorch, ONNX and other frameworks. The current release is 2.75.0 under BSD-3-Clause. It fits when LLMs share a server with other model types.
  • Dynamo is an Apache-2.0 orchestration layer above the engines, currently at v1.6.2. It adds KV-aware routing, disaggregated prefill and decode and the Planner on top of vLLM, SGLang or TensorRT-LLM, plus tiered KV offload for vLLM and TensorRT-LLM.
  • NIM is NVIDIA’s packaged container. In 2.x, each image bundles one open-source engine, vLLM or SGLang, replacing the 1.x multi-backend design that preferred TensorRT-LLM. Per NVIDIA’s offerings page, standard NIM is available at no charge and the Production Branch requires an NVIDIA AI Enterprise subscription.

TGI, llama.cpp and Ollama

  • Hugging Face TGI is in maintenance mode, and its repository is archived. If you run it today, plan a move to vLLM or SGLang.
  • llama.cpp is an MIT-licensed C/C++ engine. Its server runs quantized models on GPU and CPU, with OpenAI-compatible routes, parallel decoding, continuous batching and schema-constrained JSON. It suits laptops, edge boxes and single-GPU machines.
  • Ollama is an MIT-licensed model runner that lists llama.cpp among its backends. Each model processes one request at a time by default, which suits a developer machine.

Cost per million output tokens

This is illustrative arithmetic on published figures, not a measurement. The formula is the one from our guide to cutting GPU inference costs, with tokens in place of images:

cost per 1M output tokens = GPU $ per hour / (output tokens per second x 3600 x utilization) x 1,000,000

Throughput is NVIDIA’s TensorRT-LLM 1.2.1 figure for Llama 3.3 70B. Prices are on-demand per GPU from RunPod (updated 12 November 2026), at 100% utilization.

Setup Output tokens/s per GPU RunPod Secure RunPod Community
B200, FP4, 1,024 in / 1,024 out 6,943 $0.32 ($7.99/h) $0.24 ($5.98/h)
B200, FP4, 8,192 in / 1,024 out 1,347 $1.65 $1.23
2x H200, FP8, 1,024 in / 1,024 out 2,637 $0.56 ($5.29/h) $0.38 ($3.59/h)
2x H200, FP8, 8,192 in / 1,024 out 544 $2.70 $1.83
  • This is the best case for this configuration. The benchmark queues every request at once with no latency target. A p95 time-to-first-token limit lowers throughput, and the cost rises with it.
  • Prompt length is the big variable. Prompts eight times longer cut output throughput about five-fold on both GPUs.
  • Utilization doubles everything. At 50% utilization every cell is twice as high.
  • Compare against hosted prices before you commit. Our AI agent cost breakdown lists current API token prices.

How to benchmark on your own workload

  1. Replay your real length distribution. Use production prompt and output lengths, or a trace, not 1,024 in and out.
  2. Record time to first token, inter-token latency and end-to-end latency at p50 and p95. vLLM’s docs warn that metric names aren’t standardized across tools, so compare definitions.
  3. Sweep the request rate with open-loop arrivals. The number to report is the highest rate that still meets your latency target.
  4. Control the prefix cache. Repeated runs against one server reuse cached prompts and inflate throughput. Test with the amount of prefix sharing your traffic really has.
  5. Hold everything else fixed. Same model revision, precision, GPU, client and warm-up for every engine.
  6. Check output quality whenever precision, speculative decoding or grammar settings differ.
# vLLM's client: Poisson arrivals at 8 requests/s, at most 64 in flight
vllm bench serve --backend vllm --model <model> --endpoint /v1/completions \
  --dataset-name random --random-input-len 1024 --random-output-len 256 \
  --request-rate 8 --max-concurrency 64 --num-prompts 2000

# SGLang's client, which can also drive a vLLM or TensorRT-LLM endpoint
python3 -m sglang.benchmark.serving --backend vllm \
  --base-url http://127.0.0.1:8000 --num-prompts 1000

# GuideLLM: sweep rates against any OpenAI-compatible server
guidellm run --backend kind=openai_http,target=http://localhost:8000 \
  --profile kind=sweep --constraint kind=max_duration,seconds=30 \
  --data kind=synthetic_text,prompt_tokens=256,output_tokens=128

# AIPerf, NVIDIA's client
aiperf profile --model <model> --streaming --endpoint-type chat \
  --url http://localhost:8000 --concurrency 5 --request-count 10

The commands follow the vLLM, SGLang, GuideLLM and AIPerf docs. GenAI-Perf is being phased out in favour of AIPerf.

Decision table

Situation Pick Why
First self-hosted deployment of a mainstream model vLLM Foundation governance, the most documented deployment paths, broad quantization and hardware support
Agents, multi-turn chat, long shared system prompts SGLang, with vLLM as the control Radix-tree prefix cache with host and storage tiers
All-NVIDIA Hopper or Blackwell fleet that can run release candidates TensorRT-LLM, usually under Dynamo NVIDIA’s kernels, NVFP4 weights and KV cache
AMD, Intel or TPU accelerators vLLM or SGLang TensorRT-LLM is NVIDIA-only
A100 fleet vLLM or SGLang with AWQ or GPTQ FP8 starts at Ada; Ampere gets 4-bit weight formats
Many LoRA adapters, or strict JSON output at volume Any of the three, benchmarked with your adapters and schemas All support per-request adapters and XGrammar
Several nodes, routing and SLA autoscaling needed Dynamo over your engine KV-aware routing and the Planner work with all three
A vendor support contract is required NIM Production Branch vLLM or SGLang inside, with NVIDIA AI Enterprise
LLMs next to vision or tabular models on one server Dynamo-Triton Multi-framework model server
Running TGI today vLLM or SGLang TGI is archived
One user, a laptop or an edge box llama.cpp or Ollama Small footprint, CPU support

Put numbers on your own stack

Every figure above is someone else’s model, prompt mix and GPU. The GPU Inference Speed Audit replaces them with yours. It is a fixed $4,900, paid upfront, and takes one week. It covers self-hosted language models on NVIDIA GPUs from Ampere through Blackwell, with vLLM and TensorRT-LLM on the list of frameworks, and it takes one pipeline: one model family on one serving stack.

On day one we agree the benchmark spec with you: model and precision, input and output token lengths, concurrency, the hourly price basis and a quality bar. We record a reproducible baseline (throughput, p50 and p95 latency, cost per million output tokens, GPU utilization), profile kernels, memory, precision, batching and cold starts, and prototype the biggest wins against that baseline. Everything runs in your environment, on GPUs in your account. You get the benchmark scripts and raw results, a ranked plan with the saving, effort and risk of each change, and a fixed quote to implement it if you want one.

If we can’t show at least 30% lower cost per output or 30% lower latency, measured on your workload and hardware at the agreed quality bar, you get a full refund automatically, and you keep the report.