Registry / ai-ml / tensorrt-cu13-bindings

tensorrt-cu13-bindings

JSON →
library11.1.0.106pypypiunverified

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-bindings
INSTALL
IMPORT
SIG · TENSORRT-CU13-BIND
T
tensorrt-cu13-bindings
ai-mlpythonv11.1.0.106
Install
1.7s avg
Import
Disk
22MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v11.1.0.106 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
build_error
glibc
py 3.103.910 runs
installs and imports cleanly · install 1.7s · import 0.000s · 24MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tensorrt_bindings
import tensorrt_bindings
import tensorrt_bindings as trt

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.

import tensorrt as trt import numpy as np # A simple example: create a dummy network and engine TRT_LOGGER = trt.Logger(trt.Logger.WARNING) def build_engine(): builder = trt.Builder(TRT_LOGGER) network = builder.create_network(1 << int(trt.NetworkDefinitionCreationFlag.EXPLICIT_BATCH)) config = builder.create_builder_config() # Define input tensor input_tensor = network.add_input(name='input_data', dtype=trt.float32, shape=(1, 3, 224, 224)) # Define a simple operation (e.g., identity for demonstration) output_tensor = input_tensor # Mark output network.mark_output(output_tensor) # Build engine (requires GPU and sufficient memory) print("Building TensorRT engine...") serialized_engine = builder.build_serialized_network(network, config) if serialized_engine is None: raise RuntimeError("Failed to build TensorRT engine.") print("Engine built successfully.") return serialized_engine if __name__ == '__main__': try: serialized_engine = build_engine() runtime = trt.Runtime(TRT_LOGGER) engine = runtime.deserialize_cuda_engine(serialized_engine) print(f"Engine name: {engine.name}") print(f"Number of bindings: {engine.num_bindings}") except Exception as e: print(f"An error occurred: {e}") print("Ensure you have a compatible NVIDIA GPU, CUDA Toolkit, and cuDNN installed.")
Debug
Known issues
breakingTensorRT regularly updates its required CUDA and Python versions. Version 10.13.2 dropped support for CUDA 11.x and Python < 3.10 for samples/demos, and v10.16 defaulted to CUDA 13.2. Always check the release notes for your specific package version.
fix
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.
affects: >=10.13.2
breakingAs of TensorRT 10.14, sample code is no longer included with the PyPI packages. They are now exclusively hosted in the TensorRT GitHub repository.
fix
To access TensorRT samples, clone or download them directly from the official NVIDIA/TensorRT GitHub repository (github.com/nvidia/tensorrt).
affects: >=10.14
deprecatedTensorRT has been gradually migrating plugins from `IPluginV2`-descendent versions to `IPluginV3`. Older plugin versions are deprecated and will be removed in future releases.
fix
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.
affects: >=10.11
gotchaThe `tensorrt-cuXX-bindings` package name explicitly ties it to a major CUDA version (e.g., `cu13` for CUDA 13.x). Installing a package that doesn't match your system's CUDA installation (or driver compatibility) will lead to runtime errors.
fix
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`.
affects: All versions
Upgrade
Version history
11.1.0.106latest on PyPI · released Jun 16, 2026
Audit
Dependencies
NVIDIA GPUrequiredTensorRT is a GPU acceleration library.
NVIDIA CUDA Toolkit (13.x recommended)requiredTensorRT relies on CUDA for GPU acceleration. The `cu13` in the package name specifies CUDA 13 compatibility.
NVIDIA cuDNNrequiredMany TensorRT operations leverage cuDNN for optimized deep learning primitives.
Agent activity
61 hits · last 30 days
node
58
OpenAI (training)
1
Resources
tensorrt-cu13-bindings — pip install tensorrt-cu13-bindings · libregistry