Download run_pilot_orchestrator.sh from Akahsizrr/alea-runs: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/datasets/Akahsizrr/alea-runs/resolve/main/run_pilot_orchestrator.sh
- Command line
-
hf download hf://datasets/Akahsizrr/alea-runs/run_pilot_orchestrator.sh
-
curl -L -o run_pilot_orchestrator.sh https://huggingface.co/datasets/Akahsizrr/alea-runs/resolve/main/run_pilot_orchestrator.sh
1.11 kB
| cd /root/alea | |
| wait_train() { | |
| local name="$1" | |
| while pgrep -f "python3 -u -m alea.train.*${name}" >/dev/null; do | |
| sleep 30 | |
| done | |
| } | |
| run_evals() { | |
| local ckpt="$1" | |
| local tag="$2" | |
| if [ ! -f "$ckpt" ]; then | |
| echo "missing checkpoint: $ckpt" > "runs/${tag}_missing.log" | |
| return 0 | |
| fi | |
| python3 -u -m alea.eval --ckpt "$ckpt" --data data/pilot_dev_balanced.jsonl --skip-structural > "runs/${tag}_pilot_dev.log" 2>&1 | |
| python3 -u -m alea.eval --ckpt "$ckpt" --data data/jb7_dev.jsonl --skip-structural > "runs/${tag}_jb7_dev.log" 2>&1 | |
| } | |
| wait_train pilot_open_v6 | |
| run_evals runs/pilot_open_v6/final.pt pilot_open_v6 | |
| if ! pgrep -f "alea.train.*pilot_open_v8b" >/dev/null; then | |
| nohup bash run_pilot_b.sh > runs/pilot_open_v8b.log 2>&1 < /dev/null & | |
| fi | |
| wait_train pilot_open_v8b | |
| run_evals runs/pilot_open_v8b/final.pt pilot_open_v8b | |
| if ! pgrep -f "alea.train.*pilot_mix_v8b" >/dev/null; then | |
| nohup bash run_pilot_c.sh > runs/pilot_mix_v8b.log 2>&1 < /dev/null & | |
| fi | |
| wait_train pilot_mix_v8b | |
| run_evals runs/pilot_mix_v8b/final.pt pilot_mix_v8b | |
| echo done > runs/pilot_orchestrator.done | |