bump nanochat to use the latest stable pytorch that is 2.9.1 . Run e.g. to re-update your local environment if you git pull

This commit is contained in:
Andrej Karpathy
2026-01-04 18:36:36 +00:00
parent be56d29b87
commit 9c60dfb64c
+26 -26
View File
@@ -34,33 +34,33 @@ python_functions = ["test_*"]
# target torch to cuda 12.8 or CPU # target torch to cuda 12.8 or CPU
[tool.uv.sources] [tool.uv.sources]
torch = [ torch = [
{ index = "pytorch-cpu", extra = "cpu" }, { index = "pytorch-cpu", extra = "cpu" },
{ index = "pytorch-cu128", extra = "gpu" }, { index = "pytorch-cu128", extra = "gpu" },
] ]
[[tool.uv.index]] [[tool.uv.index]]
name = "pytorch-cpu" name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu" url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true explicit = true
[project.optional-dependencies] [[tool.uv.index]]
cpu = [ name = "pytorch-cu128"
"torch>=2.8.0", url = "https://download.pytorch.org/whl/cu128"
] explicit = true
gpu = [
"torch>=2.8.0", [project.optional-dependencies]
] cpu = [
"torch>=2.9.1",
[tool.uv] ]
conflicts = [ gpu = [
[ "torch>=2.9.1",
{ extra = "cpu" }, ]
{ extra = "gpu" },
], [tool.uv]
] conflicts = [
[
{ extra = "cpu" },
{ extra = "gpu" },
],
]