Skip to content

Commit f09be72

Browse files
Upgrade to TensorRT 10.11 (#3557)
1 parent bfedc3c commit f09be72

File tree

9 files changed

+2154
-1619
lines changed

9 files changed

+2154
-1619
lines changed

.github/scripts/generate-tensorrt-test-matrix.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
"urls": "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/zip/TensorRT-10.9.0.34.Windows.win10.cuda-12.8.zip",
4545
"strip_prefix": "TensorRT-10.9.0.34",
4646
},
47+
"10.10.0": {
48+
"urls": "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.10.0/zip/TensorRT-10.10.0.31.Windows.win10.cuda-12.9.zip",
49+
"strip_prefix": "TensorRT-10.10.0.31",
50+
},
51+
"10.11.0": {
52+
"urls": "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/zip/TensorRT-10.11.0.33.Windows.win10.cuda-12.9.zip",
53+
"strip_prefix": "TensorRT-10.11.0.33",
54+
},
4755
},
4856
"linux": {
4957
"10.3.0": {
@@ -62,13 +70,22 @@
6270
"urls": "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/tars/TensorRT-10.9.0.34.Linux.x86_64-gnu.cuda-12.8.tar.gz",
6371
"strip_prefix": "TensorRT-10.9.0.34",
6472
},
73+
"10.10.0": {
74+
"urls": "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.10.0/tars/TensorRT-10.10.0.31.Linux.x86_64-gnu.cuda-12.9.tar.gz",
75+
"strip_prefix": "TensorRT-10.10.0.31",
76+
},
77+
"10.11.0": {
78+
"urls": "https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/tars/TensorRT-10.11.0.33.Linux.x86_64-gnu.cuda-12.9.tar.gz",
79+
"strip_prefix": "TensorRT-10.11.0.33",
80+
},
6581
},
6682
}
6783

6884

6985
def check_new_tensorrt_version(
7086
major: int = 10, patch_from: int = 0
7187
) -> tuple[bool, str, str, str, str]:
88+
7289
def check_file_availability(url: str) -> bool:
7390
try:
7491
response = requests.head(url, allow_redirects=True)

