TensorRT-LLM vs sglang
TensorRT-LLM and sglang share 29 technologies: FastAPI, blobfile, pyzmq, OpenAI, uvicorn, apache-tvm-ffi, cuda-python, flashinfer-python, NVIDIA, openai-harmony, quack-kernels, sentencepiece, tiktoken, torch-c-dlpack-ext, torch, transformers, einops, torchvision, datasets, xgrammar, mistral-common, partial-json-parser, llguidance, pillow, Pydantic, msgspec, psutil, prometheus-client, and OpenTelemetry. Both are written in Python.
What they share and what sets them apart
TensorRT-LLM
TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way.
Python15kRead on November 8, 2026, at commit b433473What is TensorRT-LLM built with?Only in TensorRT-LLM
h5py
- anyio
starlette
- Rich
matplotlib
- Plotly
accelerate
flash-linear-attention
nvidia-cudnn-frontend
openai-codex
optimum
- rouge
rouge-score
torchao
- triton
diffusers
safetensors
- flash-attn
librosa
- MCP
- tritonclient
evaluate
lm-eval
peft
- jsonlines
- jinja2
- mako
- jsonschema
- opentelemetry-api
- opentelemetry-semantic-conventions-ai
- boto3
- opentelemetry-sdk
- prometheus-fastapi-instrumentator
In common
- FastAPI
- blobfile
- pyzmq
OpenAIuvicorn
apache-tvm-ffi
- cuda-python
flashinfer-python
- NVIDIA
- openai-harmony
- quack-kernels
- sentencepiece
- tiktoken
- torch-c-dlpack-ext
- torch
- transformers
- einops
torchvision
- datasets
xgrammar
- mistral-common
partial-json-parser
- llguidance
pillow
- Pydantic
msgspec
psutil
prometheus-client
- OpenTelemetry
sglang
SGLang is a high-performance serving framework for large language models and multimodal models.
Python38.5kRead on November 6, 2026, at commit 0afb736What is sglang built with?Only in sglang
- axum
- tower
- axum-server
- Redis
- Anthropic
- Tokio
- AIOHTTP
- wasmtime
- indicatif
- jsonwebtoken
- humming-kernels
- compressed-tensors
- gguf
tokenizers
- ModelScope
- tch
torchaudio
- hf-hub
- rmcp
timm
minijinja
av
- torchcodec
- image
validator
tracing
tracing-subscriber
- k8s-openapi
kube
- metrics
tracing-appender
- metrics-exporter-prometheus
opentelemetry-otlp
tracing-log
- tracing-opentelemetry
Side by side
Frequently asked questions
Which is bigger, TensorRT-LLM or sglang?
The proof: sgl-project/sglang's code at commit 0afb736
Which has more GitHub stars, TensorRT-LLM or sglang?
The proof: sgl-project/sglang on GitHub
Which has more tests, TensorRT-LLM or sglang?
The proof: sgl-project/sglang's code at commit 0afb736
Which was updated more recently, TensorRT-LLM or sglang?
The proof: NVIDIA/TensorRT-LLM's commits on GitHub
Which has more commits signed by AI, TensorRT-LLM or sglang?
The proof: the commits each tool signed in sgl-project/sglang
See inside your code, today.
Paste your repo and see it drawn, part by part: a medium one in under a minute.
Free, no account.

