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 / evidence / OMEGALLM / gpu-r7 / run / drive.sh

31 lines · 1583 bytes Raw Blame History
1#!/bin/sh
2# drive rung-7 legs, one spark-window per leg, until step 30000, the first failure, or the
3# pre-registered step-2000 stop rule (chip geval at 2000 must be below 1797226 micro-nats)
4cd /tmp/gk/r7/run || exit 2
5i=$(wc -l < windows.txt 2>/dev/null || echo 0)
6while :; do
7 cur=$(grep -h '^T ' train.txt 2>/dev/null | tail -n 1 | cut -d' ' -f2)
8 [ -n "$cur" ] && [ "$cur" -ge 30000 ] && break
9 if [ -n "$cur" ] && [ "$cur" -ge 2000 ]; then
10 e=$(grep -A3 '^step=2000 ' geval.txt | grep '^E ' | cut -d' ' -f4)
11 [ -z "$e" ] && { echo "no step-2000 E line" >> windows.txt; exit 6; }
12 [ "$e" -lt 1797226 ] || { echo "STOP RULE: step-2000 E $e not below 1797226" >> windows.txt; exit 5; }
13 fi
14 i=$((i + 1)); n=gg-r7t$i
15 echo "$(date -u +%Y-%m-%dT%H:%MZ) omp-ollm STARTING $n WINDOW (rung 7 v2-shape gtrainf leg from ${cur:-0} + geval, ~18 min, --quiet none)" >> ~/handoffs/BOARD.md
16 touch /tmp/aien-q36-live-down-for-tests
17 timeout 3600 spark-window open $n --ledger omp-ollm-$n --lease 22 --gb10 shared --quiet none --wait > win-$i.txt 2>&1
18 o=$?
19 r=99
20 if [ $o -eq 0 ]; then
21 spark-window run /tmp/gk/r7/run/leg.sh >> win-$i.txt 2>&1; r=$?
22 spark-window close >> win-$i.txt 2>&1
23 fi
24 id=$(grep -o '20[0-9]\{6\}T[0-9]\{6\}Z-[0-9a-f]\{6\}' win-$i.txt | head -n 1)
25 echo "$(date -u +%Y-%m-%dT%H:%MZ) omp-ollm DONE WINDOW $n $id closed (open rc $o, leg rc $r)" >> ~/handoffs/BOARD.md
26 rm -f /tmp/aien-q36-live-down-for-tests
27 echo "$n $id open=$o leg=$r" >> windows.txt
28 [ $o -ne 0 ] && exit 3
29 [ $r -ne 0 ] && exit 4
30done
31echo finished >> windows.txt