Skip to content

Commit d47b096

Browse files
committed
test: Regular CI
1 parent 9b13f10 commit d47b096

File tree

6 files changed

+11
-17
lines changed

6 files changed

+11
-17
lines changed

.github/workflows/build-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
package-type: wheel
2121
os: linux
2222
test-infra-repository: pytorch/test-infra
23-
test-infra-ref: main
23+
test-infra-ref: release/2.1
2424
with-rocm: false
2525
with-cpu: false
2626

py/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# torch_tensorrt
22

3-
> Ahead of Time (AOT) compiling for PyTorch JIT
3+
> Ahead of Time (AOT) compiling for PyTorch JIT
44
55
Torch-TensorRT is a compiler for PyTorch/TorchScript, targeting NVIDIA GPUs via NVIDIA's TensorRT Deep Learning Optimizer and Runtime. Unlike PyTorch's Just-In-Time (JIT) compiler, Torch-TensorRT is an Ahead-of-Time (AOT) compiler, meaning that before you deploy your TorchScript code, you go through an explicit compile step to convert a standard TorchScript program into an module targeting a TensorRT engine. Torch-TensorRT operates as a PyTorch extention and compiles modules that integrate into the JIT runtime seamlessly. After compilation using the optimized graph should feel no different than running a TorchScript module. You also have access to TensorRT's suite of configurations at compile time, so you are able to specify operating precision (FP32/FP16/INT8) and other settings for your module.
66

pyproject.toml

+2-2
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>=8.6,<8.7",
12-
"torch>=2.1.0,<2.2.0",
12+
"torch==2.1.1",
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.1.0,<2.2.0",
44+
"torch==2.1.1",
4545
"tensorrt>=8.6,<8.7",
4646
"packaging>=23",
4747
"numpy",

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,15 @@ new_local_repository(
5858
http_archive(
5959
name = "libtorch",
6060
build_file = "@//third_party/libtorch:BUILD",
61-
sha256 = "174579a7ee2a506d063714160c5fc57da428f7935311ef511c8f19820eb14c86",
6261
strip_prefix = "libtorch",
63-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230731%2Bcu121.zip"],
62+
urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.1%2Bcu121.zip"],
6463
)
6564

6665
http_archive(
6766
name = "libtorch_pre_cxx11_abi",
6867
build_file = "@//third_party/libtorch:BUILD",
69-
sha256 = "532217063c65354d5534211badadc9c370d889cb1c3fdb295c9b3d0f181bc0ba",
7068
strip_prefix = "libtorch",
71-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230731%2Bcu121.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.1.1%2Bcu121.zip"],
7270
)
7371

7472
####################################################################################

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,15 @@ new_local_repository(
5858
http_archive(
5959
name = "libtorch",
6060
build_file = "@//third_party/libtorch:BUILD",
61-
sha256 = "174579a7ee2a506d063714160c5fc57da428f7935311ef511c8f19820eb14c86",
6261
strip_prefix = "libtorch",
63-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230731%2Bcu121.zip"],
62+
urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.1%2Bcu121.zip"],
6463
)
6564

6665
http_archive(
6766
name = "libtorch_pre_cxx11_abi",
6867
build_file = "@//third_party/libtorch:BUILD",
69-
sha256 = "532217063c65354d5534211badadc9c370d889cb1c3fdb295c9b3d0f181bc0ba",
7068
strip_prefix = "libtorch",
71-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230731%2Bcu121.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.1.1%2Bcu121.zip"],
7270
)
7371

7472
####################################################################################

toolchains/ci_workspaces/WORKSPACE.x86_64.release.ubuntu

+3-5
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,15 @@ new_local_repository(
5858
http_archive(
5959
name = "libtorch",
6060
build_file = "@//third_party/libtorch:BUILD",
61-
sha256 = "174579a7ee2a506d063714160c5fc57da428f7935311ef511c8f19820eb14c86",
6261
strip_prefix = "libtorch",
63-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230731%2Bcu121.zip"],
62+
urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.1%2Bcu121.zip"],
6463
)
6564

6665
http_archive(
6766
name = "libtorch_pre_cxx11_abi",
6867
build_file = "@//third_party/libtorch:BUILD",
69-
sha256 = "532217063c65354d5534211badadc9c370d889cb1c3fdb295c9b3d0f181bc0ba",
7068
strip_prefix = "libtorch",
71-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230731%2Bcu121.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.1.1%2Bcu121.zip"],
7270
)
7371

7472
####################################################################################
@@ -100,4 +98,4 @@ pip_parse(
10098

10199
load("@devtools_deps//:requirements.bzl", "install_deps")
102100

103-
install_deps()
101+
install_deps()

0 commit comments

Comments
 (0)