TensorRT README

The project's README from github.com/NVIDIA/TensorRT. As one markdown file: README.md.

License Documentation Roadmap

:mega::mega: Announcement :mega::mega:

TensorRT 11.X is now released with powerful new capabilities designed to accelerate your AI inference workflows. With this major version bump, TensorRT's API has been streamlined and a few legacy features from 10.X have been removed.

Below provides migration guides for the following features:

TensorRT Open Source Software

This repository contains the Open Source Software (OSS) components of NVIDIA TensorRT. It includes the sources for TensorRT plugins and ONNX parser, as well as sample applications demonstrating usage and capabilities of the TensorRT platform. These open source software components are a subset of the TensorRT General Availability (GA) release with some extensions and bug-fixes.

Need enterprise support? NVIDIA global support is available for TensorRT with the NVIDIA AI Enterprise software suite. Check out NVIDIA LaunchPad for free access to a set of hands-on labs with TensorRT hosted on NVIDIA infrastructure.

Join the TensorRT and Triton community and stay current on the latest product updates, bug fixes, content, best practices, and more.

Agentic Coding Skills

Various skills related to TensorRT usage and benchmarking are available here. For installation, refer to the instructions of your preferred coding agent.

Prebuilt TensorRT Python Package

We provide the TensorRT Python package for an easy installation.
To install:

pip install tensorrt

You can skip the Build section to enjoy TensorRT with Python.

Build

Prerequisites

To build the TensorRT-OSS components, you will first need the following software packages.

TensorRT GA build

System Packages

Optional Packages

Downloading TensorRT Build

  1. Download TensorRT OSS

    git clone -b main https://github.com/nvidia/TensorRT TensorRT
    cd TensorRT
    git submodule update --init --recursive
    
  2. (Optional - if not using TensorRT container) Specify the TensorRT GA release build path

    If using the TensorRT OSS build container, TensorRT libraries are preinstalled under /usr/lib/x86_64-linux-gnu and you may skip this step.

    Else download and extract the TensorRT GA build from NVIDIA Developer Zone with the direct links below:

    Example: Ubuntu 22.04 on x86-64 with cuda-13.3

    cd ~/Downloads
    tar --zstd -xvf TensorRT-Enterprise-11.2.1.2-Linux-x86_64-cuda-13.3-Release-external.tar.zst
    export TRT_LIBPATH=`pwd`/TensorRT-11.2.1.2/lib
    

    Example: Windows on x86-64 with cuda-12.9

    Expand-Archive -Path TensorRT-Enterprise-11.2.1.2-Windows-amd64-cuda-12.9-Release-external.zip
    $env:TRT_LIBPATH="$pwd\TensorRT-11.2.1.2\lib"
    

Setting Up The Build Environment

For Linux platforms, we recommend that you generate a docker container for building TensorRT OSS as described below. For native builds, please install the prerequisite System Packages.

  1. Generate the TensorRT-OSS build container.

    Example: Ubuntu 24.04 on x86-64 with cuda-13.3 (default)

    ./docker/build.sh --file docker/ubuntu-24.04.Dockerfile --tag tensorrt-ubuntu24.04-cuda13.3
    

    Example: Rockylinux8 on x86-64 with cuda-13.3

    ./docker/build.sh --file docker/rockylinux8.Dockerfile --tag tensorrt-rockylinux8-cuda13.3
    

    Example: Ubuntu 24.04 cross-compile for Jetson (aarch64) with cuda-13.3 (JetPack SDK)

    ./docker/build.sh --file docker/ubuntu-cross-aarch64.Dockerfile --tag tensorrt-jetpack-cuda13.3
    

    Example: Ubuntu 24.04 on aarch64 with cuda-13.3

    ./docker/build.sh --file docker/ubuntu-24.04-aarch64.Dockerfile --tag tensorrt-aarch64-ubuntu24.04-cuda13.3
    
  2. Launch the TensorRT-OSS build container.

    Example: Ubuntu 24.04 build container

    ./docker/launch.sh --tag tensorrt-ubuntu24.04-cuda13.3 --gpus all
    

    NOTE:
    1. Use the --tag corresponding to build container generated in Step 1.
    2. NVIDIA Container Toolkit is required for GPU access (running TensorRT applications) inside the build container.
    3. sudo password for Ubuntu build containers is 'nvidia'.
    4. Specify port number using --jupyter <port> for launching Jupyter notebooks.
    5. Write permission to this folder is required as this folder will be mounted inside the docker container for uid:gid of 1000:1000.

Building TensorRT-OSS

Building TensorRT DriveOS Samples

References

TensorRT Resources

Known Issues

TensorRT (NVIDIA/TensorRT)

Searching Database…

13.4K ·GitHub
What is this?TensorRT is NVIDIA's SDK for high-performance deep learning inference on NVIDIA GPUs. This repository holds the open source components: plugins, the ONNX parser, and sample applications that demonstrate TensorRT usage.
Is this the full TensorRT engine or just the open-source pieces?Just a subset: the open-source plugins, ONNX parser, and samples. The core TensorRT GA (closed-source) libraries still need to be downloaded separately from NVIDIA.
How do I get TensorRT running?Easiest path is installing the prebuilt TensorRT Python package to skip building entirely. To build the OSS components yourself, download this repo and the matching TensorRT GA build, then generate and launch a Docker build container (or build natively) and run CMake with TRTLIBDIR/TRTOUTDIR pointing to your TensorRT installation.
What do I need installed before building this?CUDA (13.3.0 or 12.9.0 recommended), optional cuDNN 8.9, GNU make >= 4.1, CMake >= 3.31, Python >= 3.10, plus git/pkg-config/wget. NCCL and NVIDIA Container Toolkit are optional for multi-device/GPU-in-container builds.
Any pitfalls with the build or the latest version?TensorRT 11.X removed several legacy APIs (weakly-typed networks, implicit quantization, IPluginV2, TREX tool, Python 3.9 and older bindings), so older workflows need migration. Native aarch64 protobuf builds also require explicitly setting the C compiler via CC=.
Who needs this, and does it require an NVIDIA GPU?It's for developers deploying deep learning models for fast inference, and it is NVIDIA-GPU specific, built on CUDA/cuDNN with optional NCCL for multi-device setups.
Does it work on both Linux and Windows, including ARM devices like Jetson?Yes — there are build examples for Ubuntu/RockyLinux x86-64, native Windows x86, and cross-compilation for Jetson and DriveOS aarch64 targets.
Do I need a specific CUDA/cuDNN version?Yes, it targets specific recommended CUDA versions (13.3.0 or 12.9.0) and cuDNN 8.9; you can override the CUDA version via -DCUDAVERSION= in CMake.
What is the Import Workflows Guide for?It's a step-by-step walkthrough for importing models into TensorRT via ONNX, Torch-TensorRT, HuggingFace/Optimum, or the Network Definition API, with examples and tooling tips.
Where can I check if my model type is supported?The repo links a per-model support matrix covering LLM, encoder-NLP, vision, audio, diffusion, and multimodal models across each import path.
What replaced the removed TREX profiling tool?Nsight Deep Learning Designer now takes over the profiling/visualization role that TREX used to provide.
Is there enterprise support available?Yes, NVIDIA offers enterprise support for TensorRT through the NVIDIA AI Enterprise software suite, plus free hands-on labs via NVIDIA LaunchPad.
Creator
NVIDIA
Size
144.8 MB
Stars
13.4K
Age
7y
Commits · 90 Days