interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-sovereign-core-mv / crates / aien-omega-q38 / om / run.sh

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