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 / evidence / OMEGALLM / v3 / chip-g1 / run.sh
| 1 | #!/bin/sh |
| 2 | # v3 chip gate window v3-g1 on the integrated build (feat/omega-llm-v3 after the v2 and BF16 merges): |
| 3 | # F f32 regressions against the rung-7 receipts, L the CONTRACT-V3 L 16 gates, B the BF16 gates. |
| 4 | # Receipts land beside this script; scratch checkpoints in $S. |
| 5 | D=~/handoffs/omega-llm-20261101/v1-data |
| 6 | G=/tmp/gk/v3i/b-gb10 |
| 7 | P=$G/ollm-gb10 |
| 8 | P7=/tmp/gk/r7/gpu2/ollm-gb10 |
| 9 | CKB8=/tmp/gk/r7/ckb8.bin |
| 10 | S=/tmp/gk/v3i/chip-g1 |
| 11 | E=$(cd "$(dirname "$0")" && pwd) |
| 12 | cd $S || exit 2 |
| 13 | run() { |
| 14 | o=$1; b=$2; c=$3; tl=$4; shift 4 |
| 15 | { echo "binary: $(sha256sum $b | cut -c1-64)"; echo "ck: $(sha256sum $c | cut -c1-64)"; echo "cmd: $*" |
| 16 | s=$(date -u +%s%N) |
| 17 | case $1 in |
| 18 | gbfrag) timeout $tl $b gbfrag $c 2>&1 ;; |
| 19 | gbcmp|gbcmp2|gcmp2|gacmp) timeout $tl $b $1 $c $D/$2 $3 2>&1 ;; |
| 20 | geval) timeout $tl $b geval $c $D/held.tok $2 $D/merges4096.bin 2>&1 ;; |
| 21 | gtrainf) timeout $tl $b gtrainf $c $D/train.tok $2 $3 2>&1 ;; |
| 22 | esac |
| 23 | echo rc=$?; echo wall_ns=$(( $(date -u +%s%N) - s )) |
| 24 | [ "$1" = gtrainf ] && echo "ck_after: $(sha256sum $c | cut -c1-64)"; } > $E/$o |
| 25 | } |
| 26 | # F: f32 regressions |
| 27 | cp /tmp/gk/r7/ckL0.bin ckg.bin |
| 28 | run F1-t250-v2.txt $P ckg.bin 900 gtrainf 250 250 |
| 29 | run F2-ge-v2-250.txt $P ckg.bin 600 geval 2243 |
| 30 | run F3-ga-v2-250.txt $P ckg.bin 900 gacmp train.tok 7 |
| 31 | rm -f ckg.bin |
| 32 | cp /tmp/gk/r6/ck9000.bin ckv1.bin |
| 33 | run F4-t200-v1.txt $P ckv1.bin 900 gtrainf 9200 200 |
| 34 | rm -f ckv1.bin |
| 35 | run F5-c2-v2max.txt $P $CKB8 900 gcmp2 train.tok 7 |
| 36 | run F6-ge-r7-30000.txt $P /tmp/gk/r7/run/ck30000.bin 600 geval 2243 |
| 37 | run F7-ge-r6-30000.txt $P /tmp/gk/r6/ck30000.bin 600 geval 2243 |
| 38 | run F8-c2-small-P.txt $P cks.bin 900 gcmp2 train.dec 3 |
| 39 | run F8-c2-small-P7.txt $P7 cks.bin 900 gcmp2 train.dec 3 |
| 40 | # L: L 16 (v3 maximum depth) |
| 41 | run L1-c2-l16b8-P.txt $P ck16b8.bin 2400 gcmp2 train.tok 7 |
| 42 | run L2-c2-l16b8-R.txt $G/ollm-mut-r-gb10 ck16b8.bin 2400 gcmp2 train.tok 7 |
| 43 | run L3-ga-l16-P.txt $P ck16.bin 900 gacmp train.tok 7 |
| 44 | run L4-bcmp-l16-P.txt $P ck16.bin 900 gbcmp train.tok 7 |
| 45 | # B: BF16 gates (gpu-bf/g1 set) and the gbfrag padding check (gpu-bf/fix-pad) |
| 46 | run B1-frag-P.txt $P $CKB8 900 gbfrag |
| 47 | for m in u l o v n; do run B2-frag-$m.txt $G/ollm-mut-$m-gb10 $CKB8 900 gbfrag; done |
| 48 | run B3-bcmp-b8-P.txt $P $CKB8 900 gbcmp train.tok 7 |
| 49 | cp /tmp/gk/r7/ckL0.bin ckL0.bin |
| 50 | run B4-bcmp-L0-P.txt $P ckL0.bin 900 gbcmp train.tok 7 |
| 51 | rm -f ckL0.bin |
| 52 | for m in l o v u; do run B5-bcmp-b8-$m.txt $G/ollm-mut-$m-gb10 $CKB8 900 gbcmp train.tok 7; done |
| 53 | run B6-bc2-b8-P.txt $P $CKB8 900 gbcmp2 train.tok 7 |
| 54 | exit 0 |