mirror of
https://github.com/karpathy/nanochat.git
synced 2025-12-06 04:12:13 +00:00
add both sides of the source check
This commit is contained in:
parent
c7ae920a77
commit
0abb0fa2e3
|
|
@ -47,9 +47,15 @@ python_functions = ["test_*"]
|
||||||
# target torch to cuda 12.8
|
# target torch to cuda 12.8
|
||||||
[tool.uv.sources]
|
[tool.uv.sources]
|
||||||
torch = [
|
torch = [
|
||||||
{ index = "pytorch-cu128", marker = "platform_system == 'linux'"},
|
{ index = "pytorch-cpu", marker = "sys_platform != 'linux'" },
|
||||||
|
{ index = "pytorch-cu128", marker = "sys_platform == 'linux'" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[tool.uv.index]]
|
||||||
|
name = "pytorch-cpu"
|
||||||
|
url = "https://download.pytorch.org/whl/cpu"
|
||||||
|
explicit = true
|
||||||
|
|
||||||
[[tool.uv.index]]
|
[[tool.uv.index]]
|
||||||
name = "pytorch-cu128"
|
name = "pytorch-cu128"
|
||||||
url = "https://download.pytorch.org/whl/cu128"
|
url = "https://download.pytorch.org/whl/cu128"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user