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/omega-mv/blob/main/tools/run_t3_baseline_chip.sh # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tools / run_t3_baseline_chip.sh` 42 lines ยท 2528 bytes Raw Blame History 1 #!/bin/bash 2 # SPDX-License-Identifier: Apache-2.0 3 # Copyright 2026 Drake Stapleton (AIEN / aien-dev) 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 # run_t3_baseline_chip.sh EVIDENCE_DIR [PHYSICS_DIR] 18 # OWN-30B T3 baseline: the existing FFMA FP8 grouped GEMM (omega_gpu_fp8gemm_api, commit `14ffa824` lineage) at the 19 # largest M its API accepts (1024 rows = 128 tokens x top-8), gate|up (n 1536, k 2048) and down (n 2048, k 768), 20 # 5 independent process runs per shape (each: upload, parity vs the per-row GEMV, medians of 9, caches evicted). 21 # Kernel only, no model load. Caller holds the GB10 lock: flock /tmp/aien-gb10.lock tools/run_t3_baseline_chip.sh EVID 22 set -u 23 EVID="${1:?evidence dir}"; PHYS="${2:-$HOME/workspace/physics-own30b-k}"; OUT="${OUT_DIR:-/tmp/t3-omega}" 24 "$(dirname "$0")/require_physics_pin.sh" "$PHYS" || exit 2 # omega#456: refuse a Physics checkout other than physics.lock 25 HERE="$(cd "$(dirname "$0")/.." && pwd)" 26 mkdir -p "$EVID"; cd "$HERE" || exit 2 27 { 28 echo "start $(date -u +%FT%TZ) omega=$(git rev-parse HEAD) branch=$(git rev-parse --abbrev-ref HEAD) dirty=$(git status --porcelain | wc -l) physics=$PHYS physics_commit=$(git -C "$PHYS" rev-parse HEAD)" 29 uname -a; nvidia-smi --query-gpu=name,driver_version --format=csv,noheader 2>/dev/null; free -g | head -2 30 } > "$EVID/device.txt" 31 make OUT_DIR="$OUT" PHYSICS_DIR="$PHYS" -j10 "$OUT/gpu_fp8gemm_test" > "$EVID/build.log" 2>&1 || { echo "T3_BASELINE: FAIL build"; exit 1; } 32 T="$OUT/gpu_fp8gemm_test"; fail=0 33 for shape in gateup down; do 34 for r in 1 2 3 4 5; do 35 $T --shape $shape --tokens 128 --reps 9 --out "$EVID/receipt-$shape-r$r.json" > "$EVID/$shape-r$r.log" 2>&1 36 rc=$?; echo "$shape r$r exit $rc" >> "$EVID/exits.txt"; [ $rc = 0 ] || fail=1 37 grep -h "GEMM (medians" "$EVID/$shape-r$r.log" | sed "s/^/$shape r$r: /" 38 done 39 done 40 echo "end $(date -u +%FT%TZ)" >> "$EVID/device.txt" 41 (cd "$EVID" && sha256sum *.json *.log *.txt > SHA256SUMS) 42 if [ $fail = 0 ]; then echo "T3_BASELINE: PASS"; else echo "T3_BASELINE: FAIL"; exit 1; fi