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-sovereign-core-mv/blob/main/docs/inference/evidence/cta1024-20261012T0315Z/timing-leg.sh # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. 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-sovereign-core-mv / docs / inference / evidence / cta1024-20261012T0315Z / timing-leg.sh` 17 lines ยท 1791 bytes Raw Blame History 1 N=${N:-smoke-timing-cta1024} 2 #!/bin/bash 3 # Rebuild the smoke binary with the per-op timing table (pinned GB10 engine), then one leg at the daemon defaults 4 # (CTA 1024, spin 2000) with AIEN_SMOKE_LONG=1, under one hold. Output: smoke-timing-cta1024.{raw,err,json,rc}. 5 W=~/workspace/.worktrees/cta1024; E=$W/docs/inference/evidence/cta1024-20261012T0315Z; cd $W || exit 2 6 unset AIEN_FORCE_CPU_STUB AIEN_OMEGA_GPU_LIB AIEN_OMEGA_COMPOSE_LIB AIEN_OMEGA_COMPOSE_DIR AIEN_OMEGA_COMPOSE_SHA AIEN_DEV_FALLBACK AIEN_BACKEND 7 . $W/target-gb10/pins/env.sh 8 CARGO_TARGET_DIR=$W/target-gb10 cargo build --release -p aien-runtime --example qwen3_8b_smoke > $W/target-gb10-build-$N.log 2>&1; rc=$? 9 echo "build rc=$rc $(grep -cE 'building the (CPU )?stub|developer override' $W/target-gb10-build-$N.log) stub-lines" 10 [ $rc -eq 0 ] || { grep -A6 "^error" $W/target-gb10-build-$N.log | head -20; echo chain-done; exit 1; } 11 BIN=$W/target-gb10/release/examples/qwen3_8b_smoke; sha256sum $BIN > $E/$N-binary.sha256 12 MODEL_DIR=${MODEL_DIR:-$HOME/models/qwen3-8b}; N=${N:-smoke-timing-cta1024} 13 leg() { date -u +%FT%TZ > $E/$N.start 14 env -u AIEN_DEV_FALLBACK AIEN_SMOKE_LONG=1 AIEN_GPU_BACKEND=omega AIEN_REQUIRE_BLACKWELL=1 "$BIN" "$MODEL_DIR" gb10 > $E/$N.raw 2> $E/$N.err; echo $? > $E/$N.rc; date -u +%FT%TZ > $E/$N.end 15 grep "^{" $E/$N.raw > $E/$N.json; } 16 quietlock hold --owner `ade3c837`-timing --minutes 20 --reason "Qwen3-8B smoke per-op timing, one leg under 3 min, sc#384" -- bash -c "$(declare -f leg); E=$E; N=$N; BIN=$BIN; MODEL_DIR=$MODEL_DIR; leg" 17 echo "hold rc=$? leg rc=$(cat $E/$N.rc)"; jq -r '"cta=\(.cta_budget) spin=\(.spin_us) fallback=\(.fallback_count) " + (.prompts[]|select(.name=="p3")|"p3 ms=\(.ms|round) tokens=\(.output_ids|length)") + "\nOPS: \(.op_timing)"' $E/$N.json; echo chain-done