DavidGadyan

AI Engineering

vLLM vs TensorRT-LLM vs SGLang vs Triton: Model Serving Compared, plus llm-d on Kubernetes with Helm

By David Gadyan · Published · 10 min read

Four tiles named vLLM, TensorRT-LLM, SGLang and Triton on a dark background under the title "Model serving compared", with the line "plus llm-d on Kubernetes with Helm"

vLLM, TensorRT-LLM and SGLang are inference engines; Triton is a serving layer that can host two of them; llm-d is the Kubernetes layer that routes between engine pods. This post separates the four layers, compares the tools in seven tables and three diagrams, shows when to pick each, and explains how Helm installs llm-d with separate prefill and decode pools.

The question behind this post is a job-description line: implement and optimise model-serving solutions with frameworks such as vLLM, TensorRT-LLM, SGLang or Triton Inference Server. The trap is treating those four names as competitors. They are not all the same kind of thing, and the Kubernetes tooling around them (Helm, llm-d) is a fourth layer again.

I wrote this as the reference I keep open when sizing a serving stack. It separates the layers, compares the tools in tables, says when each one fits, and ends with how llm-d, Helm and Kubernetes run separate prefill and decode pools. If you want the model-choice side first, read Which LLM should you use.

The short answer

Run vLLM unless a constraint points elsewhere: it is the general default with the broadest hardware and model support. Pick TensorRT-LLM for NVIDIA-only deployments where peak speed justifies the extra setup, SGLang when many requests share long prefixes, and Triton when one server must front several models or pipelines. Add llm-d when one engine pod is no longer enough and you need routing, prefix-cache awareness and separate prefill and decode pools on Kubernetes.

Everything below was checked on 19 November 2026 against the projects' own documentation (listed in Sources). Where a cell says "not confirmed", I did not find the claim on the page I read, which is not the same as "missing". I make no benchmark claims: speed depends on model, GPU, precision and traffic.

What is each tool, and which layer is it?

ToolLayerWhat it does
vLLMEngineExecutes the model with PagedAttention, continuous batching, prefix caching and an OpenAI-compatible API server
TensorRT-LLMEngineNVIDIA's open-source library for optimised LLM inference on NVIDIA GPUs, with a Python LLM API and a PyTorch-based architecture
SGLangEngineHigh-performance serving framework for language and multimodal models, with RadixAttention, prefix caching and multi-GPU parallelism
Triton Inference ServerServing layerOpen-source server that deploys models from several frameworks behind HTTP/REST and gRPC, with dynamic batching, ensembles and metrics
llm-dOrchestrationOpen-source inference stack for Kubernetes that runs engines such as vLLM and SGLang across a cluster; a CNCF Sandbox project
HelmDeploymentInstalls and configures Kubernetes applications from charts and a values file
The serving stack in four layers Orchestration on Kubernetes llm-d: KV-aware router, prefill and decode pools Serving layer Triton Inference Server: HTTP/gRPC, batching, metrics, ensembles Inference engine vLLM TensorRT-LLM SGLang Hardware NVIDIA GPUs (all three), AMD GPUs and CPUs (vLLM), TPU and others (SGLang) hosts TRT-LLM and vLLM backends runs vLLM and SGLang
Figure 1. The serving stack in four layers. llm-d orchestrates engine pods on Kubernetes, Triton serves models and can host TensorRT-LLM and vLLM as backends, the engine executes the model, the GPU computes.

How do vLLM, TensorRT-LLM, SGLang and Triton compare?

FeaturevLLMTensorRT-LLMSGLangTriton
BatchingContinuous batching, chunked prefillIn-flight batching, chunked prefillNot confirmed on the pages I readDynamic batching per model; in-flight batching through the TensorRT-LLM backend
KV cachePagedAttention, prefix cachingPaged KV cache with block reuseRadixAttention, prefix cachingDelegated to the backend
QuantisationFP8, MXFP8/MXFP4, NVFP4, INT8, INT4, GPTQ/AWQ, GGUFFP8 on H100 and later, FP4 on B200Not confirmedDelegated to the backend
Speculative decodingn-gram, suffix, EAGLE, DFlashEAGLE, MTP, n-gramNot confirmedThrough the backend
ParallelismTensor, pipeline, data, expert, contextTensor, pipeline, expertMulti-GPU parallelismDelegated to the backend
HardwareNVIDIA and AMD GPUs, x86, ARM, PowerPC CPUsNVIDIA GPUsNVIDIA, AMD, Intel Xeon, Google TPU, Ascend NPU and othersNVIDIA GPUs, x86 and ARM CPUs, AWS Inferentia
APIOpenAI-compatible, Anthropic Messages, gRPCPython LLM API; serving CLIOpenAI-compatibleHTTP/REST and gRPC (KServe protocol)
Disaggregated prefill/decodeYesBetaNot confirmedNot applicable

When does each one make more sense?

