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/spin-20261007T0726Z/run-ab.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 / spin-20261007T0726Z / run-ab.sh` 37 lines ยท 2402 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # A/B: same aien-cli (sc-spin, omega `94a75e2`), Qwen3-4B, made-up goals (not campaign tasks). 3 # Run A: AIEN_OMEGA_SPIN_US unset (omega default 0). Run B: AIEN_OMEGA_SPIN_US=2000. Diagnostic only. 4 set -u 5 S=$(cd "$(dirname "$0")" && pwd) 6 BIN=$S/target/release/aien-cli 7 M=$HOME/models/qwen3-4b-instruct-2507-`cdbee75` 8 sha256sum "$BIN" "$0" $M/*.safetensors $M/model.safetensors.index.json $M/tokenizer.json $M/config.json > $S/identity.txt 9 mem() { awk '/^MemFree|^Cached:/{printf "%s=%d ",$1,$2/1024}' /proc/meminfo; } 10 one() { 11 local tag=$1 spin=$2 R=$S/run-$1 12 mkdir -p $R/ws; printf 'apples are red\n' > $R/ws/README.txt 13 ( export AIEN_COMPOSE_DIR=$R/compose AIEN_PROVENANCE_DIR=$R/prov AIEN_RUNTIME_SOCK=$R/aien.sock \ 14 AIEN_RUNTIME_STATE_DIR=$R/state AIEN_REQUIRE_CHECKPOINT=1 AIEN_REQUIRE_BLACKWELL=1 \ 15 AIEN_MODEL_PATH=$M/model.safetensors.index.json AIEN_TOKENIZER_PATH=$M/tokenizer.json \ 16 AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1 AIEN_KV_CONTEXT_TOKENS=4096 AIEN_COMPOSE_MAX_TOKENS=64 AIEN_STEP_LOG=1 17 [ -n "$spin" ] && export AIEN_OMEGA_SPIN_US=$spin 18 echo "pre $(date -u +%T) $(mem)" > $R/mem.txt 19 t0=$(date +%s%3N) 20 setsid "$BIN" daemon > $R/daemon.log 2>&1 < /dev/null & 21 P=$! 22 i=0; while ! grep -q 'Warm-up:' $R/daemon.log && kill -0 $P 2>/dev/null && [ $i -lt 1200 ]; do sleep 0.5; i=$((i+1)); done 23 echo "warm-up seen=$(grep -c 'Warm-up:' $R/daemon.log) after $(( $(date +%s%3N)-t0 )) ms" >> $R/mem.txt 24 if grep -q 'Warm-up:' $R/daemon.log && kill -0 $P 2>/dev/null; then 25 "$BIN" compose propose --goal "Create the file fruits.txt listing three fruits, one per line: apple, pear, plum." --workspace $R/ws > $R/propose-a.json 2> $R/propose-a.err 26 "$BIN" compose propose --goal "Create the file colors.txt listing twelve colors, one per line." --workspace $R/ws > $R/propose-b.json 2> $R/propose-b.err 27 "$BIN" compose propose --goal "Create the file garden.txt with eight short lines about planning a vegetable garden." --workspace $R/ws > $R/propose-c.json 2> $R/propose-c.err 28 "$BIN" compose shutdown > $R/shutdown.json 2>&1 29 fi 30 i=0; while kill -0 $P 2>/dev/null && [ $i -lt 240 ]; do sleep 0.5; i=$((i+1)); done 31 echo "daemon exited=$(kill -0 $P 2>/dev/null && echo no-still-running || echo yes) $(date -u +%T) $(mem)" >> $R/mem.txt ) 32 echo "run $tag done" 33 } 34 one A "" 35 one B 2000 36 one A2 "" 37 one B2 2000