-
NVIDIA DGX H200 System (8× H200 SXM, 1,128 GB HBM3e)
USD880,000
-
NVIDIA DGX H100 ( 8×H100 SXM5 AI Supercomputing Platform )
USD832,000
-
NVIDIA HGX B200 (8-GPU) Platform
USD624,000
-
NVIDIA DGX B200 (AI Supercomputer – 8× Blackwell B200 SXM5 GPUs, 2× Intel Xeon 8570, 2TB DDR5, 34TB NVMe)
USD960,000
-
NVIDIA Quantum-2 QM9790 InfiniBand Switch 64-Port 400Gb/s NDR
USD41,600
-
NVIDIA Quantum-2 QM9700
USD33,600
Products Mentioned in This Article
TensorRT-LLM vs vLLM: Choosing an Inference Engine for NVIDIA GPUs
TensorRT-LLM is NVIDIA’s own inference library, tuned deeply for NVIDIA GPUs and their newest precisions such as FP8 and FP4. vLLM is an open-source, community-driven engine that runs on many accelerators and is usually quicker to deploy and to support new models. On NVIDIA data center GPUs, TensorRT-LLM can deliver more from the same hardware once tuned; vLLM is often the better first choice when speed of deployment and flexibility matter more.

Where this comparison fits
If you are choosing between vLLM, Ollama and llama.cpp for a first server, start with our vLLM vs Ollama vs llama.cpp guide. This article is for the next step: you are serving models in production on NVIDIA GPUs and want to know whether NVIDIA’s own stack is worth the extra work.
How each engine is built
vLLM
vLLM started from PagedAttention, a way of storing the KV cache in fixed-size blocks so that memory is not wasted on padding and can be shared between requests. Around it the project built continuous batching, prefix caching, speculative decoding, tensor and pipeline parallelism, and an OpenAI-compatible server started with vllm serve. It loads most Hugging Face models directly. The vLLM documentation lists support for NVIDIA and AMD GPUs and other accelerators through plugins.
TensorRT-LLM
TensorRT-LLM began as a compiler that built an optimised TensorRT engine for each model and GPU. Recent releases are, in NVIDIA’s words, architected on PyTorch, with the older engine path still available. According to the TensorRT-LLM overview, it provides in-flight batching, a paged KV cache with block reuse, FP8 on Hopper, native FP4 on Blackwell, speculative decoding methods including EAGLE and MTP, and disaggregated serving that runs the prompt and generation phases on different GPUs. trtllm-serve exposes an OpenAI-style endpoint, and it plugs into NVIDIA’s Triton and Dynamo serving stacks.
Side by side
| Aspect | vLLM | TensorRT-LLM |
|---|---|---|
| Maintainer | Open-source community, many companies | NVIDIA (open source) |
| Hardware | NVIDIA, AMD and others | NVIDIA only |
| New model support | Usually fast, straight from Hugging Face | Good for major models; others may need work |
| Precision options | FP16/BF16, FP8, AWQ, GPTQ and more | FP16/BF16, FP8, FP4 (Blackwell), INT8/INT4 variants |
| Setup effort | Low: one command | Higher: more options to tune |
| Peak efficiency on NVIDIA | Strong | Often higher after tuning, especially on newest GPUs |
| Large-scale features | Disaggregation and multi-node support developing quickly | Disaggregated serving, deep NVLink and multi-node optimisation |
Both projects change fast. A feature gap this month may be closed next month, so read the release notes of the versions you plan to use.

What actually decides performance
Published comparisons disagree because they test different things. The factors that move results most are:
- Precision: an FP8 run against a BF16 run is not a fair comparison. On Blackwell, FP4 support is a major factor. See FP8 vs FP16.
- KV cache settings: the share of memory given to the cache, its precision and block reuse decide how many requests fit. Our KV cache guide explains the sizing.
- Concurrency and lengths: short prompts with long answers behave very differently from long documents with short answers.
- Parallel layout: tensor parallel degree and whether NVLink is present.
- Versions: both engines improve every release.
How to run a fair comparison
- Fix the model checkpoint, precision and GPU count for both engines.
- Use your real traffic shape: input and output token distributions from logs.
- Sweep concurrency, for example 1, 8, 32 and 128 simultaneous requests.
- Measure time to first token, time per output token (p50 and p99) and total tokens per second.
- Find the highest throughput that still meets your latency target. That is the number that matters.
- Check output quality on a sample, especially after quantization.
- Repeat with the next release before you commit.
Both projects ship benchmarking tools (vllm bench and trtllm-bench), but a load generator replaying your own requests is the most honest test. Convert the result into cost per million tokens, as described in our cost per token article.
Choosing
| Situation | Leaning |
|---|---|
| Mixed or non-NVIDIA hardware | vLLM |
| Many different models, changing often | vLLM |
| Small team, need it running this week | vLLM |
| One or a few flagship models at high volume on NVIDIA | TensorRT-LLM worth testing |
| Blackwell GPUs and FP4 | TensorRT-LLM worth testing; check vLLM’s current FP4 support |
| Large multi-node serving with disaggregation | Compare both; check current feature status |
Many teams do both: launch on vLLM, then move the highest-volume model to TensorRT-LLM once its API and traffic are stable and the measured saving justifies the engineering time.
Hardware notes
- Both engines gain most from GPUs with large, fast memory, because decode is bandwidth-bound.
- Tensor parallelism across several GPUs works best with NVLink.
- FP8 needs Ada, Hopper or Blackwell; FP4 tensor core support needs Blackwell.
- Keep driver and CUDA versions matched to the engine release you use.
Frequently asked questions
Is TensorRT-LLM always faster than vLLM?
No. It is often faster after tuning on NVIDIA data center GPUs, but results depend on model, precision, concurrency and version. Measure your case.
Do I still need to build engines for TensorRT-LLM?
Not necessarily. The PyTorch-based workflow loads models without a separate engine build. The older engine path is still available.
Are both OpenAI API compatible?
Yes, vllm serve and trtllm-serve both expose OpenAI-style endpoints, so client code can usually stay the same.
Can they use the same quantized checkpoints?
Sometimes. Formats and supported methods differ, so check each engine’s quantization documentation.
What about SGLang?
SGLang is another strong open-source engine with similar goals to vLLM. Include it in your benchmark if it supports your model.
Summary
vLLM is the flexible default; TensorRT-LLM is the NVIDIA specialist that can extract more from the same GPUs once tuned. Benchmark both with your real traffic and precision before deciding.
Last update at December 2025