SituationReach forWhy
Open-weight model, first deployment, mixed hardwarevLLMBroadest hardware and model coverage, simple OpenAI-style endpoint
NVIDIA-only fleet, latency and cost per token matter mostTensorRT-LLMNVIDIA-tuned kernels and FP8/FP4 on recent GPUs
Agents or chat with long shared system promptsSGLang, or vLLM with prefix cachingPrefix reuse avoids recomputing the same tokens; test both
One endpoint for several models, classic ML and LLMsTritonModel repository, ensembles, metrics, multiple backends
Many GPUs across nodes, KV-aware routingllm-d on top of the engineRouting and pool management are not the engine's job
Laptop or CPU-only experimentvLLM CPU build, or a local runtimevLLM lists CPU support; production belongs on GPUs
Decision flow for the engine Which engine first? Wide model choice, AMD or CPU too, a safe default vLLM NVIDIA only, maximum speed, you accept a build step TensorRT-LLM Many models or pipelines behind one server Triton (+ TRT-LLM or vLLM backend) Long shared prefixes, agents, RadixAttention SGLang Many GPUs, many nodes, one cluster add llm-d on top
Figure 2. Decision flow for the engine. Default to vLLM; choose TensorRT-LLM for NVIDIA-only peak speed, Triton for many models behind one server, SGLang for prefix-heavy traffic, and add llm-d when the deployment spans many nodes.

The positioning in these two tables is my reading of the documentation, not a measurement.

Which optimisations matter, and what do they cost?

TechniqueWhat it improvesTrade-off
Continuous or in-flight batchingGPU utilisation: new requests join a running batchHigher batch raises per-request latency
Paged KV cacheLess wasted memory, more concurrent requestsBlock management overhead
Prefix cachingSkips prefill for shared prefixes, lowers time to first tokenOnly helps when prefixes really repeat
Quantisation (FP8, INT4, FP4)Smaller weights, more room for KV cacheQuality check needed on your task
Speculative decodingFewer sequential decode stepsNeeds a draft method; gain varies with the prompt
Tensor, pipeline, expert parallelismFits models larger than one GPUNeeds fast links, see NVLink and InfiniBand
Prefill/decode disaggregationSeparate scaling and tuning for each phaseKV transfer cost, more moving parts

What does llm-d add on Kubernetes, and how does Helm fit?

Think of it as four jobs. Kubernetes manages the cluster. Helm installs and configures applications in it. llm-d provides inference-aware routing and orchestration. vLLM (or SGLang) executes the model.

PieceJobHow it arrives
GatewayEntry point for requestsHelm, or an existing gateway
Router and endpoint picker (EPP)Chooses the engine pod for each requestHelm
Engine pods (vLLM)Generate tokensKubernetes manifests or Kustomize in current llm-d guides
LeaderWorkerSetGroups pods for multi-node model replicasHelm
MonitoringMetrics and dashboardsAdditional tooling

llm-d describes its deployments as "well-lit paths", tested recipes that ship Helm charts or Kustomize manifests, tuning knobs, sample workloads, benchmarks and monitoring. The paths on its documentation include an optimised baseline, routing by predicted latency, precise prefix-cache-aware routing, a tiered prefix cache, peer-to-peer prefix cache sharing, prefill/decode disaggregation and wide expert parallelism for mixture-of-experts models.

A Helm install, with the chart location taken from llm-d's published router recipe (confirm it against the current guide, because the charts change):

helm install my-router \
  oci://ghcr.io/llm-d/charts/llm-d-router-standalone \
  -f router-values.yaml \
  --namespace llm-d \
  --create-namespace

Helm renders the chart templates with your values into Kubernetes resources and submits them to the API; Kubernetes controllers then reconcile the cluster to that desired state. To change the configuration you edit the values file and run helm upgrade with the same release name. This layout is illustrative only, not the exact keys of the current llm-d charts:

router:
  replicas: 2
prefill:
  replicas: 4
decode:
  replicas: 8

Raising decode from 8 to 12 then asks Kubernetes for four more pods, provided the workload honours that setting and the cluster has the GPUs.

Helm, router and prefill/decode pools Helm + values.yaml helm install / upgrade Kubernetes API Client prompt Gateway Router / EPP picks a pod Prefill pods vLLM, compute-bound Decode pods vLLM, memory-bound KV cache moves over RDMA (NIXL) Client tokens
Figure 3. Helm installs the router and the prefill and decode pools. The router picks a prefill pod, the KV cache moves to a decode pod over RDMA, and tokens stream back to the client.

Should prefill and decode run on separate nodes?

Prefill reads the whole prompt in parallel and is compute-bound; decode produces tokens one at a time and is limited by memory bandwidth and KV cache capacity. Separate pools let you give each phase its own GPUs, parallelism and scaling signal, and keep long prompts from stalling decode. The price is moving the KV cache between pools, which is why the network (NVLink inside a node, InfiniBand or RoCE between nodes) decides whether it pays off.

OptionMakes sense whenWatch out for
Combined prefill and decode, one poolSmall or medium models, short prompts, early stageLong prompts delay other users' decoding
Prefix-cache-aware routing, combined podsMulti-turn chat, shared system promptsHot pods if the router ignores load
Disaggregated prefill and decode poolsHigh concurrency, long prompts, strict latency targetsKV transfer needs a fast fabric
Wide expert parallelismLarge mixture-of-experts models across many GPUsHeavy interconnect and operational demands

