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 / docs / campaigns / open-model-qwen3 / evidence-v6 / build.sh
| 1 | #!/usr/bin/env bash |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # OPEN-MODEL-QWEN3 v6 build (QUALIFICATION-v6.md Section 6): clean clone of sovereign-core at the frozen commit, |
| 18 | # pinned omega/physics/aienos via scripts/pins.sh --gpu, release build of aien-cli and the two campaign examples. |
| 19 | set -u |
| 20 | SC_COMMIT=${1:?sovereign-core commit} |
| 21 | B=/home/drakestapleton/workspace/oq3-v6-build-${SC_COMMIT:0:7} |
| 22 | [ ! -e "$B" ] || { echo "build: $B exists" >&2; exit 2; } |
| 23 | mkdir -p "$B" |
| 24 | git clone -q https://github.com/aien-dev/aien-sovereign-core "$B/sc" && git -C "$B/sc" checkout -q "$SC_COMMIT" || exit 4 |
| 25 | cd "$B/sc" |
| 26 | bash scripts/pins.sh --gpu "$B/pins" > "$B/pins.out" 2>&1; echo "pins rc=$?" |
| 27 | . "$B/pins/env.sh" |
| 28 | export CARGO_TARGET_DIR=$B/target |
| 29 | unset AIEN_FORCE_CPU_STUB AIEN_OMEGA_GPU_LIB AIEN_OMEGA_COMPOSE_LIB AIEN_OMEGA_COMPOSE_DIR AIEN_OMEGA_COMPOSE_SHA AIEN_DEV_FALLBACK |
| 30 | env | grep '^AIEN_' | sort |
| 31 | echo "cargo build -vv --release -p aien-cli" |
| 32 | nice -n 19 cargo build -vv --release -p aien-cli > "$B/build-cli.log" 2>&1; echo "aien-cli rc=$?" |
| 33 | echo "cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge" |
| 34 | nice -n 19 cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge > "$B/build-examples.log" 2>&1; echo "examples rc=$?" |
| 35 | grep -o 'has_omega_[a-z_]*' "$B/build-cli.log" | sort -u |
| 36 | echo "sc $(git -C "$B/sc" rev-parse HEAD) dirty=$(git -C "$B/sc" status --porcelain | wc -l)" |
| 37 | for r in omega physics aienos; do [ -d "$B/pins/$r" ] && echo "$r $(git -C "$B/pins/$r" rev-parse HEAD) dirty=$(git -C "$B/pins/$r" status --porcelain | wc -l)"; done |
| 38 | cat "$B/pins/omega/physics.lock" "$B/pins/omega/aienos.lock" 2>/dev/null |
| 39 | sha256sum "$B/sc/Cargo.lock" "$B/target/release/aien-cli" "$B/target/release/examples/np1_reference" "$B/target/release/examples/np1_edit_merge" |