Akahsizrr commited on
Commit
8914e3a
·
verified ·
1 Parent(s): 44b3c25

Upload run_pilot_orchestrator.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. run_pilot_orchestrator.sh +37 -0
run_pilot_orchestrator.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ cd /root/alea
3
+
4
+ wait_train() {
5
+ local name="$1"
6
+ while pgrep -f "python3 -u -m alea.train.*${name}" >/dev/null; do
7
+ sleep 30
8
+ done
9
+ }
10
+
11
+ run_evals() {
12
+ local ckpt="$1"
13
+ local tag="$2"
14
+ if [ ! -f "$ckpt" ]; then
15
+ echo "missing checkpoint: $ckpt" > "runs/${tag}_missing.log"
16
+ return 0
17
+ fi
18
+ python3 -u -m alea.eval --ckpt "$ckpt" --data data/pilot_dev_balanced.jsonl --skip-structural > "runs/${tag}_pilot_dev.log" 2>&1
19
+ python3 -u -m alea.eval --ckpt "$ckpt" --data data/jb7_dev.jsonl --skip-structural > "runs/${tag}_jb7_dev.log" 2>&1
20
+ }
21
+
22
+ wait_train pilot_open_v6
23
+ run_evals runs/pilot_open_v6/final.pt pilot_open_v6
24
+
25
+ if ! pgrep -f "alea.train.*pilot_open_v8b" >/dev/null; then
26
+ nohup bash run_pilot_b.sh > runs/pilot_open_v8b.log 2>&1 < /dev/null &
27
+ fi
28
+ wait_train pilot_open_v8b
29
+ run_evals runs/pilot_open_v8b/final.pt pilot_open_v8b
30
+
31
+ if ! pgrep -f "alea.train.*pilot_mix_v8b" >/dev/null; then
32
+ nohup bash run_pilot_c.sh > runs/pilot_mix_v8b.log 2>&1 < /dev/null &
33
+ fi
34
+ wait_train pilot_mix_v8b
35
+ run_evals runs/pilot_mix_v8b/final.pt pilot_mix_v8b
36
+
37
+ echo done > runs/pilot_orchestrator.done