interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-train / streams / math-training / queue2.sh

11 lines · 947 bytes Raw Blame History
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.
3cd "$(dirname "$0")"
4S=../../.scratch; EV=../../evidence/math-training; PY=$HOME/.venv/bin/python
5L() { log=$1; shift; nice -n 10 ./run_retry.sh "$log" flock /tmp/aien-gb10.lock "$@"; }
6for lr in 1e-4 1e-3; do L $S/e2-fourier-$lr.log $PY -u e2.py train fourier $lr 0; done
7best() { $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'])"; }
8for 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
9lr=$(best lora); L $S/e2-lora64.log $PY -u e2.py train lora64 $lr 0
10nice -n 5 ./run_retry.sh $S/e2-time.log quiet-measure flock /tmp/aien-gb10.lock $PY -u e2.py time
11echo QUEUE-DONE $(date -u +%H:%M:%SZ) > $S/queue.done