File size: 1,111 Bytes
8914e3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/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