Skip to content

Commit ce67ceb

Browse files
authored
feat: Upgrade Pytorch to 1.12.1 and TensorRT to 8.4.3.1 (#1315)
Signed-off-by: Dheeraj Peri <[email protected]> Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 86c40cc commit ce67ceb

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.circleci/config.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -889,10 +889,10 @@ parameters:
889889
# Nightly platform config
890890
torch-nightly-build:
891891
type: string
892-
default: "1.13.0.dev20220810+cu113"
892+
default: "1.13.0.dev20220825+cu116"
893893
torch-nightly-build-index:
894894
type: string
895-
default: "https://download.pytorch.org/whl/nightly/cu113"
895+
default: "https://download.pytorch.org/whl/nightly/cu116"
896896
cudnn-nightly-version:
897897
type: string
898898
default: "8.4.1"
@@ -901,15 +901,15 @@ parameters:
901901
default: "8.4.1"
902902
trt-nightly-version-long:
903903
type: string
904-
default: "8.4.1.5"
904+
default: "8.4.3.1"
905905

906906
# Release platform config
907907
torch-release-build:
908908
type: string
909-
default: "1.12.0+cu113"
909+
default: "1.12.1+cu116"
910910
torch-release-build-index:
911911
type: string
912-
default: "https://download.pytorch.org/whl/cu113"
912+
default: "https://download.pytorch.org/whl/cu116"
913913
cudnn-release-version:
914914
type: string
915915
default: "8.4.1"
@@ -918,7 +918,7 @@ parameters:
918918
default: "8.4.1"
919919
trt-release-version-long:
920920
type: string
921-
default: "8.4.1.5"
921+
default: "8.4.3.1"
922922

923923
# Jetson platform config
924924
torch-jetson-build:

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ torch.jit.save(trt_ts_module, "trt_torchscript_module.ts") # save the TRT embedd
113113
These are the following dependencies used to verify the testcases. Torch-TensorRT can work with other versions, but the tests are not guaranteed to pass.
114114

115115
- Bazel 5.2.0
116-
- Libtorch 1.12.0 (built with CUDA 11.3)
117-
- CUDA 11.3
116+
- Libtorch 1.12.1 (built with CUDA 11.6)
117+
- CUDA 11.6
118118
- cuDNN 8.4.1
119-
- TensorRT 8.4.1.5
119+
- TensorRT 8.4.3.1
120120

121121
## Prebuilt Binaries and Wheel files
122122

WORKSPACE

+7-7
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ new_local_repository(
5656
http_archive(
5757
name = "libtorch",
5858
build_file = "@//third_party/libtorch:BUILD",
59-
sha256 = "80f089939de20e68e3fcad4dfa72a26c8bf91b5e77b11042f671f39ebac35865",
59+
sha256 = "5a392132fbff9db1482eae72a30f74b09f53a47edf8305fe9688d4ce7ddb0b6b",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.12.0%2Bcu113.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/cu116/libtorch-cxx11-abi-shared-with-deps-1.12.1%2Bcu116.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "8e35371403f7052d9e9b43bcff383980dbde4df028986dc1dab539953481d55f",
67+
sha256 = "5e044cc56a29cd4f3a7198c0fe5b2f0fa8f4c38cd71a0491274b6a914e8f24a7",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.12.0%2Bcu113.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu116/libtorch-shared-with-deps-1.12.1%2Bcu116.zip"],
7070
)
7171

7272
# Download these tarballs manually from the NVIDIA website
@@ -86,10 +86,10 @@ http_archive(
8686
http_archive(
8787
name = "tensorrt",
8888
build_file = "@//third_party/tensorrt/archive:BUILD",
89-
sha256 = "8107861af218694130f170e071f49814fa3e27f1386ce7cb6d807ac05a7fcf0e",
90-
strip_prefix = "TensorRT-8.4.1.5",
89+
sha256 = "8d7c2085c1639dcc73875048c23598a8526ce3089136876e31d90258e49e4f61",
90+
strip_prefix = "TensorRT-8.4.3.1",
9191
urls = [
92-
"https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.4.1/tars/tensorrt-8.4.1.5.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz",
92+
"https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.4.3/tars/tensorrt-8.4.3.1.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz",
9393
],
9494
)
9595

py/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
numpy
22
pybind11==2.6.2
3-
--extra-index-url https://download.pytorch.org/whl/cu113
4-
torch==1.12.0
3+
--extra-index-url https://download.pytorch.org/whl/cu116
4+
torch==1.12.1
55
--extra-index-url https://pypi.ngc.nvidia.com
6-
nvidia-tensorrt==8.4.1.5
6+
nvidia-tensorrt==8.4.3.1

0 commit comments

Comments
 (0)