Skip to content

Commit 7e5aa32

Browse files
committed
Add cuda to uv lock
1 parent 85c6571 commit 7e5aa32

File tree

2 files changed

+169
-76
lines changed

2 files changed

+169
-76
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,19 @@ filterwarnings = [
191191
[tool.mypy]
192192
files = "src"
193193
ignore_missing_imports = true
194+
195+
[tool.uv.sources]
196+
torch = [
197+
{ index = "pytorch-cu128", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
198+
]
199+
torchvision = [
200+
{ index = "pytorch-cu128", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
201+
]
202+
torchaudio = [
203+
{ index = "pytorch-cu128", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
204+
]
205+
206+
[[tool.uv.index]]
207+
name = "pytorch-cu128"
208+
url = "https://download.pytorch.org/whl/cu128"
209+
explicit = true

0 commit comments

Comments
 (0)