From 9c60dfb64c3c87c100980208689d5f7f5eaf7227 Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Sun, 4 Jan 2026 18:36:36 +0000 Subject: [PATCH] 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 --- pyproject.toml | 52 +++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) 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