Skip to content

Commit a2a2c68

Browse files
YodaEmbeddingfracape
authored andcommitted
build(pyproject): uv sync --extra=cu128
1 parent 217b58f commit a2a2c68

File tree

2 files changed

+397
-226
lines changed

2 files changed

+397
-226
lines changed

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ cu118 = [
7373
"torch>=2.0.0",
7474
"torchvision>=0.15.1",
7575
]
76+
cu128 = [
77+
"torch>=2.7.0 ; python_version >= '3.9'",
78+
"torchvision>=0.22.0 ; python_version >= '3.9'",
79+
]
7680
models-mmpose = [
7781
"openmim>=0.3.9",
7882
# mmpose/requirements/runtime.txt
@@ -163,6 +167,7 @@ conflicts = [
163167
[
164168
{ extra = "cpu" },
165169
{ extra = "cu118" },
170+
{ extra = "cu128" },
166171
],
167172
]
168173
no-build-isolation-package = [
@@ -179,15 +184,22 @@ name = "pytorch-cu118"
179184
url = "https://download.pytorch.org/whl/cu118"
180185
explicit = true
181186

187+
[[tool.uv.index]]
188+
name = "pytorch-cu128"
189+
url = "https://download.pytorch.org/whl/cu128"
190+
explicit = true
191+
182192
[tool.uv.sources]
183193
compressai = { workspace = true }
184194
torch = [
185195
{ index = "pytorch-cpu", extra = "cpu" },
186196
{ index = "pytorch-cu118", extra = "cu118" },
197+
{ index = "pytorch-cu128", extra = "cu128" },
187198
]
188199
torchvision = [
189200
{ index = "pytorch-cpu", extra = "cpu" },
190201
{ index = "pytorch-cu118", extra = "cu118" },
202+
{ index = "pytorch-cu128", extra = "cu128" },
191203
]
192204

193205
[tool.uv.workspace]

0 commit comments

Comments
 (0)