Skip to content

The best ChatGPT that $100 can buy.

Python

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

Andrej Karpathy9c60dfb64c3c
diff --git a/pyproject.toml b/pyproject.toml
index 1762fa4..b990f72 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,33 +34,33 @@ python_functions = ["test_*"]
# target torch to cuda 12.8 or CPU
[tool.uv.sources]
-torch = [
- { index = "pytorch-cpu", extra = "cpu" },
- { index = "pytorch-cu128", extra = "gpu" },
+torch = [
+ { index = "pytorch-cpu", extra = "cpu" },
+ { index = "pytorch-cu128", extra = "gpu" },
]
-[[tool.uv.index]]
-name = "pytorch-cpu"
-url = "https://download.pytorch.org/whl/cpu"
-explicit = true
-
-[[tool.uv.index]]
-name = "pytorch-cu128"
-url = "https://download.pytorch.org/whl/cu128"
+[[tool.uv.index]]
+name = "pytorch-cpu"
+url = "https://download.pytorch.org/whl/cpu"
explicit = true
-[project.optional-dependencies]
-cpu = [
- "torch>=2.8.0",
-]
-gpu = [
- "torch>=2.8.0",
-]
-
-[tool.uv]
-conflicts = [
- [
- { extra = "cpu" },
- { extra = "gpu" },
- ],
-]
\ No newline at end of file
+[[tool.uv.index]]
+name = "pytorch-cu128"
+url = "https://download.pytorch.org/whl/cu128"
+explicit = true
+
+[project.optional-dependencies]
+cpu = [
+ "torch>=2.9.1",
+]
+gpu = [
+ "torch>=2.9.1",
+]
+
+[tool.uv]
+conflicts = [
+ [
+ { extra = "cpu" },
+ { extra = "gpu" },
+ ],
+]
\ No newline at end of file