Skip to content

Commit 3059c5b

Browse files
committed
feat: Upgrade Pytorch and TensorRT versions
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 248793d commit 3059c5b

File tree

7 files changed

+30
-31
lines changed

7 files changed

+30
-31
lines changed

.circleci/config.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,22 @@ commands:
149149
default: "amd64"
150150
cuda-pkg-name:
151151
type: string
152-
default: "cuda-toolkit-11-7"
152+
default: "cuda-toolkit-11-8"
153153
cuda-pkg-version:
154154
type: string
155-
default: "11-7"
155+
default: "11-8"
156156
cuda-version:
157157
type: string
158-
default: "11.7.1"
158+
default: "11.8.0"
159159
steps:
160160
- run:
161161
name: Install CUDA
162162
command: |
163163
cd ~
164164
wget https://developer.download.nvidia.com/compute/cuda/repos/<< parameters.os >>/<< parameters.platform >>/cuda-<< parameters.os >>.pin
165165
sudo mv cuda-<< parameters.os >>.pin /etc/apt/preferences.d/cuda-repository-pin-600
166-
wget https://developer.download.nvidia.com/compute/cuda/<< parameters.cuda-version >>/local_installers/cuda-repo-ubuntu2004-<< parameters.cuda-pkg-version >>-local_<< parameters.cuda-version >>-515.65.01-1_<< parameters.architecture >>.deb
167-
sudo dpkg -i cuda-repo-ubuntu2004-<< parameters.cuda-pkg-version >>-local_<< parameters.cuda-version >>-515.65.01-1_<< parameters.architecture >>.deb
166+
wget https://developer.download.nvidia.com/compute/cuda/<< parameters.cuda-version >>/local_installers/cuda-repo-ubuntu2004-<< parameters.cuda-pkg-version >>-local_<< parameters.cuda-version >>-520.61.05-1_<< parameters.architecture >>.deb
167+
sudo dpkg -i cuda-repo-ubuntu2004-<< parameters.cuda-pkg-version >>-local_<< parameters.cuda-version >>-520.61.05-1_<< parameters.architecture >>.deb
168168
sudo cp /var/cuda-repo-ubuntu2004-<< parameters.cuda-pkg-version >>-local/cuda-*-keyring.gpg /usr/share/keyrings/
169169
sudo apt-get update
170170
sudo apt-get install -y cuda
@@ -188,16 +188,16 @@ commands:
188188
default: "amd64"
189189
cuda-pkg-name:
190190
type: string
191-
default: "cuda-toolkit-11-7"
191+
default: "cuda-toolkit-11-8"
192192
cuda-pkg-version:
193193
type: string
194-
default: "11-7"
194+
default: "11-8"
195195
cuda-version:
196196
type: string
197-
default: "11.7.1"
197+
default: "11.8.0"
198198
cuda-string-version:
199199
type: string
200-
default: "cuda11.7"
200+
default: "cuda11.8"
201201
cudnn-version:
202202
type: string
203203
default: "8.5.0.96"
@@ -223,7 +223,6 @@ commands:
223223
os: << parameters.os >>
224224
platform: << parameters.platform >>
225225
cudnn-version: << parameters.cudnn-version >>
226-
cuda-version: << parameters.cuda-string-version >>
227226
- run:
228227
name: Install Tensorrt
229228
command: |
@@ -263,10 +262,10 @@ commands:
263262
parameters:
264263
torch-build:
265264
type: string
266-
default: "2.0.0.dev20230219+cu117"
265+
default: "2.0.0"
267266
torch-build-index:
268267
type: string
269-
default: "https://download.pytorch.org/whl/nightly/cu117"
268+
default: "https://download.pytorch.org/whl/nightly/cu118"
270269
steps:
271270
- run:
272271
name: Install Torch
@@ -1171,10 +1170,10 @@ parameters:
11711170
# Nightly platform config
11721171
torch-build:
11731172
type: string
1174-
default: "2.0.0.dev20230219+cu117"
1173+
default: "2.0.0"
11751174
torch-build-index:
11761175
type: string
1177-
default: "https://download.pytorch.org/whl/nightly/cu117"
1176+
default: "https://download.pytorch.org/whl/nightly/cu118"
11781177
torch-build-legacy:
11791178
type: string
11801179
default: "1.13.1+cu117"

