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
aien-sovereign-core-mv / evidence / hum-exact-head / chip.sh
| 1 | #!/bin/bash |
| 2 | # chip.sh: L314 chip receipt. Waits for the export, then a chip window (first come, first served), then |
| 3 | # gpu_exact_head_test --chip on all 1010 hidden records (identity + timing) and --mutant 1 (must lose tokens). |
| 4 | set -u |
| 5 | E=$HOME/workspace/sc-hum-exact-head/evidence/hum-exact-head |
| 6 | T=$HOME/workspace/targets/hum-exact-head |
| 7 | X=$T/omega/gpu_exact_head_test |
| 8 | cd $E |
| 9 | until grep -q "export rc" export.txt 2>/dev/null; do sleep 30; done |
| 10 | grep -q "export rc 0" export.txt || { echo "export failed"; exit 1; } |
| 11 | mem=$(awk '/MemAvailable/ {print int($2/1048576)}' /proc/meminfo) |
| 12 | [ "$mem" -ge 8 ] || { echo "MemAvailable ${mem} GB < 8 GB, not loading"; exit 1; } |
| 13 | ledger note L314 "measure: in line for a window (chip receipt, ~1.6 GB device, short)" >/dev/null 2>&1 |
| 14 | spark-window open l314-exact-head --ledger L314 --lease 30 --wait || { echo "no window"; exit 1; } |
| 15 | spark-window run quiet-measure $X --chip $T/chip $T/hidden.bin --out chip-receipt.json > chip.txt 2>&1; echo "chip rc $?" >> chip.txt |
| 16 | spark-window run quiet-measure $X --chip $T/chip $T/hidden.bin --limit 200 --mutant 1 --out chip-mutant1.json > chip-mutant1.txt 2>&1; echo "mutant rc $?" >> chip-mutant1.txt |
| 17 | spark-window close |
| 18 | echo DONE > chip.done |