Skip to content

Commit 9a7f272

Browse files
authored
chore: cherrypick of #2855 (#3027)
1 parent f0086f9 commit 9a7f272

13 files changed

+30
-30
lines changed

README.md

+2-2
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.4-green)](https://www.python.org/downloads/release/python-31013/)
99
[![cuda](https://img.shields.io/badge/CUDA-12.4-green)](https://developer.nvidia.com/cuda-downloads)
10-
[![trt](https://img.shields.io/badge/TensorRT-10.0.1-green)](https://github.com/nvidia/tensorrt-llm)
10+
[![trt](https://img.shields.io/badge/TensorRT-10.1.0-green)](https://github.com/nvidia/tensorrt-llm)
1111
[![license](https://img.shields.io/badge/license-BSD--3--Clause-blue)](./LICENSE)
1212
[![linux_tests](https://github.com/pytorch/TensorRT/actions/workflows/build-test-linux.yml/badge.svg)](https://github.com/pytorch/TensorRT/actions/workflows/build-test-linux.yml)
1313
[![windows_tests](https://github.com/pytorch/TensorRT/actions/workflows/build-test-windows.yml/badge.svg)](https://github.com/pytorch/TensorRT/actions/workflows/build-test-windows.yml)
@@ -119,7 +119,7 @@ These are the following dependencies used to verify the testcases. Torch-TensorR
119119
- Bazel 6.3.2
120120
- Libtorch 2.5.0.dev (latest nightly) (built with CUDA 12.4)
121121
- CUDA 12.4
122-
- TensorRT 10.0.1.6
122+
- TensorRT 10.1.0.27
123123
124124
## Deprecation Policy
125125

WORKSPACE

+6-6
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ http_archive(
8484
http_archive(
8585
name = "tensorrt",
8686
build_file = "@//third_party/tensorrt/archive:BUILD",
87-
sha256 = "a5cd2863793d69187ce4c73b2fffc1f470ff28cfd91e3640017e53b8916453d5",
88-
strip_prefix = "TensorRT-10.0.1.6",
87+
sha256 = "606436ed219c72d1a25a889b2b0ae5cb5a68499dd6f944da4cabb3c34c067d55",
88+
strip_prefix = "TensorRT-10.1.0.27",
8989
urls = [
90-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/tars/TensorRT-10.0.1.6.Linux.x86_64-gnu.cuda-12.4.tar.gz",
90+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/tars/TensorRT-10.1.0.27.Linux.x86_64-gnu.cuda-12.4.tar.gz",
9191
],
9292
)
9393

9494
http_archive(
9595
name = "tensorrt_win",
9696
build_file = "@//third_party/tensorrt/archive:BUILD",
97-
sha256 = "d667bd10b178e239b621a8929008ef3e27967d181bf07a39845a0f99edeec47a",
98-
strip_prefix = "TensorRT-10.0.1.6",
97+
sha256 = "2eb98008944945377eb328871a308704e95bf3bb295fc548784c6da41a70bbed",
98+
strip_prefix = "TensorRT-10.1.0.27",
9999
urls = [
100-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/zip/TensorRT-10.0.1.6.Windows10.win10.cuda-12.4.zip",
100+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/zip/TensorRT-10.1.0.27.Windows.win10.cuda-12.4.zip",
101101
],
102102
)
103103

dev_dep_versions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__version__: "2.5.0.dev0"
22
__cuda_version__: "12.4"
3-
__tensorrt_version__: "10.0.1"
3+
__tensorrt_version__: "10.1.0"

docker/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Note: By default the container uses the `pre-cxx11-abi` version of Torch + Torch
1717

1818
### Instructions
1919

20-
- The example below uses TensorRT 10.0.1.6
20+
- The example below uses TensorRT 10.1.0.27
2121
- See <a href="https://github.com/pytorch/TensorRT#dependencies">dependencies</a> for a list of current default dependencies.
2222

2323
> From root of Torch-TensorRT repo
2424
2525
Build:
2626
```
27-
DOCKER_BUILDKIT=1 docker build --build-arg TENSORRT_VERSION=10.0.1 -f docker/Dockerfile -t torch_tensorrt:latest .
27+
DOCKER_BUILDKIT=1 docker build --build-arg TENSORRT_VERSION=10.1.0 -f docker/Dockerfile -t torch_tensorrt:latest .
2828
```
2929

3030
Run:

examples/dynamo/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cupy==13.1.0
2-
tensorrt==10.0.1
2+
tensorrt==10.1.0
33
torch>=2.4.0.dev20240503+cu121
44
torch-tensorrt>=2.4.0.dev20240503+cu121
55
triton==2.3.0

packaging/pre_build_script_windows.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pip install tensorrt==${TRT_VERSION} tensorrt-${CU_VERSION::4}-bindings==${TRT_V
88

99
choco install bazelisk -y
1010

11-
curl -Lo TensorRT.zip https://developer.download.nvidia.com/compute/machine-learning/tensorrt/10.0.1/zip/TensorRT-10.0.1.6.Windows10.win10.cuda-12.4.zip
11+
curl -Lo TensorRT.zip https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/zip/TensorRT-10.1.0.27.Windows.win10.cuda-12.4.zip
1212
unzip -o TensorRT.zip -d C:/
1313

1414
export CUDA_HOME="$(echo ${CUDA_PATH} | sed -e 's#\\#\/#g')"

packaging/smoke_test_script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# The issue was smoke test installs the built torch_tensorrt wheel file and checks `import torch_tensorrt; print(torch_tensorrt.__version__)`
33
# Since tensorrt cannot be pip installable in CI, the smoke test will fail.
44
# One way we tried to handle it is manually install tensorrt wheel while by extracting from the tarball.
5-
# However, the TensorRT-10.0.0.6/lib path doesn't seem to show up in LD_LIBRARY_PATH even if we explicitly set it.
5+
# However, the TensorRT-10.1.0.27/lib path doesn't seem to show up in LD_LIBRARY_PATH even if we explicitly set it.
66
# TODO: Implement a custom smoke_test script to verify torch_tensorrt installation.

py/ci/Dockerfile.ci

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ FROM pytorch/manylinux-builder:cuda12.4
33
RUN yum install -y ninja-build
44

55
# download TensorRT tarball
6-
RUN wget -q https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/tars/TensorRT-10.0.1.6.Linux.x86_64-gnu.cuda-12.4.tar.gz \
7-
&& gunzip TensorRT-10.0.1.6.Linux.x86_64-gnu.cuda-12.4.tar.gz \
8-
&& tar -xvf TensorRT-10.0.1.6.Linux.x86_64-gnu.cuda-12.4.tar \
9-
&& rm TensorRT-10.0.1.6.Linux.x86_64-gnu.cuda-12.4.tar
6+
RUN wget -q https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/tars/TensorRT-10.1.0.27.Linux.x86_64-gnu.cuda-12.4.tar.gz \
7+
&& gunzip TensorRT-10.1.0.27.Linux.x86_64-gnu.cuda-12.4.tar.gz \
8+
&& tar -xvf TensorRT-10.1.0.27.Linux.x86_64-gnu.cuda-12.4.tar \
9+
&& rm TensorRT-10.1.0.27.Linux.x86_64-gnu.cuda-12.4.tar
1010

11-
ENV TENSORRT_DIR=/TensorRT-10.0.1.6
12-
ENV TENSORRT_VERSION=10.0.1
11+
ENV TENSORRT_DIR=/TensorRT-10.1.0.27
12+
ENV TENSORRT_VERSION=10.1.0
1313

1414
RUN wget https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-amd64 \
1515
&& mv bazelisk-linux-amd64 /usr/bin/bazel \

py/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ torch>=2.4.0,<2.5.0
66
torchvision>=0.19.0,<0.20.0
77
--extra-index-url https://pypi.ngc.nvidia.com
88
pyyaml
9-
tensorrt==10.0.1
9+
tensorrt==10.1.0

pyproject.toml

+4-4
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==10.0.1",
11+
"tensorrt==10.1.0",
1212
"torch>=2.4.0,<2.5.0",
1313
"pybind11==2.6.2",
1414
"numpy",
@@ -42,9 +42,9 @@ requires-python = ">=3.8"
4242
keywords = ["pytorch", "torch", "tensorrt", "trt", "ai", "artificial intelligence", "ml", "machine learning", "dl", "deep learning", "compiler", "dynamo", "torchscript", "inference"]
4343
dependencies = [
4444
"torch>=2.4.0,<2.5.0",
45-
"tensorrt==10.0.1",
46-
"tensorrt-cu12_bindings==10.0.1",
47-
"tensorrt-cu12_libs==10.0.1",
45+
"tensorrt==10.1.0",
46+
"tensorrt-cu12_bindings==10.1.0",
47+
"tensorrt-cu12_libs==10.1.0",
4848
"packaging>=23",
4949
"numpy",
5050
"typing-extensions>=4.7.0",

tests/py/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ parameterized>=0.2.0
77
pytest>=8.2.1
88
pytest-xdist>=3.6.1
99
pyyaml
10-
tensorrt==10.0.1
10+
tensorrt==10.1.0
1111
timm>=1.0.3
1212
transformers==4.40.2
1313
--extra-index-url https://pypi.nvidia.com

toolchains/ci_workspaces/WORKSPACE.win.release.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ http_archive(
6363

6464
new_local_repository(
6565
name = "tensorrt_win",
66-
path = "C:/TensorRT-10.0.1.6",
66+
path = "C:/TensorRT-10.1.0.27",
6767
build_file = "@//third_party/tensorrt/local:BUILD"
6868
)
6969

toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ http_archive(
7171
http_archive(
7272
name = "tensorrt",
7373
build_file = "@//third_party/tensorrt/archive:BUILD",
74-
sha256 = "a5cd2863793d69187ce4c73b2fffc1f470ff28cfd91e3640017e53b8916453d5",
75-
strip_prefix = "TensorRT-10.0.1.6",
74+
sha256 = "606436ed219c72d1a25a889b2b0ae5cb5a68499dd6f944da4cabb3c34c067d55",
75+
strip_prefix = "TensorRT-10.1.0.27",
7676
urls = [
77-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/tars/TensorRT-10.0.1.6.Linux.x86_64-gnu.cuda-12.4.tar.gz",
77+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/tars/TensorRT-10.1.0.27.Linux.x86_64-gnu.cuda-12.4.tar.gz",
7878
],
7979
)
8080

0 commit comments

Comments
 (0)