Skip to content

Commit c9a1690

Browse files
committed
tool: Auto refresh the lock file on commit
Signed-off-by: Naren Dasan <[email protected]>
1 parent ab14920 commit c9a1690

File tree

5 files changed

+419
-361
lines changed

5 files changed

+419
-361
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ repos:
5555
rev: v1.22.9
5656
hooks:
5757
- id: typos
58+
- repo: https://github.com/astral-sh/uv-pre-commit
59+
# uv version.
60+
rev: 0.4.10
61+
hooks:
62+
# Update the uv lockfile
63+
- id: uv-lock
5864
- repo: local
5965
hooks:
6066
- id: dont-commit-upstream

cpp/include/torch_tensorrt/macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define STR(x) XSTR(x)
2525

2626
#define TORCH_TENSORRT_MAJOR_VERSION 2
27-
#define TORCH_TENSORRT_MINOR_VERSION 6
27+
#define TORCH_TENSORRT_MINOR_VERSION 5
2828
#define TORCH_TENSORRT_PATCH_VERSION 0
2929
#define TORCH_TENSORRT_VERSION \
3030
STR(TORCH_TENSORRT_MAJOR_VERSION) \

pyproject.toml

Lines changed: 10 additions & 9 deletions
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-cu12==10.3.0",
12-
"torch>=2.6.0.dev,<2.7.0",
12+
"torch>=2.5.0.dev,<2.6.0",
1313
"pybind11==2.6.2",
1414
"numpy",
1515
]
@@ -54,7 +54,7 @@ keywords = [
5454
"inference",
5555
]
5656
dependencies = [
57-
"torch>=2.6.0.dev,<2.7.0",
57+
"torch>=2.5.0.dev,<2.6.0",
5858
"tensorrt-cu12==10.3.0",
5959
"tensorrt-cu12-bindings==10.3.0",
6060
"tensorrt-cu12-libs==10.3.0",
@@ -65,7 +65,9 @@ dependencies = [
6565
dynamic = ["version"]
6666

6767
[project.optional-dependencies]
68-
#torchvision = ["torchvision>=0.21.dev,<0.22.0"] # Reenable once torchvision bumps to 2.6.0
68+
torchvision = [
69+
"torchvision",
70+
] #Leaving torchvisions dependency unconstrained so uv can just install something that should work for the torch we have. TV's on PyT makes it hard to put version constrains in
6971
quantization = ["nvidia-modelopt[deploy,hf,torch]~=0.17.0"]
7072
monitoring-tools = ["rich>=13.7.1"]
7173
jupyter = ["rich[jupyter]>=13.7.1"]
@@ -85,22 +87,21 @@ dev-dependencies = [
8587
"pre-commit>=2.20.0",
8688
"black>=22.6.0",
8789
"clang-format==14.0.6",
90+
"typos",
8891
"mypy",
8992
"isort",
9093
"ruff",
9194
"pytest",
92-
"parameterized",
95+
"pytest-xdist",
96+
"parameterized>=0.2.0",
9397
"expecttest==0.1.6",
9498
"pyyaml",
9599
]
96100

97-
environments = [
98-
"sys_platform == 'linux'",
99-
"sys_platform == 'windows'",
100-
]
101+
environments = ["sys_platform == 'linux'", "sys_platform == 'windows'"]
101102

102103
extra-index-url = [
103-
"https://download.pytorch.org/whl/nightly/cu124" # We are going to define the dev enviorment as latest supported CUDA, and allow CI to handle the others, change as needed
104+
"https://download.pytorch.org/whl/nightly/cu124", # We are going to define the dev enviorment as latest supported CUDA, and allow CI to handle the others, change as needed
104105
]
105106

106107
prerelease = "if-necessary-or-explicit"

0 commit comments

Comments
 (0)