Spaces:
Running on Zero
Running on Zero
Download reports/cv_v2/train_queue.sh from stevafernandes/cellquant: direct link, hf CLI and curl.
- Browser
- Download file 631 Bytes
-
https://huggingface.co/spaces/stevafernandes/cellquant/resolve/main/reports/cv_v2/train_queue.sh
- Command line
-
hf download hf://spaces/stevafernandes/cellquant/reports/cv_v2/train_queue.sh
-
curl -L -o train_queue.sh https://huggingface.co/spaces/stevafernandes/cellquant/resolve/main/reports/cv_v2/train_queue.sh
631 Bytes
| # Lock-based fold queue for the v2 recipe: several instances may run concurrently with different orders. | |
| cd "$(dirname "$0")/../.." | |
| for K in "$@"; do | |
| [ -f "runs/cv_v2/fold_$K.pt" ] && { echo "skip $K (done)"; continue; } | |
| mkdir "runs/cv_v2/fold_$K.lock" 2>/dev/null || { echo "skip $K (claimed)"; continue; } | |
| echo "=== fold $K start $(date) ===" | |
| python3 -I train.py --data-dir /Users/slf20757/Desktop/Peyton --holdout "$K" --iters 3000 --val-every 500 --out "runs/cv_v2/fold_$K.pt" --device mps > "runs/cv_v2/train_$K.log" 2>&1 || echo "FOLD $K FAILED" | |
| echo "=== fold $K done $(date) ===" | |
| done | |
| echo QUEUE_DONE | |