Inference Serving Engines Compared: vLLM, TensorRT-LLM, SGLang and TGI
An inference serving engine is the software that loads an AI model onto GPUs and answers user requests. We pick one by the GPUs in the fleet and the shape of the traffic.
Choose vLLM for a fleet that mixes NVIDIA with AMD, Intel or other chips. Choose TensorRT-LLM for NVIDIA GPUs alone, when your engineers can tune each build.
Choose SGLang for AI agents and chats that resend the same long prompt opening. Hugging Face's Text Generation Inference (TGI) is now in maintenance mode, so we'd leave it off new deployments.
TL;DR: A May 2026 benchmark by GPU cloud provider JarvisLabs on NVIDIA H100 GPUs gave vLLM the best overall balance of speed. TensorRT-LLM wrote output at the steadiest pace, a measure called decode latency, and took longest to start answering under heavy chat load.
The Four Inference Serving Engines at a Glance
Hardware support separates the four engines most: TensorRT-LLM runs on NVIDIA GPUs alone, and vLLM lists the most chip types. Structured output means forcing the model to answer in a fixed format such as JSON, which each engine supports through a different library.
| vLLM | TensorRT-LLM | SGLang | TGI | |
|---|---|---|---|---|
| Hardware | NVIDIA, AMD and Intel GPUs, CPUs and other chips through plugins | NVIDIA GPUs | NVIDIA, AMD, Intel, Google TPU and Apple Silicon | NVIDIA, AMD, Intel Gaudi, Google TPU and AWS Inferentia |
| Main technique | PagedAttention, which stores each request's memory in small blocks | Engine builds compiled for one model and workload | RadixAttention, which reuses work on shared prompt openings | Batching and memory code tuned for popular models |
| Structured output library | xgrammar or guidance | Guided decoding | XGrammar by default | Outlines |
| Works with OpenAI client code | Yes | Yes, through its trtllm-serve command | Yes | Yes |
| Serving across many servers | Production Stack or llm-d | Triton Inference Server or NVIDIA Dynamo | SGLang's cache-aware router | AWS SageMaker or EC2 guides |
| JarvisLabs H100 result | Best balance across its tests | Steadiest decode latency | Lowest decode latency in two long-prompt tests | Not tested |
| License | Apache 2.0 | Apache 2.0 | Apache 2.0 | Apache 2.0 |
| Company funding development | Inferact, founded by vLLM's creators | NVIDIA | RadixArk, founded by SGLang's creators | Hugging Face |
vLLM: An Inference Engine for Mixed Hardware
vLLM suits a fleet that mixes GPU vendors, because one engine then covers each machine. Its repository lists NVIDIA, AMD and Intel GPUs, x86, ARM and PowerPC processors, and plugins for other chips such as Google TPU, Intel Gaudi, IBM Spyre and Apple Silicon.
A model keeps working notes on each earlier word of a conversation in GPU memory, a store engineers call the KV cache. vLLM's PagedAttention splits that store into small fixed-size blocks, the way an operating system pages memory.
The vLLM team's 2023 launch post measured 60 to 80% of that memory going to waste in older engines and under 4% with paging. Less waste leaves room for more requests on each GPU.
The same post claims up to 24x the throughput of Hugging Face Transformers and 3.5x that of TGI. Those figures come from the team's own 2023 tests against older versions of both tools.
vLLM also uses continuous batching: it adds new requests to the running batch as earlier ones finish, which cuts idle GPU time.
JarvisLabs tested Alibaba's Qwen models of 7 to 32 billion parameters on H100 GPUs, using chat prompts and prompts of about 16,000 tokens, the word pieces a model reads. vLLM gave the best balance of first-token time, decode latency and throughput across those tests.
The project's Production Stack runs vLLM across many servers on Kubernetes, the open-source system that schedules containers across a cluster. Its router can send a returning user to the server that already holds that conversation.
Red Hat launched llm-d with CoreWeave, Google Cloud, IBM Research and NVIDIA to run vLLM across a Kubernetes cluster. Red Hat also sells a supported version of vLLM as its AI Inference Server.
TechCrunch reported that vLLM's creators raised a $150M seed round in January 2026 for their new company, Inferact. Inferact's CEO told Bloomberg that Amazon's cloud service and its shopping app run on vLLM.
TensorRT-LLM: NVIDIA's Tuned Inference Engine
TensorRT-LLM suits teams that run NVIDIA GPUs alone and want answers to stream at a steady pace. NVIDIA's repository describes it as a library for efficient inference on NVIDIA GPUs.
TensorRT-LLM held decode latency nearly flat as the JarvisLabs request load rose, at about 9 to 12 ms per token on the smallest model's chat test. Its time to first token (TTFT) reached 1.3 seconds at 300 simultaneous requests on that model, where vLLM stayed near 0.3 seconds.
JarvisLabs traced part of that rise to its engine builds, several of which capped how many requests could run together below the request levels in the test. Each TensorRT-LLM result describes one build, so a team should rebuild and retest for its own traffic.
The JarvisLabs setup converted each model's files to TensorRT format and compiled an engine before starting the trtllm-serve command. That command answers requests in the same format as OpenAI's API.
NVIDIA's documentation also lists a PyTorch backend, which serves a model straight from its original files. NVIDIA pairs TensorRT-LLM with Triton Inference Server or Dynamo for serving across many servers.
SGLang: A Serving Engine for Agents and Shared Prompts
SGLang suits AI agents, multi-turn chats and other traffic where many requests open with the same long prompt. Its repository lists NVIDIA, AMD, Google TPU, Intel and Apple Silicon support among other chips, with AWS Trainium in progress.
RadixAttention keeps the KV cache from a shared prompt opening and reuses it for each later request that starts the same way. SGLang then skips recomputing that opening when an agent resends the same long instructions each turn.
SGLang uses the XGrammar library by default to hold answers to a JSON schema, a regular expression or a grammar. vLLM now lists xgrammar support too, so test both engines on your own schemas.
SGLang's team claimed up to 10x faster JSON output than other open-source engines in its v0.4 release post from December 2024. The same post introduced a router that sends each request to the server most likely to hold its prompt opening.
SGLang's own test gave that router up to 1.9x the throughput of round-robin routing, which hands requests to servers in turn. Both figures come from SGLang's team.
JarvisLabs found SGLang had the lowest decode latency in two of its long-prompt tests, with slower first tokens and lower throughput than vLLM in most runs.
SGLang reached about 16,200 tokens per second against vLLM's 12,500 in a batch test on one H100 with Meta's Llama 3.1 8B, according to Fish Audio. The post comes from a voice AI company that serves its own model on SGLang and doesn't name who ran the test.
The two tests used different models, prompts and methods, so read each result as a measure of its own setup. A batch figure fits offline jobs, where batch inference economics differ from live chat serving.
SGLang's creators spun the project out as RadixArk in January 2026 at a reported $400M valuation, in a round led by Accel, according to sources cited by TechCrunch.
TGI: A Serving Engine in Maintenance Mode
We'd keep TGI off new deployments. Hugging Face's documentation says TGI now takes minor bug fixes and light maintenance, and it recommends vLLM, SGLang, llama.cpp or MLX for new work.
TGI still runs on NVIDIA, AMD, Intel Gaudi, AWS Inferentia and Google TPU hardware, so an existing deployment can keep serving as the team plans its move. JarvisLabs left TGI out of its benchmark, so this comparison lacks recent TGI speed data.
How to Choose an Inference Serving Engine for Your Fleet
Your hardware and your traffic decide the choice. Start with the engine in the right column, then test it on your own prompts.
| Your situation | Engine to test first |
|---|---|
| Your fleet mixes NVIDIA with AMD, Intel, TPU or CPU machines | vLLM |
| Your fleet runs NVIDIA GPUs alone, and your team can rebuild engines per workload | TensorRT-LLM |
| Your traffic comes from agents or chats that resend long prompts | SGLang |
| Your apps depend on JSON output | Test vLLM and SGLang on your own schemas |
| You're planning a new deployment | Leave TGI off the list |
| You already run TGI | Keep it running and plan a move to vLLM or SGLang |
Our speed findings come from one JarvisLabs benchmark on H100 GPUs with Qwen models, and Fish Audio's figure contradicts part of that benchmark. Run your own prompts on your own hardware before you commit to an engine.
Whichever engine you pick still needs software that places it on GPUs. We run that layer with zWARE, our GPU cluster management software, which schedules inference jobs through a hardened Kubernetes and its own GPU-aware scheduler.
Inference Serving Engine FAQ
Can I move to another serving engine after launch?
Yes, because each of the four engines answers requests in OpenAI's API format, so your app code needs few changes. Plan to retune and rebenchmark on your own traffic after the switch.
