Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-train/blob/main/streams/math-training/queue.sh # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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). 3 cd "$(dirname "$0")" 4 S=../../.scratch; EV=../../evidence/math-training; PY=$HOME/.venv/bin/python 5 R() { nice -n 10 ./run_retry.sh "$S/$1.log" $PY -u "$@" ; } 6 until [ -f $EV/e1-time.json ]; do sleep 30; done 7 nice -n 10 ./run_retry.sh $S/e3-nonlin.log $PY -u e3.py nonlin 8 nice -n 10 ./run_retry.sh $S/e4.log $PY -u e4.py 9 for 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 10 for 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 11 for 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 12 best() { $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'])"; } 13 for 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 14 lr=$(best lora); nice -n 10 ./run_retry.sh $S/e2-lora64.log $PY -u e2.py train lora64 $lr 0 15 nice -n 5 ./run_retry.sh $S/e2-time.log quiet-measure flock /tmp/aien-gb10.lock $PY -u e2.py time 16 echo QUEUE-DONE $(date -u +%H:%M:%SZ) > $S/queue.done