Skip to content

vLLM vs SGLang vs TensorRT-LLM

Three open-source engines for serving LLMs to many users at once, all Apache 2.0. vLLM and SGLang run on several hardware makers’ chips; TensorRT-LLM is NVIDIA’s and targets NVIDIA GPUs. Every row restates each project’s own documentation, read 25 November 2026.

Side by side

FeaturevLLMSGLangTensorRT-LLM
What it isA Python library and server for LLM inference and serving, started at UC Berkeley’s Sky Computing Lab.An open-source inference framework for language, vision-language and diffusion models, optimised for agentic workloads, large-scale serving and RL rollouts.NVIDIA’s open-source library for optimising LLM and visual-generation inference on NVIDIA GPUs, built on PyTorch with a Python LLM API.
LicenseApache 2.0Apache 2.0Apache 2.0 (NVIDIA)
Operating systemsLinux (Python 3.11-3.14). Not supported natively on Windows (WSL works); macOS through vLLM-Metal on Apple Silicon.Install guides target Linux with NVIDIA GPUs (CUDA 13-compatible driver, Python 3.11+); other platforms have their own guides.Linux; the pip install is tested on Ubuntu 24.04. Pre-built release containers are also published.
HardwareNVIDIA, AMD and Intel GPUs; x86, ARM and PowerPC CPUs; plugins for Google TPUs, Intel Gaudi, Huawei Ascend, Apple Silicon and others.NVIDIA GPUs (from RTX 30 series to B300 and DGX Spark), AMD Instinct MI300X-MI355X, Google TPU v6e and v7, Intel Arc GPUs and Xeon CPUs, Apple Silicon via Metal/MLX, Huawei Ascend NPUs, Moore Threads MTT S5000.NVIDIA GPUs, from a single GPU to multi-GPU and multi-node.
Installpip or uv package (vllm); build from source.Docker image lmsysorg/sglang, or uv package (sglang).NVIDIA release container (nvcr.io/nvidia/tensorrt-llm/release), or pip package (tensorrt_llm) after the CUDA Toolkit and PyTorch.
API and default addressOpenAI-compatible server, plus Anthropic Messages API and gRPC, at http://localhost:8000. Hosts one model at a time.OpenAI-compatible API; the quickstart serves on port 30000 (http://localhost:30000/v1/chat/completions).trtllm-serve starts an OpenAI-compatible server (v1/chat/completions); the container example maps port 8000.
Serving featuresPagedAttention, continuous batching, chunked prefill, prefix caching, speculative decoding, disaggregated prefill and decode; tensor, pipeline, data, expert and context parallelism; multi-LoRA.RadixAttention, prefix caching and multi-GPU parallelism; built-in diffusion engine for image, video and audio.Custom attention, GEMM and MoE kernels, prefill-decode disaggregation, wide expert parallelism, speculative decoding; works with NVIDIA Dynamo and Triton Inference Server.
TelemetryNot covered in the pages read.Not covered in the pages read.Collects anonymous telemetry by default; opt out with TRTLLM_NO_USAGE_STATS=1, DO_NOT_TRACK=1 or --no-telemetry.

vLLM

A Python library and server for LLM inference and serving, started at UC Berkeley’s Sky Computing Lab.

uv pip install vllm
vllm serve Qwen/Qwen2.5-1.5B-Instruct

Sources: vLLM README, Quickstart, GPU installation

SGLang

An open-source inference framework for language, vision-language and diffusion models, optimised for agentic workloads, large-scale serving and RL rollouts.

docker pull lmsysorg/sglang:latest
# or
uv pip install --prerelease=allow sglang
sglang serve MODEL_PATH --host 0.0.0.0 --port 30000

Sources: SGLang README, SGLang docs, Quickstart

TensorRT-LLM

NVIDIA’s open-source library for optimising LLM and visual-generation inference on NVIDIA GPUs, built on PyTorch with a Python LLM API.

pip3 install tensorrt_llm
trtllm-serve "TinyLlama/TinyLlama-1.1B-Chat-v1.0"

Sources: TensorRT-LLM README, Quick start guide, Installation guide

Frequently asked questions

What is the difference between vLLM and SGLang?+

Both are Apache-licensed Python serving engines with OpenAI-compatible servers. vLLM is built around PagedAttention and serves on port 8000 by default; SGLang is built around RadixAttention, its quickstart serves on port 30000, and it includes a diffusion engine for image, video and audio models.

Does TensorRT-LLM only run on NVIDIA GPUs?+

Yes. NVIDIA describes it as a library for efficient inference on NVIDIA GPUs. vLLM and SGLang also list AMD and Intel hardware and Google TPUs.

Do these engines run on Windows?+

vLLM states it does not support Windows natively and can run under WSL. SGLang’s install guide and TensorRT-LLM’s pip install both target Linux.

Does TensorRT-LLM collect telemetry?+

Yes, anonymous telemetry is on by default. Its README lists opt-outs: the TRTLLM_NO_USAGE_STATS=1, DO_NOT_TRACK=1 or TELEMETRY_DISABLED=true environment variables, a do_not_track file, or the --no-telemetry flag.

Which one is fastest?+

This page does not rank them. Throughput depends on the model, hardware, batch size and settings, and the three projects publish their own benchmarks on different setups.

Related: Ollama vs LM Studio vs llama.cpp vs vLLM · GPU cloud pricing · local LLM hardware requirements · running open models with llama.cpp, Ollama and vLLM