Skip to content

Commit 68d8c82

Browse files
Update PYTORCH to 2.4 (#2953)
1 parent caf3a92 commit 68d8c82

File tree

7 files changed

+21
-23
lines changed

7 files changed

+21
-23
lines changed

.github/workflows/build-test-linux.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
pre-script: packaging/pre_build_script.sh
6767
post-script: packaging/post_build_script.sh
6868
smoke-test-script: packaging/smoke_test_script.sh
69-
uses: pytorch/tensorrt/.github/workflows/linux-test.yml@main
69+
uses: ./.github/workflows/linux-test.yml
7070
with:
7171
job-name: tests-py-torchscript-fe
7272
repository: "pytorch/tensorrt"
@@ -101,7 +101,7 @@ jobs:
101101
pre-script: packaging/pre_build_script.sh
102102
post-script: packaging/post_build_script.sh
103103
smoke-test-script: packaging/smoke_test_script.sh
104-
uses: pytorch/tensorrt/.github/workflows/linux-test.yml@main
104+
uses: ./.github/workflows/linux-test.yml
105105
with:
106106
job-name: tests-py-dynamo-converters
107107
repository: "pytorch/tensorrt"
@@ -129,7 +129,7 @@ jobs:
129129
pre-script: packaging/pre_build_script.sh
130130
post-script: packaging/post_build_script.sh
131131
smoke-test-script: packaging/smoke_test_script.sh
132-
uses: pytorch/tensorrt/.github/workflows/linux-test.yml@main
132+
uses: ./.github/workflows/linux-test.yml
133133
with:
134134
job-name: tests-py-dynamo-fe
135135
repository: "pytorch/tensorrt"
@@ -158,7 +158,7 @@ jobs:
158158
pre-script: packaging/pre_build_script.sh
159159
post-script: packaging/post_build_script.sh
160160
smoke-test-script: packaging/smoke_test_script.sh
161-
uses: pytorch/tensorrt/.github/workflows/linux-test.yml@main
161+
uses: ./.github/workflows/linux-test.yml
162162
with:
163163
job-name: tests-py-dynamo-serde
164164
repository: "pytorch/tensorrt"
@@ -186,7 +186,7 @@ jobs:
186186
pre-script: packaging/pre_build_script.sh
187187
post-script: packaging/post_build_script.sh
188188
smoke-test-script: packaging/smoke_test_script.sh
189-
uses: pytorch/tensorrt/.github/workflows/linux-test.yml@main
189+
uses: ./.github/workflows/linux-test.yml
190190
with:
191191
job-name: tests-py-torch-compile-be
192192
repository: "pytorch/tensorrt"
@@ -216,7 +216,7 @@ jobs:
216216
pre-script: packaging/pre_build_script.sh
217217
post-script: packaging/post_build_script.sh
218218
smoke-test-script: packaging/smoke_test_script.sh
219-
uses: pytorch/tensorrt/.github/workflows/linux-test.yml@main
219+
uses: ./.github/workflows/linux-test.yml
220220
with:
221221
job-name: tests-py-dynamo-core
222222
repository: "pytorch/tensorrt"
@@ -246,7 +246,7 @@ jobs:
246246
pre-script: packaging/pre_build_script.sh
247247
post-script: packaging/post_build_script.sh
248248
smoke-test-script: packaging/smoke_test_script.sh
249-
uses: pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
249+
uses: ./.github/workflows/linux-test.yml
250250
with:
251251
job-name: tests-py-core
252252
repository: "pytorch/tensorrt"

WORKSPACE

+3-5
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,21 @@ http_archive(
6060
name = "libtorch",
6161
build_file = "@//third_party/libtorch:BUILD",
6262
strip_prefix = "libtorch",
63-
urls = ["https://download.pytorch.org/libtorch/nightly/cu124/libtorch-cxx11-abi-shared-with-deps-latest.zip"],
63+
urls = ["https://download.pytorch.org/libtorch/test/cu124/libtorch-cxx11-abi-shared-with-deps-latest.zip"],
6464
)
6565

6666
http_archive(
6767
name = "libtorch_pre_cxx11_abi",
6868
build_file = "@//third_party/libtorch:BUILD",
6969
strip_prefix = "libtorch",
70-
urls = ["https://download.pytorch.org/libtorch/nightly/cu124/libtorch-shared-with-deps-latest.zip"],
70+
urls = ["https://download.pytorch.org/libtorch/test/cu124/libtorch-shared-with-deps-latest.zip"],
7171
)
7272

7373
http_archive(
7474
name = "libtorch_win",
7575
build_file = "@//third_party/libtorch:BUILD",
7676
strip_prefix = "libtorch",
77-
urls = ["https://download.pytorch.org/libtorch/nightly/cu124/libtorch-win-shared-with-deps-latest.zip"],
77+
urls = ["https://download.pytorch.org/libtorch/test/cu124/libtorch-win-shared-with-deps-latest.zip"],
7878
)
7979

8080
# Download these tarballs manually from the NVIDIA website
@@ -101,8 +101,6 @@ http_archive(
101101
],
102102
)
103103

