Skip to content

Commit 1bb2ac8

Browse files
committed
Add cpu and rocm64 extra
1 parent d8f80ac commit 1bb2ac8

2 files changed

Lines changed: 1090 additions & 789 deletions

File tree

pyproject.toml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = [
2323
"datasets>=4.0.0",
2424
"rank-bm25>=0.2.2",
2525
"accelerate>=1.10.1",
26-
"scikit-learn[ui]>=1.6.1",
26+
"scikit-learn>=1.6.1",
2727
"tiktoken>=0.12.0",
2828
"protobuf>=6.33.2",
2929
]
@@ -53,32 +53,48 @@ ui = [
5353
"gradio>=4.44.1",
5454
"pyvis>=0.3.2",
5555
]
56-
# torch alternatives (default is cpu torch)
56+
cpu = [
57+
"torch>=2.7.1",
58+
]
5759
cuda128 = [
5860
"torch>=2.7.1",
5961
]
6062
rocm63 = [
6163
"torch>=2.7.1",
6264
"pytorch-triton-rocm>=3.1.0",
6365
]
66+
rocm64 = [
67+
"torch>=2.7.1",
68+
"pytorch-triton-rocm>=3.1.0",
69+
]
6470

6571
[tool.uv]
6672
conflicts = [
6773
[
74+
{ extra = "cpu" },
6875
{ extra = "cuda128" },
6976
{ extra = "rocm63" },
77+
{ extra = "rocm64" },
7078
],
7179
]
7280

7381
[tool.uv.sources]
7482
torch = [
83+
{ index = "pytorch-cpu", extra = "cpu" },
7584
{ index = "pytorch-cuda128", extra = "cuda128" },
7685
{ index = "pytorch-rocm63", extra = "rocm63" },
86+
{ index = "pytorch-rocm64", extra = "rocm64" },
7787
]
7888
pytorch-triton-rocm = [
79-
{ index = "pytorch-rocm63", extra = "rocm63" }
89+
{ index = "pytorch-rocm63", extra = "rocm63" },
90+
{ index = "pytorch-rocm64", extra = "rocm64" },
8091
]
8192

93+
[[tool.uv.index]]
94+
name = "pytorch-cpu"
95+
url = "https://download.pytorch.org/whl/cpu"
96+
explicit = true
97+
8298
[[tool.uv.index]]
8399
name = "pytorch-cuda128"
84100
url = "https://download.pytorch.org/whl/cu128"
@@ -88,3 +104,8 @@ explicit = true
88104
name = "pytorch-rocm63"
89105
url = "https://download.pytorch.org/whl/rocm6.3"
90106
explicit = true
107+
108+
[[tool.uv.index]]
109+
name = "pytorch-rocm64"
110+
url = "https://download.pytorch.org/whl/rocm6.4"
111+
explicit = true

0 commit comments

Comments
 (0)