AI agents · OpenClaw · self-hosting · automation

Quick Answer

Low-Latency LLM Serving Frameworks With Caching (2026)

Published:

The short answer

Run vLLM or SGLang with prefix caching on, add LMCache when your shared context no longer fits in GPU memory, and add NVIDIA Dynamo or llm-d only when you run many replicas and need requests routed to the replica that already holds their cache. TensorRT-LLM is the pick when you are NVIDIA-only and will trade setup effort for the last slice of per-GPU speed. Versions below were read from each GitHub repository on November 24, 2026.

This page is a spoke of our low-latency LLM hosting providers comparison, for teams that host the model themselves.

The frameworks compared

vLLMSGLangTensorRT-LLMNVIDIA DynamoLMCachellm-d
LayerInference engineInference engineInference engineOrchestration above enginesKV cache layerKubernetes serving stack
Latest releasev0.34.0 (Nov 16, 2026)v0.5.23 (Nov 2, 2026)v1.3.0 (Nov 20, 2026)v1.7.0 (Nov 24, 2026)v0.5.8 (Nov 22, 2026)v1.0.0 (Oct 20, 2026)
LicenceApache-2.0Apache-2.0Apache-2.0Apache-2.0Apache-2.0Apache-2.0
CachingAutomatic prefix cachingRadixAttention (tree-structured prefix cache)KV cache reuseKV-aware routing, multi-tier KV cachingKV offload and sharing beyond GPU memoryRuns vLLM/SGLang with cluster-level routing
HardwareNVIDIA, AMD, TPU and moreNVIDIA, AMD and moreNVIDIA onlyWorks with vLLM, SGLang, TensorRT-LLMNVIDIA, AMD, othersGPUs, TPUs, Intel XPUs, CPUs
GitHub stars~97,500~39,000~15,100~8,600~12,500~5,300
Pick it forDefault, broadest model supportShared-prefix agent and code trafficPeak NVIDIA throughputMulti-node, disaggregated servingLong shared contextsTeams already on Kubernetes

Picks by job

One or a few GPUs, one coding model → vLLM or SGLang. Both expose an OpenAI-compatible server and cache shared prefixes automatically. SGLang’s RadixAttention keeps a tree of cached prefixes, which suits coding agents whose requests branch from the same system prompt and repository context. vLLM supports the widest range of models and hardware and is usually first to support a new open-weight release. Benchmark both on your own prompts; the gap depends on how much prefix your traffic shares.

Context bigger than GPU memory → add LMCache. Code assistants with large repository context evict KV blocks quickly. LMCache stores them in CPU memory or other tiers and serves them back instead of recomputing, and its multi-node peer-to-peer CPU memory sharing moved to production in January 2026.

Many replicas → NVIDIA Dynamo. Dynamo is “the orchestration layer above inference engines”: it does not replace vLLM, SGLang or TensorRT-LLM. Its KV-aware router sends each request to the worker with the most cache overlap, it can disaggregate prefill and decode onto separate GPUs and scale them independently, and it manages multi-tier KV caching. Version 1.7.0 shipped on November 24, 2026.

Kubernetes-first → llm-d. llm-d is an open-source, Kubernetes-native stack that runs vLLM and SGLang across a cluster, with tested “well-lit path” recipes for common production patterns. Version 1.0.0 shipped on October 20, 2026.

NVIDIA-only and latency-obsessed → TensorRT-LLM. It needs an engine build and tuning, but gives the highest per-GPU performance on NVIDIA hardware; Dynamo can sit on top of it.

A latency checklist for code generation

  1. Keep the prompt prefix stable. Put system prompt, tool definitions and repository context first and the user turn last; any change near the start invalidates the cache.
  2. Turn on speculative decoding with a small draft model; code is predictable text and benefits.
  3. Measure time to first token, not only tokens per second, at your real concurrency — see how to measure TTFT.
  4. Route by cache, not round-robin, once you have more than one replica.
  5. Size for peak concurrency: prefix caching saves compute, but every live session still holds KV memory.

For throughput-first tuning (batching, quantization), see the fastest way to serve an open-weight model.

Last verified: November 24, 2026.

Sources