mirror of
https://github.com/karpathy/nanochat.git
synced 2025-12-06 12:22:18 +00:00
QOL(shell scripts)
Remove redundant uv venv from shell scripts.
This commit is contained in:
parent
d6d86cbf4c
commit
18aa43744d
|
|
@ -7,7 +7,6 @@ export OMP_NUM_THREADS=1
|
|||
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
|
||||
source .venv/bin/activate
|
||||
if [ -z "$WANDB_RUN" ]; then
|
||||
|
|
|
|||
4
speedrun.sh
Normal file → Executable file
4
speedrun.sh
Normal file → Executable file
|
|
@ -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
|
||||
# activate venv so that `python` uses the project's venv instead of system python
|
||||
source .venv/bin/activate
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user