tensorrt-cu13-bindings provides Python bindings for NVIDIA's TensorRT, a high-performance deep learning inference library. It enables developers to optimize, validate, and deploy trained deep learning models on NVIDIA GPUs. The library is actively maintained with frequent minor releases, typically on a monthly to bi-monthly cadence, aligned with new TensorRT versions and CUDA compatibility updates.
pip install tensorrt-cu13-bindingsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the TensorRT logger, create a builder and network, define a simple input and output, and build a serialized engine. This process is fundamental for converting a deep learning model into a TensorRT optimized engine. Note that actual inference would require creating an `IExecutionContext` and managing device memory.
Ensure your system's CUDA Toolkit and Python environment meet the requirements for the specific `tensorrt-cuXX-bindings` package you install. The `cuXX` suffix indicates the compatible CUDA major version.
To access TensorRT samples, clone or download them directly from the official NVIDIA/TensorRT GitHub repository (github.com/nvidia/tensorrt).
If developing custom plugins or using older models, ensure your plugins are updated to implement `IPluginV3` or compatible versions to avoid issues with future TensorRT releases. Refer to the TensorRT Plugin Developer Guide.
Verify your system's CUDA Toolkit version and NVIDIA driver compatibility before installing. Install the `tensorrt-cuXX-bindings` package that matches your installed CUDA version. E.g., for CUDA 12, use `tensorrt-cu12-bindings`.