talira

TensorRT-LLM

Optimized LLM and visual generation inference on NVIDIA GPUs

open sourceApache-2.0self-hostablefree

TensorRT-LLM (written TensorRT LLM by NVIDIA) is NVIDIA's open source library for optimizing large language model and visual generation inference on NVIDIA GPUs. Built on PyTorch, it adds custom kernels for attention, GEMMs and mixture-of-experts layers, in-flight batching, paged KV cache, prefill-decode disaggregation, wide expert parallelism and speculative decoding, with FP8, FP4, INT8 and INT4 quantization, through a Python LLM API that scales from one GPU to multi-node deployments. trtllm-serve starts an OpenAI-compatible server, and NVIDIA publishes a release container on NGC. It became fully open source on GitHub in March 2025 under Apache-2.0 and runs only on Linux (x86_64 or aarch64) with NVIDIA Ampere, Ada, Hopper or Blackwell GPUs.

Problems it solves

  • squeeze the most tokens per second out of our NVIDIA H100 or B200 GPUs for LLM serving
  • lowest latency inference for a self-hosted LLM on NVIDIA hardware
  • serve DeepSeek or Llama with FP8 or FP4 quantization on Blackwell GPUs
  • an OpenAI-compatible server for an open model optimized specifically for NVIDIA GPUs
  • split prefill and decode across GPUs to serve a large model at scale
  • serve a huge mixture-of-experts model across a GB200 NVL72 rack with expert parallelism
  • speed up generation with speculative decoding on our NVIDIA inference servers
  • run LLM inference from Python with optimized CUDA kernels without writing them myself

Features

  • custom kernels for attention, GEMMs and mixture-of-experts
  • Python LLM API from single GPU to multi-GPU and multi-node
  • trtllm-serve OpenAI-compatible server
  • prefill-decode disaggregation
  • wide expert parallelism
  • speculative decoding (including MTP and n-gram)
  • FP8, FP4 (NVFP4), INT8 and INT4 quantization
  • visual generation (diffusion) models
  • pre-built release container on NGC
  • PyTorch-native architecture for customizing models and the runtime

Limitations

  • Doesn't run on AMD, Intel or Apple GPUs: TensorRT-LLM supports only NVIDIA GPUs (Ampere and newer are tested)12
  • Doesn't run on Windows or macOS: it requires Linux on x86_64 or aarch641

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what TensorRT-LLM does.

  1. SGLang Fast inference for LLMs and multimodal models
  2. vLLM A high-throughput and memory-efficient inference and serving engine for LLMs
  3. NVIDIA Dynamo-Triton Open source inference serving software that deploys AI models from any major framework
  4. llama.cpp LLM inference in C/C++

Compare TensorRT-LLM with the top 3