From 2f7841cd50d751bb709f55f7a72b0316d03083b2 Mon Sep 17 00:00:00 2001 From: Kian Kyars Date: Fri, 16 Jan 2026 16:22:39 -0800 Subject: [PATCH 1/4] remove all uv venv --- dev/runcpu.sh | 1 - miniseries.sh | 1 - run1000.sh | 1 - speedrun.sh | 4 +--- 4 files changed, 1 insertion(+), 6 deletions(-) mode change 100644 => 100755 speedrun.sh diff --git a/dev/runcpu.sh b/dev/runcpu.sh index c0b32a5..0b84cf5 100755 --- a/dev/runcpu.sh +++ b/dev/runcpu.sh @@ -13,7 +13,6 @@ export OMP_NUM_THREADS=1 export NANOCHAT_BASE_DIR="$HOME/.cache/nanochat" mkdir -p $NANOCHAT_BASE_DIR command -v uv &> /dev/null || curl -LsSf https://astral.sh/uv/install.sh | sh -[ -d ".venv" ] || uv venv uv sync --extra cpu source .venv/bin/activate if [ -z "$WANDB_RUN" ]; then diff --git a/miniseries.sh b/miniseries.sh index 9a4512b..d63e078 100644 --- a/miniseries.sh +++ b/miniseries.sh @@ -13,7 +13,6 @@ mkdir -p $NANOCHAT_BASE_DIR if [ -z "$SKIP_SETUP" ]; then # uv command -v uv &> /dev/null || curl -LsSf https://astral.sh/uv/install.sh | sh - [ -d ".venv" ] || uv venv uv sync --extra gpu source .venv/bin/activate diff --git a/run1000.sh b/run1000.sh index 5d0b7dc..fee274e 100644 --- a/run1000.sh +++ b/run1000.sh @@ -9,7 +9,6 @@ export OMP_NUM_THREADS=1 export NANOCHAT_BASE_DIR="$HOME/.cache/nanochat" mkdir -p $NANOCHAT_BASE_DIR command -v uv &> /dev/null || curl -LsSf https://astral.sh/uv/install.sh | sh -[ -d ".venv" ] || uv venv uv sync --extra gpu source .venv/bin/activate if [ -z "$WANDB_RUN" ]; then diff --git a/speedrun.sh b/speedrun.sh old mode 100644 new mode 100755 index 8fff564..7f4ce91 --- a/speedrun.sh +++ b/speedrun.sh @@ -20,9 +20,7 @@ mkdir -p $NANOCHAT_BASE_DIR # install uv (if not already installed) command -v uv &> /dev/null || curl -LsSf https://astral.sh/uv/install.sh | sh -# create a .venv local virtual environment (if it doesn't exist) -[ -d ".venv" ] || uv venv -# install the repo dependencies +# create a .venv local virtual environment (if it doesn't exist) and install the repo dependencies uv sync --extra gpu # activate venv so that `python` uses the project's venv instead of system python source .venv/bin/activate From 00f1a3219d0dd945fada1c50182377c4c38ac5d4 Mon Sep 17 00:00:00 2001 From: Kian Kyars Date: Fri, 16 Jan 2026 16:20:35 -0800 Subject: [PATCH 2/4] speedrun --- speedrun.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 speedrun.sh diff --git a/speedrun.sh b/speedrun.sh old mode 100755 new mode 100644 From c5ddd01b801f3e236d6caf540a7dbfc81ef611d2 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Fri, 13 Feb 2026 13:17:41 +0100 Subject: [PATCH 3/4] fix cpu script as well (after being moved on master) --- runs/runcpu.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/runs/runcpu.sh b/runs/runcpu.sh index 853fa1f..fd422ae 100755 --- a/runs/runcpu.sh +++ b/runs/runcpu.sh @@ -14,7 +14,6 @@ export NANOCHAT_BASE_DIR="$HOME/.cache/nanochat" mkdir -p $NANOCHAT_BASE_DIR command -v uv &> /dev/null || curl -LsSf https://astral.sh/uv/install.sh | sh -[ -d ".venv" ] || uv venv uv sync --extra cpu source .venv/bin/activate if [ -z "$WANDB_RUN" ]; then From 6e571915d9ff40b4b377cdd21435be07dcba74d7 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Fri, 13 Feb 2026 13:23:12 +0100 Subject: [PATCH 4/4] clarify docstring --- runs/speedrun.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runs/speedrun.sh b/runs/speedrun.sh index b50a426..34f1e88 100644 --- a/runs/speedrun.sh +++ b/runs/speedrun.sh @@ -20,7 +20,7 @@ mkdir -p $NANOCHAT_BASE_DIR # install uv (if not already installed) command -v uv &> /dev/null || curl -LsSf https://astral.sh/uv/install.sh | sh -# create a .venv local virtual environment (if it doesn't exist) and install the repo dependencies +# uv sync installs the repo dependencies and automatically creates a .venv if it doesn't exist uv sync --extra gpu # activate venv so that `python` uses the project's venv instead of system python source .venv/bin/activate