Skip to content

Commit a6fdec1

Browse files
committed
chore: Update Torch to Jul 9 Nightly
- Make necessary changes in Dynamo decompositions - Update WORKSPACE files
1 parent b5dbc11 commit a6fdec1

File tree

7 files changed

+19
-23
lines changed

7 files changed

+19
-23
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ commands:
252252
parameters:
253253
torch-build:
254254
type: string
255-
default: "2.1.0.dev20230619+cu121"
255+
default: "2.1.0.dev20230709+cu121"
256256
torchvision-build:
257257
type: string
258-
default: "0.16.0.dev20230619+cu121"
258+
default: "0.16.0.dev20230709+cu121"
259259
torch-build-index:
260260
type: string
261261
default: "https://download.pytorch.org/whl/nightly/cu121"
@@ -1338,10 +1338,10 @@ parameters:
13381338
# Nightly platform config
13391339
torch-build:
13401340
type: string
1341-
default: "2.1.0.dev20230619+cu121"
1341+
default: "2.1.0.dev20230709+cu121"
13421342
torchvision-build:
13431343
type: string
1344-
default: "0.16.0.dev20230619+cu121"
1344+
default: "0.16.0.dev20230709+cu121"
13451345
torch-build-index:
13461346
type: string
13471347
default: "https://download.pytorch.org/whl/nightly/cu121"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ torch.jit.save(trt_ts_module, "trt_torchscript_module.ts") # save the TRT embedd
116116
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.
117117

118118
- Bazel 5.2.0
119-
- Libtorch 2.1.0.dev20230619 (built with CUDA 12.1)
119+
- Libtorch 2.1.0.dev20230709 (built with CUDA 12.1)
120120
- CUDA 12.1
121121
- cuDNN 8.8.1
122122
- TensorRT 8.6.1

WORKSPACE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ new_local_repository(
5151
http_archive(
5252
name = "libtorch",
5353
build_file = "@//third_party/libtorch:BUILD",
54-
sha256 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba",
54+
sha256 = "bad945261dde6347025fec49b76df344400145d001fcaba6845da08937f0ec4d",
5555
strip_prefix = "libtorch",
56-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
56+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230709%2Bcu121.zip"],
5757
)
5858

5959
http_archive(
6060
name = "libtorch_pre_cxx11_abi",
6161
build_file = "@//third_party/libtorch:BUILD",
62-
sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e",
62+
sha256 = "7165cc94b2e19c42cacfbb74fe1d129d6a8cd07c866b3cc958ae5d206ac1ca6e",
6363
strip_prefix = "libtorch",
64-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
64+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230709%2Bcu121.zip"],
6565
)
6666

6767
# Download these tarballs manually from the NVIDIA website

py/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ numpy
22
packaging
33
pybind11==2.6.2
44
--extra-index-url https://download.pytorch.org/whl/nightly/cu121
5-
torch==2.1.0.dev20230619+cu121
6-
torchvision==0.16.0.dev20230619+cu121
5+
torch==2.1.0.dev20230709+cu121
6+
torchvision==0.16.0.dev20230709+cu121
77
--extra-index-url https://pypi.ngc.nvidia.com
88
tensorrt==8.6.1

py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ def inplace_op(*args, **kwargs):
2727
replace_inplace_op(aten.addmv_, aten.addmv)
2828
replace_inplace_op(aten.baddbmm_, aten.baddbmm)
2929
replace_inplace_op(aten.cumprod_, aten.cumprod)
30-
replace_inplace_op(aten.fill_, aten.fill)
31-
replace_inplace_op(aten.gelu_, aten.gelu)
32-
replace_inplace_op(aten.hardsigmoid_, aten.hardsigmoid)
3330
replace_inplace_op(aten.index_put_, aten.index_put)
3431
replace_inplace_op(aten.index_reduce_, aten.index_reduce)
35-
replace_inplace_op(aten.logit_, aten.logit)
3632
replace_inplace_op(aten.relu_, aten.relu)
3733
replace_inplace_op(aten.round_, aten.round)
3834
replace_inplace_op(aten.scatter_, aten.scatter)

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 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba",
59+
sha256 = "bad945261dde6347025fec49b76df344400145d001fcaba6845da08937f0ec4d",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230709%2Bcu121.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e",
67+
sha256 = "7165cc94b2e19c42cacfbb74fe1d129d6a8cd07c866b3cc958ae5d206ac1ca6e",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230709%2Bcu121.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 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba",
59+
sha256 = "bad945261dde6347025fec49b76df344400145d001fcaba6845da08937f0ec4d",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230709%2Bcu121.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e",
67+
sha256 = "7165cc94b2e19c42cacfbb74fe1d129d6a8cd07c866b3cc958ae5d206ac1ca6e",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230709%2Bcu121.zip"],
7070
)
7171

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

0 commit comments

Comments
 (0)