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 / crates / aien-omega-q38 / om / run.sh
| 1 | #!/usr/bin/env bash |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | set -euo pipefail |
| 4 | p=$(cd "$(dirname "$0")" && pwd) |
| 5 | root=$(cd "$p/../../.." && pwd) |
| 6 | out=${Q38_PREFILL_OUT:-$root/target/q38-prefill} |
| 7 | : "${OMEGA_OMC:?set the pinned Omega compiler}" |
| 8 | : "${OMEGA_BRIDGE:?set the pinned Omega Bridge source}" |
| 9 | test "$(sha256sum < "$OMEGA_OMC" | cut -c1-64)" = 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f |
| 10 | test "$(sha256sum < "$OMEGA_BRIDGE/src/toc.om" | cut -c1-64)" = 3a416aea14770bd3fab4880337e89020c10476214d7a3c139d8cd1a8ba1423e6 |
| 11 | test "$(sha256sum < "$OMEGA_BRIDGE/tools/bridge-seeded" | cut -c1-64)" = 23ff7a2356bb5d980060a4685a27ac46587013069b7d24b37c2873d7ee659b37 |
| 12 | mkdir -p "$out" |
| 13 | OMEGA_SEEDED_OMC="$OMEGA_OMC" sh "$OMEGA_BRIDGE/tools/bridge-seeded" c "$p/plan.om" > "$out/plan.c" |
| 14 | OMEGA_SEEDED_OMC="$OMEGA_OMC" sh "$OMEGA_BRIDGE/tools/bridge-seeded" h "$p/plan.om" > "$out/plan.h" |
| 15 | cmp "$p/plan.c" "$out/plan.c" |
| 16 | cmp "$p/plan.h" "$out/plan.h" |
| 17 | (cd "$p" && sha256sum -c identity.sha256) |
| 18 | "${CC:-cc}" -std=gnu11 -O2 -fPIC -shared "$out/plan.c" -o "$out/plan.so" |
| 19 | python3 "$p/check.py" "$out/plan.so" |
| 20 | python3 "$p/mutants.py" |
| 21 | echo 'PASS Omega checkpoint policy, regenerated binding, oracle and mutants' |