alea-runs / run_pilot_orchestrator.sh
Akahsizrr's picture
Upload run_pilot_orchestrator.sh with huggingface_hub
8914e3a verified
Raw History Blame Contribute Delete
1.11 kB
#!/bin/bash
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