Fix maturin build failure when conda environment is active

This commit is contained in:
bedwards 2025-11-20 19:48:23 -06:00
parent 4a87a0d19f
commit 97e63e7331
3 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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