Sync scripts to dataset volume
Browse filesFiles changed (3)
10 unmodified lines111213141516171819202111 unmodified lines333435363738394010 unmodified linesALIGN=/tmp/venv_aligntuneif ! command -v uv >/dev/null 2>&1; thenpip install -q uvfiuv venv --system-site-packages "$CORE"uv pip install --python "$CORE/bin/python" \"transformers>=5.15,<5.22" \"trl>=0.12,<1.15" \"peft>=0.18,<1" \11 unmodified lines"safetune==0.1.18" \"auditkit==1.1.11"uv venv --system-site-packages "$ALIGN"uv pip install --python "$ALIGN/bin/python" \"torchvision==0.28.0" \"transformers>=5.15,<5.22" \"peft>=0.18,<1" \10 unmodified lines111213141516171819202111 unmodified lines333435363738394010 unmodified linesALIGN=/tmp/venv_aligntuneif ! command -v uv >/dev/null 2>&1; thenpip install -q --break-system-packages uvfiuv venv --system-site-packages --seed "$CORE""$CORE/bin/pip" install --no-cache-dir \"transformers>=5.15,<5.22" \"trl>=0.12,<1.15" \"peft>=0.18,<1" \11 unmodified lines"safetune==0.1.18" \"auditkit==1.1.11"uv venv --system-site-packages --seed "$ALIGN""$ALIGN/bin/pip" install --no-cache-dir \"torchvision==0.28.0" \"transformers>=5.15,<5.22" \"peft>=0.18,<1" \
1234567891011121314151617181920212223242526#!/bin/bash# Launch the Hour-1 L4 smoke test.## Pre-baked image (preferred, requires the GHCR image to be public or HF Jobs# to have registry credentials):# USE_PREBAKED=1 bash scripts/run_l4_job.sh## Fallback: stock PyTorch image + on-job bootstrap (installs the same two# environments in /tmp). Costs ~$0.05 extra L4 time.set -euo pipefail
if [[ "${USE_PREBAKED:-0}" == "1" ]]; then IMAGE="ghcr.io/divyanshu-kumar14/zombie-weights-l4:latest" CMD=(/opt/venv_core/bin/python /opt/zombie-weights/scripts/smoke_l4.py)else IMAGE="pytorch/pytorch:2.13.0-cuda12.6-cudnn9-runtime" CMD=(bash /code/scripts/bootstrap_l4.sh)fi
hf jobs run \ --flavor l4x1 \ --timeout 3600 \ --name "zw-smoke-$(date +%H%M)" \ -s HF_TOKEN \ -v hf://datasets/tony0014/zombie-weights-code:/code:ro \ "$IMAGE" "${CMD[@]}"scripts/__pycache__/smoke_l4.cpython-312.pycAdded
scripts/bootstrap_l4.sh+5-5
scripts/run_l4_job.shAdded+26