For a follow-up message in the same chat, the pod that already holds the conversation's KV cache saves recomputation, so a router that knows where cached prefixes live beats round-robin. That is the same reasoning behind keeping prefill capacity separate: you control cache space and scaling per phase.

Does llm-d only support a few models?

No. Model support comes from the engine. vLLM's supported-models documentation lists more than 200 Hugging Face architectures (Llama, Qwen, DeepSeek, Mistral, Gemma, Phi, Nemotron and multimodal models). What differs is the level of validation.

QuestionWhat to check
Can the engine run the model?The architecture appears in vLLM's supported models
Does it run on my hardware?CUDA, ROCm or another backend, plus the quantisation format
Do parallelism and KV cache types work together?Tensor, pipeline, data or expert parallelism and the cache dtype
Does llm-d have a recipe?A well-lit path or model-specific path exists for your layout
Is the recipe validated?Some recipes are marked community-maintained rather than nightly validated

What should you do first?

  1. Deploy one model with vLLM and an OpenAI-compatible endpoint; record time to first token, tokens per second and KV cache usage under your real prompts.
  2. Try quantisation and prefix caching, and keep a golden prompt set to check quality.
  3. Benchmark TensorRT-LLM and SGLang on the same prompts if your hardware and traffic suit them.
  4. Containerise, put the engine in a Helm release, and add a GPU node pool with the NVIDIA device plugin.
  5. Only then add llm-d, prefix-aware routing and, if the numbers show it, separate prefill and decode pools.

Sources

  • vLLM documentation, docs.vllm.ai: feature list (PagedAttention, continuous batching, chunked prefill, prefix caching, quantisation formats, speculative decoding methods, parallelism, hardware, API servers, disaggregated prefill). Read on 19 November 2026.
  • NVIDIA, TensorRT-LLM overview: PyTorch architecture, in-flight batching, paged KV cache, FP8 and FP4, speculative decoding, parallelism, disaggregated serving (Beta). Read on 19 November 2026.
  • SGLang, docs.sglang.io: RadixAttention, prefix caching, multi-GPU parallelism, supported hardware. Read on 19 November 2026.
  • NVIDIA, Triton Inference Server user guide and the TensorRT-LLM backend: backends, dynamic and in-flight batching, ensembles, protocols, metrics. Read on 19 November 2026.
  • llm-d, documentation: well-lit paths, Helm and Kustomize assets, CNCF Sandbox status, supported engines. Read on 19 November 2026.
  • My own study notes of November 2026 on how Helm, llm-d, Kubernetes and vLLM connect, the supported-model checklist and the placement options. The positioning tables are my reading of the documentation, the values.yaml is illustrative, and chart names and flags should be confirmed against the current llm-d guide before use.

Questions this answers

What is the difference between vLLM and Triton Inference Server?

vLLM is an inference engine that executes the model. Triton Inference Server is a general serving layer with HTTP and gRPC endpoints, dynamic batching, metrics and model repositories, and it can host a vLLM or TensorRT-LLM backend. You can run vLLM alone, or Triton with vLLM inside.

Is TensorRT-LLM faster than vLLM?

TensorRT-LLM is NVIDIA's library tuned for NVIDIA GPUs, with FP8 on H100 and later and FP4 on B200, so it is the usual candidate when peak speed on NVIDIA hardware matters. Whether it beats vLLM depends on the model, precision, batch shape and version. Benchmark both on your traffic.

When should I use SGLang?

When many requests share long prefixes, such as agents with a fixed system prompt and tool list or multi-turn chat. SGLang documents RadixAttention and prefix caching for this. vLLM also has prefix caching, so test both.

How is llm-d connected with Helm?

llm-d ships Helm charts and Kustomize manifests for its deployment recipes. Helm installs and configures the components in Kubernetes; llm-d then does inference-aware routing; vLLM does the generation. The older ModelService chart is deprecated in favour of Kustomize-based model-server deployment, so read the current llm-d guide before copying a command.

Does llm-d support only a few models?

No. Model support comes from the engine, mostly vLLM, which documents 200 or more Hugging Face architectures. llm-d adds tested recipes for some models and hardware, and a recipe can be community-maintained rather than nightly validated. Ask first whether vLLM runs the model on your GPU, then whether llm-d has a recipe for that layout.

Should a follow-up message go to the same node that did the prefill?

For multi-turn chat the node that already holds the conversation's KV cache can skip recomputing it, which is why llm-d offers prefix-cache- aware routing. With disaggregation the prefill and decode work run on different pools by design, so the router chooses per request using cache location and load, not a fixed node.

Can I try llm-d on Minikube?

You can learn the orchestration there: kubectl get nodes, kubectl get pods -A, helm list -A. Real GPU inference and RDMA need GPU nodes and a suitable network, which a local Minikube cluster does not provide.

Tags:vllmtensorrt-llmsglangtriton inference serverllm-dkuberneteshelmllm servingkv cache

Related projects

Need something like this built? See my Services · Portfolio · Book 15-min free call

← All articles