From 97e63e7331192a8d223d3493ca2f24aec10298d6 Mon Sep 17 00:00:00 2001 From: bedwards Date: Thu, 20 Nov 2025 19:48:23 -0600 Subject: [PATCH] Fix maturin build failure when conda environment is active --- dev/runcpu.sh | 1 + run1000.sh | 1 + speedrun.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/dev/runcpu.sh b/dev/runcpu.sh index ffacefa..435b4fe 100755 --- a/dev/runcpu.sh +++ b/dev/runcpu.sh @@ -21,6 +21,7 @@ if [ -z "$WANDB_RUN" ]; then fi curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y source "$HOME/.cargo/env" +unset CONDA_PREFIX uv run maturin develop --release --manifest-path rustbpe/Cargo.toml # wipe the report diff --git a/run1000.sh b/run1000.sh index 58ee3bc..39cc4e9 100644 --- a/run1000.sh +++ b/run1000.sh @@ -18,6 +18,7 @@ fi python -m nanochat.report reset curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y source "$HOME/.cargo/env" +unset CONDA_PREFIX uv run maturin develop --release --manifest-path rustbpe/Cargo.toml curl -L -o $NANOCHAT_BASE_DIR/identity_conversations.jsonl https://karpathy-public.s3.us-west-2.amazonaws.com/identity_conversations.jsonl diff --git a/speedrun.sh b/speedrun.sh index 7955ec5..8096bb0 100644 --- a/speedrun.sh +++ b/speedrun.sh @@ -53,6 +53,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y source "$HOME/.cargo/env" # Build the rustbpe Tokenizer +unset CONDA_PREFIX uv run maturin develop --release --manifest-path rustbpe/Cargo.toml # Download the first ~2B characters of pretraining dataset