Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/blob/main/scripts/own30b-chip-run.sh # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / scripts / own30b-chip-run.sh` 49 lines ยท 2502 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 # OWN-30B cut 3: one sealed chip run of own30b_check under the GB10 lock protocol. 18 # 19 # scripts/own30b-chip-run.sh [own30b_check chip args...] 20 # 21 # Announces with crumb whisper, takes /tmp/aien-gb10.lock for the whole run, records 22 # start/end stamps, the binary digest, the exact command, raw output and exit code, then 23 # refreshes SHA256SUMS in the evidence dir. Never runs two loads at once (the binary itself 24 # refuses to load with under 70 GB available). 25 set -uo pipefail 26 ev=$1; name=$2; bin=$3; golden=$4; shift 4 27 ckpt=${OWN30B_CHECKPOINT:-$HOME/models/qwen3-30b-a3b-instruct-2507-fp8} 28 mkdir -p "$ev/$name" 29 repo=$(cd "$(dirname "$0")/.." && pwd) 30 { 31 echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)" 32 echo "sc commit $(git -C "$repo" rev-parse HEAD) branch $(git -C "$repo" rev-parse --abbrev-ref HEAD)" 33 echo "binary $bin sha256 $(sha256sum "$bin" | cut -d' ' -f1)" 34 echo "golden $golden sha256 $(sha256sum "$golden" | cut -d' ' -f1)" 35 echo "omega lib ${AIEN_OMEGA_GPU_LIB:-pinned omega.lock} ${AIEN_OMEGA_GPU_LIB_SHA256:-}" 36 echo "env AIEN_OMEGA_SPIN_US=${AIEN_OMEGA_SPIN_US:-} AIEN_OMEGA_CTA_BUDGET=${AIEN_OMEGA_CTA_BUDGET:-}" 37 echo "cmd flock /tmp/aien-gb10.lock $bin chip $ckpt $golden $ev/$name $*" 38 free -g | head -2 39 uname -r 40 } > "$ev/$name.start" 41 crumb whisper odysseus-9e "$repo" - "${OWN30B_WHISPER:-OWN-30B (F): chip run $name, ~10 min}" >/dev/null 2>&1 || true 42 flock /tmp/aien-gb10.lock "$bin" chip "$ckpt" "$golden" "$ev/$name" "$@" > "$ev/$name.raw" 2> "$ev/$name.err" 43 rc=$? 44 echo "$rc" > "$ev/$name.rc" 45 { echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"; free -g | head -2; } > "$ev/$name.end" 46 ( cd "$ev" && find . -type f ! -name SHA256SUMS -print0 | sort -z | xargs -0 sha256sum > SHA256SUMS ) 47 echo "$name rc=$rc" 48 grep -E "^(LOAD|PARITY|CONTROL|TOKENS|SUMMARY)" "$ev/$name.raw" 49 exit "$rc"