WORKSPACE

Lines changed: 4 additions & 4 deletions
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 = "8b3b48615169c83c1b643c0efade078ea080b1da598e15fcf01bc59421f3095e",
59+
sha256 = "292b3f81e7c857fc102be93e2e44c40cdb4d8ef03d98121bc6af434c66e8490b",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.0.dev20230219%2Bcu117.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcu118.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "aa7fd06079d260ff83c344d043fb84fbd9cf831cf375ed8b5a1b62416817af31",
67+
sha256 = "f3cbd7e9593f0c64b8671d02a21d562c98b60ef1abf5898c0ee9acfbc5a6b5d2",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-shared-with-deps-2.0.0.dev20230219%2Bcu117.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.0.0%2Bcu118.zip"],
7070
)
7171

7272
# Download these tarballs manually from the NVIDIA website

core/runtime/TRTEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ TRTEngine::TRTEngine(
148148
}
149149

150150
TRTEngine::~TRTEngine() {
151-
rt.reset();
152151
trt_engine_profiler.reset();
153152
exec_ctx.reset();
154153
cuda_engine.reset();
154+
rt.reset();
155155
}
156156

157157
void TRTEngine::disable_profiling() {

py/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
numpy
22
pybind11==2.6.2
3-
--extra-index-url https://download.pytorch.org/whl/nightly/cu117
4-
torch==2.0.0.dev20230219+cu117
5-
torchvision==0.15.0.dev20230219+cu117
3+
--extra-index-url https://download.pytorch.org/whl/nightly/cu118
4+
torch==2.0.0
5+
torchvision==0.15.1
66
--extra-index-url https://pypi.ngc.nvidia.com
77
tensorrt==8.5.1.7

py/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def run(self):
380380
long_description=long_description,
381381
ext_modules=ext_modules,
382382
install_requires=[
383-
"torch>=1.13.1",
383+
"torch==2.0.0",
384384
],
385385
setup_requires=[],
386386
cmdclass={

toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel

Lines changed: 4 additions & 4 deletions
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 = "8b3b48615169c83c1b643c0efade078ea080b1da598e15fcf01bc59421f3095e",
59+
sha256 = "292b3f81e7c857fc102be93e2e44c40cdb4d8ef03d98121bc6af434c66e8490b",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.0.dev20230219%2Bcu117.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcu118.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "aa7fd06079d260ff83c344d043fb84fbd9cf831cf375ed8b5a1b62416817af31",
67+
sha256 = "f3cbd7e9593f0c64b8671d02a21d562c98b60ef1abf5898c0ee9acfbc5a6b5d2",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-shared-with-deps-2.0.0.dev20230219%2Bcu117.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.0.0%2Bcu118.zip"],
7070
)
7171

7272
####################################################################################

toolchains/ci_workspaces/WORKSPACE.x86_64.release.ubuntu

Lines changed: 4 additions & 4 deletions
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 = "8b3b48615169c83c1b643c0efade078ea080b1da598e15fcf01bc59421f3095e",
59+
sha256 = "292b3f81e7c857fc102be93e2e44c40cdb4d8ef03d98121bc6af434c66e8490b",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-cxx11-abi-shared-with-deps-2.0.0.dev20230219%2Bcu117.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcu118.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "aa7fd06079d260ff83c344d043fb84fbd9cf831cf375ed8b5a1b62416817af31",
67+
sha256 = "f3cbd7e9593f0c64b8671d02a21d562c98b60ef1abf5898c0ee9acfbc5a6b5d2",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu117/libtorch-shared-with-deps-2.0.0.dev20230219%2Bcu117.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.0.0%2Bcu118.zip"],
7070
)
7171

7272
####################################################################################

0 commit comments

Comments
 (0)