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 / queue.sh

16 lines · 1309 bytes Raw Blame History
1#!/bin/sh
2# Sequential GPU queue for L283 after the E1 timing run: E3 nonlin, E4, E2 sweep + controls, E2 timing (quiet lock).
3cd "$(dirname "$0")"
4S=../../.scratch; EV=../../evidence/math-training; PY=$HOME/.venv/bin/python
5R() { nice -n 10 ./run_retry.sh "$S/$1.log" $PY -u "$@" ; }
6until [ -f $EV/e1-time.json ]; do sleep 30; done
7nice -n 10 ./run_retry.sh $S/e3-nonlin.log $PY -u e3.py nonlin
8nice -n 10 ./run_retry.sh $S/e4.log $PY -u e4.py
9for lr in 1e-4 3e-4 1e-3; do nice -n 10 ./run_retry.sh $S/e2-lora-$lr.log $PY -u e2.py train lora $lr 0; done
10for lr in 1e-4 3e-4 1e-3; do nice -n 10 ./run_retry.sh $S/e2-phm-$lr.log $PY -u e2.py train phm $lr 0; done
11for lr in 1e-5 1e-4 1e-3; do nice -n 10 ./run_retry.sh $S/e2-fourier-$lr.log $PY -u e2.py train fourier $lr 0; done
12best() { $PY -c "import json,glob,sys; 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'])"; }
13for m in lora phm fourier; do lr=$(best $m); nice -n 10 ./run_retry.sh $S/e2-$m-$lr-s1.log $PY -u e2.py train $m $lr 1; done
14lr=$(best lora); nice -n 10 ./run_retry.sh $S/e2-lora64.log $PY -u e2.py train lora64 $lr 0
15nice -n 5 ./run_retry.sh $S/e2-time.log quiet-measure flock /tmp/aien-gb10.lock $PY -u e2.py time
16echo QUEUE-DONE $(date -u +%H:%M:%SZ) > $S/queue.done