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 / docs / campaigns / open-model-qwen3 / evidence-v8 / build.sh

42 lines · 2573 bytes Raw Blame History
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 v8 build (SPEC-v8.md Section 3, as evidence-v7/build.sh with the v8 name): clean clone of
18# sovereign-core at the given commit, pinned omega/physics/aienos via scripts/pins.sh --gpu, release build of aien-cli and
19# the two campaign examples. CPU only; run `quietlock check` first and never inside another lane's hold.
20set -u
21SC_COMMIT=${1:?sovereign-core commit}
22B=/home/drakestapleton/workspace/oq3-v8-build-${SC_COMMIT:0:7}
23[ ! -e "$B" ] || { echo "build: $B exists" >&2; exit 2; }
24mkdir -p "$B"
25git clone -q https://github.com/aien-dev/aien-sovereign-core "$B/sc" && git -C "$B/sc" checkout -q "$SC_COMMIT" || exit 4
26cd "$B/sc"
27bash scripts/pins.sh --gpu "$B/pins" > "$B/pins.out" 2>&1; echo "pins rc=$?"
28. "$B/pins/env.sh"
29export CARGO_TARGET_DIR=$B/target
30unset AIEN_FORCE_CPU_STUB AIEN_OMEGA_GPU_LIB AIEN_OMEGA_COMPOSE_LIB AIEN_OMEGA_COMPOSE_DIR AIEN_OMEGA_COMPOSE_SHA AIEN_DEV_FALLBACK AIEN_BACKEND
31env | grep '^AIEN_' | sort
32date -u +%FT%TZ
33echo "cargo build -vv --release -p aien-cli"
34nice -n 19 cargo build -vv --release -p aien-cli > "$B/build-cli.log" 2>&1; echo "aien-cli rc=$?"
35echo "cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge"
36nice -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=$?"
37date -u +%FT%TZ
38grep -o 'has_omega_[a-z_]*' "$B/build-cli.log" | sort -u
39echo "sc $(git -C "$B/sc" rev-parse HEAD) dirty=$(git -C "$B/sc" status --porcelain | wc -l)"
40for 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
41cat "$B/pins/omega/physics.lock" "$B/pins/omega/aienos.lock" 2>/dev/null
42sha256sum "$B/sc/Cargo.lock" "$B/target/release/aien-cli" "$B/target/release/examples/np1_reference" "$B/target/release/examples/np1_edit_merge"