MODULE.bazel

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ http_archive(
9090
http_archive(
9191
name = "torch_l4t",
9292
build_file = "@//third_party/libtorch:BUILD",
93+
sha256 = "6eff643c0a7acda92734cc798338f733ff35c7df1a4434576f5ff7c66fc97319",
9394
strip_prefix = "torch",
9495
type = "zip",
9596
urls = ["https://pypi.jetson-ai-lab.dev/jp6/cu126/+f/6ef/f643c0a7acda9/torch-2.7.0-cp310-cp310-linux_aarch64.whl"],
96-
sha256 = "6eff643c0a7acda92734cc798338f733ff35c7df1a4434576f5ff7c66fc97319"
9797
)
9898

9999
# Download these tarballs manually from the NVIDIA website
@@ -103,18 +103,18 @@ http_archive(
103103
http_archive(
104104
name = "tensorrt",
105105
build_file = "@//third_party/tensorrt/archive:BUILD",
106-
strip_prefix = "TensorRT-10.9.0.34",
106+
strip_prefix = "TensorRT-10.11.0.33",
107107
urls = [
108-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/tars/TensorRT-10.9.0.34.Linux.x86_64-gnu.cuda-12.8.tar.gz",
108+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/tars/TensorRT-10.11.0.33.Linux.x86_64-gnu.cuda-12.9.tar.gz",
109109
],
110110
)
111111

112112
http_archive(
113113
name = "tensorrt_sbsa",
114114
build_file = "@//third_party/tensorrt/archive:BUILD",
115-
strip_prefix = "TensorRT-10.9.0.34",
115+
strip_prefix = "TensorRT-10.11.0.33",
116116
urls = [
117-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/tars/TensorRT-10.9.0.34.Linux.aarch64-gnu.cuda-12.8.tar.gz",
117+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/tars/TensorRT-10.11.0.33.Linux.aarch64-gnu.cuda-12.9.tar.gz",
118118
],
119119
)
120120

@@ -130,9 +130,9 @@ http_archive(
130130
http_archive(
131131
name = "tensorrt_win",
132132
build_file = "@//third_party/tensorrt/archive:BUILD",
133-
strip_prefix = "TensorRT-10.9.0.34",
133+
strip_prefix = "TensorRT-10.11.0.33",
134134
urls = [
135-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/zip/TensorRT-10.9.0.34.Windows.win10.cuda-12.8.zip",
135+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/zip/TensorRT-10.11.0.33.Windows.win10.cuda-12.9.zip",
136136
],
137137
)
138138

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Torch-TensorRT
77
[![Documentation](https://img.shields.io/badge/docs-master-brightgreen)](https://nvidia.github.io/Torch-TensorRT/)
88
[![pytorch](https://img.shields.io/badge/PyTorch-2.8-green)](https://download.pytorch.org/whl/nightly/cu128)
99
[![cuda](https://img.shields.io/badge/CUDA-12.8-green)](https://developer.nvidia.com/cuda-downloads)
10-
[![trt](https://img.shields.io/badge/TensorRT-10.9.0-green)](https://github.com/nvidia/tensorrt-llm)
10+
[![trt](https://img.shields.io/badge/TensorRT-10.11.0-green)](https://github.com/nvidia/tensorrt-llm)
1111
[![license](https://img.shields.io/badge/license-BSD--3--Clause-blue)](./LICENSE)
1212
[![Linux x86-64 Nightly Wheels](https://github.com/pytorch/TensorRT/actions/workflows/build-test-linux-x86_64.yml/badge.svg?branch=nightly)](https://github.com/pytorch/TensorRT/actions/workflows/build-test-linux-x86_64.yml)
1313
[![Linux SBSA Nightly Wheels](https://github.com/pytorch/TensorRT/actions/workflows/build-test-linux-aarch64.yml/badge.svg?branch=nightly)](https://github.com/pytorch/TensorRT/actions/workflows/build-test-linux-aarch64.yml)
@@ -120,8 +120,8 @@ These are the following dependencies used to verify the testcases. Torch-TensorR
120120
121121
- Bazel 8.1.1
122122
- Libtorch 2.8.0.dev (latest nightly)
123-
- CUDA 12.8 (CUDA 12.6 on Jetson)
124-
- TensorRT 10.9 (TensorRT 10.3 on Jetson)
123+
- CUDA 12.8 (CUDA 12.6 on Jetson)
124+
- TensorRT 10.11 (TensorRT 10.3 on Jetson)
125125
126126
## Deprecation Policy
127127

dev_dep_versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__cuda_version__: "12.8"
2-
__tensorrt_version__: "10.9.0"
2+
__tensorrt_version__: "10.11.0"

docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
### Instructions
1717

18-
- The example below uses TensorRT 10.9.0.34
18+
- The example below uses TensorRT 10.11.0.33
1919
- See <a href="https://github.com/pytorch/TensorRT#dependencies">dependencies</a> for a list of current default dependencies.
2020

2121
> From root of Torch-TensorRT repo
2222
2323
Build:
2424
```
25-
DOCKER_BUILDKIT=1 docker build --build-arg TENSORRT_VERSION=10.9.0 -f docker/Dockerfile -t torch_tensorrt:latest .
25+
DOCKER_BUILDKIT=1 docker build --build-arg TENSORRT_VERSION=10.11.0 -f docker/Dockerfile -t torch_tensorrt:latest .
2626
```
2727

2828
Run:

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requires = [
88
"cffi>=1.15.1",
99
"typing-extensions>=4.7.0",
1010
"future>=0.18.3",
11-
"tensorrt-cu12>=10.9.0,<10.10.0; 'tegra' not in platform_release",
11+
"tensorrt-cu12>=10.11.0,<10.12.0; 'tegra' not in platform_release",
1212
"tensorrt>=10.3.0,<10.4.0; 'tegra' in platform_release",
1313
"torch>=2.8.0.dev,<2.9.0; 'tegra' not in platform_release",
1414
"torch>=2.7.0,<2.8.0; 'tegra' in platform_release",
@@ -61,12 +61,12 @@ dependencies = [
6161
"torch>=2.8.0.dev,<2.9.0; 'tegra' not in platform_release",
6262
"torch>=2.7.0,<2.8.0; 'tegra' in platform_release",
6363

64-
"tensorrt>=10.9.0,<10.10.0; 'tegra' not in platform_release",
64+
"tensorrt>=10.11.0,<10.12.0; 'tegra' not in platform_release",
6565
"tensorrt>=10.3.0,<10.4.0; 'tegra' in platform_release",
6666

67-
"tensorrt-cu12>=10.9.0,<10.10.0; 'tegra' not in platform_release",
68-
"tensorrt-cu12-bindings>=10.9.0,<10.10.0; 'tegra' not in platform_release",
69-
"tensorrt-cu12-libs>=10.9.0,<10.10.0; 'tegra' not in platform_release",
67+
"tensorrt-cu12>=10.11.0,<10.12.0; 'tegra' not in platform_release",
68+
"tensorrt-cu12-bindings>=10.11.0,<10.12.0; 'tegra' not in platform_release",
69+
"tensorrt-cu12-libs>=10.11.0,<10.12.0; 'tegra' not in platform_release",
7070

7171
"packaging>=23",
7272

@@ -101,7 +101,6 @@ torchvision = [
101101
quantization = ["nvidia-modelopt[all]>=0.27.1"]
102102
monitoring-tools = ["rich>=13.7.1"]
103103
jupyter = ["rich[jupyter]>=13.7.1"]
104-
distributed = ["tensorrt-llm>=0.16.0"]
105104

106105
[project.urls]
107106
Homepage = "https://pytorch.org/tensorrt"

tests/py/dynamo/runtime/test_000_compilation_settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import unittest
2+
from importlib import metadata
23

34
import tensorrt as trt
45
import torch
56
import torch_tensorrt
67
from torch.testing._internal.common_utils import TestCase, run_tests
78
from torch_tensorrt.dynamo.utils import is_tegra_platform
89

10+
from packaging.version import Version
11+
912
from ..testing_utilities import DECIMALS_OF_AGREEMENT
1013

1114

@@ -58,7 +61,7 @@ def forward(self, x):
5861
torch._dynamo.reset()
5962

6063
@unittest.skipIf(
61-
is_tegra_platform() and trt._version_ > "10.8",
64+
is_tegra_platform() and Version(metadata.version("tensorrt")) > Version("10.8"),
6265
"DLA is not supported on Jetson platform starting TRT 10.8",
6366
)
6467
def test_dla_args(self):

toolchains/ci_workspaces/MODULE.bazel.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
7575
http_archive(
7676
name = "tensorrt",
7777
build_file = "@//third_party/tensorrt/archive:BUILD",
78-
strip_prefix = "TensorRT-10.9.0.34",
78+
strip_prefix = "TensorRT-10.11.0.33",
7979
urls = [
80-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/tars/TensorRT-10.9.0.34.Linux.x86_64-gnu.cuda-12.8.tar.gz",
80+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/tars/TensorRT-10.11.0.33.Linux.x86_64-gnu.cuda-12.9.tar.gz",
8181
],
8282
)
8383

8484
http_archive(
8585
name = "tensorrt_sbsa",
8686
build_file = "@//third_party/tensorrt/archive:BUILD",
87-
strip_prefix = "TensorRT-10.9.0.34",
87+
strip_prefix = "TensorRT-10.11.0.33",
8888
urls = [
89-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/tars/TensorRT-10.9.0.34.Linux.aarch64-gnu.cuda-12.8.tar.gz",
89+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/tars/TensorRT-10.11.0.33.Linux.aarch64-gnu.cuda-12.9.tar.gz",
9090
],
9191
)
9292

@@ -102,9 +102,9 @@ http_archive(
102102
http_archive(
103103
name = "tensorrt_win",
104104
build_file = "@//third_party/tensorrt/archive:BUILD",
105-
strip_prefix = "TensorRT-10.9.0.34",
105+
strip_prefix = "TensorRT-10.11.0.33",
106106
urls = [
107-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.9.0/zip/TensorRT-10.9.0.34.Windows.win10.cuda-12.8.zip",
107+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.11.0/zip/TensorRT-10.11.0.33.Windows.win10.cuda-12.9.zip",
108108
],
109109
)
110110

0 commit comments

Comments
 (0)