104-
105-
106104
####################################################################################
107105
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
108106
####################################################################################

docker/dist-build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
TOP_DIR=$(cd $(dirname $0); pwd)/..
44

55
if [[ -z "${USE_CXX11}" ]]; then
6-
BUILD_CMD="python -m pip wheel . --extra-index-url https://download.pytorch.org/whl/nightly/cu124 -w dist"
6+
BUILD_CMD="python -m pip wheel . --extra-index-url https://download.pytorch.org/whl/test/cu124 -w dist"
77
else
8-
BUILD_CMD="python -m pip wheel . --config-setting="--build-option=--use-cxx11-abi" --extra-index-url https://download.pytorch.org/whl/nightly/cu124 -w dist"
8+
BUILD_CMD="python -m pip wheel . --config-setting="--build-option=--use-cxx11-abi" --extra-index-url https://download.pytorch.org/whl/test/cu124 -w dist"
99
fi
1010

1111
# TensorRT restricts our pip version

py/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
numpy
22
packaging
33
pybind11==2.6.2
4-
--extra-index-url https://download.pytorch.org/whl/nightly/cu124
5-
torch>=2.5.0.dev,<2.6.0
6-
torchvision>=0.19.0.dev,<0.20.0
4+
--extra-index-url https://download.pytorch.org/whl/test/cu124
5+
torch>=2.4.0,<2.5.0
6+
torchvision>=0.19.0,<0.20.0
77
--extra-index-url https://pypi.ngc.nvidia.com
88
pyyaml
99
tensorrt==10.0.1

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requires = [
99
"typing-extensions>=4.7.0",
1010
"future>=0.18.3",
1111
"tensorrt==10.0.1",
12-
"torch >=2.5.0.dev,<2.6.0",
12+
"torch>=2.4.0,<2.5.0",
1313
"pybind11==2.6.2",
1414
"numpy",
1515
]
@@ -41,7 +41,7 @@ readme = {file = "py/README.md", content-type = "text/markdown"}
4141
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 = [
44-
"torch >=2.5.0.dev,<2.6.0",
44+
"torch>=2.4.0,<2.5.0",
4545
"tensorrt==10.0.1",
4646
"tensorrt-cu12_bindings==10.0.1",
4747
"tensorrt-cu12_libs==10.0.1",
@@ -52,7 +52,7 @@ dependencies = [
5252
dynamic = ["version"]
5353

5454
[project.optional-dependencies]
55-
torchvision = ["torchvision >=0.18.dev,<0.19.0"]
55+
torchvision = ["torchvision>=0.19.0,<0.20.0"]
5656

5757
[project.urls]
5858
Homepage = "https://pytorch.org/tensorrt"

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ http_archive(
5858
name = "libtorch",
5959
build_file = "@//third_party/libtorch:BUILD",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu124/libtorch-cxx11-abi-shared-with-deps-latest.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/${CHANNEL}/${CU_VERSION}/libtorch-cxx11-abi-shared-with-deps-latest.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
6767
strip_prefix = "libtorch",
68-
urls = ["https://download.pytorch.org/libtorch/nightly/cu124/libtorch-shared-with-deps-latest.zip"],
68+
urls = ["https://download.pytorch.org/libtorch/${CHANNEL}/${CU_VERSION}/libtorch-shared-with-deps-latest.zip"],
6969
)
7070

7171
http_archive(

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.0a0
1+
2.4.0a0

0 commit comments

Comments
 (0)