aien-train
AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.
Brought by drakestapleton
aien-train / streams / math-training / queue2.sh
| 1 | #!/bin/sh |
| 2 | # L283 remaining GPU queue (fourier 1e-5 seed 0 already done, receipt in evidence): every GPU run holds /tmp/aien-gb10.lock (one run at a time), so the live 30B server is not starved. |
| 3 | cd "$(dirname "$0")" |
| 4 | S=../../.scratch; EV=../../evidence/math-training; PY=$HOME/.venv/bin/python |
| 5 | L() { log=$1; shift; nice -n 10 ./run_retry.sh "$log" flock /tmp/aien-gb10.lock "$@"; } |
| 6 | for lr in 1e-4 1e-3; do L $S/e2-fourier-$lr.log $PY -u e2.py train fourier $lr 0; done |
| 7 | best() { $PY -I -c "import json,glob; r=[json.load(open(f)) for f in glob.glob('$EV/e2-train-$1-*-0.json')]; print(min(r,key=lambda x:x['val_nll'])['lr'])"; } |
| 8 | for m in lora phm fourier; do lr=$(best $m); L $S/e2-$m-$lr-s1.log $PY -u e2.py train $m $lr 1; done |
| 9 | lr=$(best lora); L $S/e2-lora64.log $PY -u e2.py train lora64 $lr 0 |
| 10 | nice -n 5 ./run_retry.sh $S/e2-time.log quiet-measure flock /tmp/aien-gb10.lock $PY -u e2.py time |
| 11 | echo QUEUE-DONE $(date -u +%H:%M:%SZ) > $S/queue.done |