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 / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 05-measure.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 | # Stage 5: the M5 A/B measurement through the shared M0 runner (extended). |
| 18 | # Same patched toolchain for both arms; only CARGO_UNSTABLE_HEADSTART differs. |
| 19 | set -euo pipefail |
| 20 | E=~/workspace/headstart-exp |
| 21 | H=$E/headstart |
| 22 | WT=~/aien-sovereign-core/.claude/worktrees/agent-adc52ad674d7b621a |
| 23 | export HS_COMMIT=4c83e389e8fa8790af6f3199958e6570f976db2d |
| 24 | export HS_WORK=$E/aien-work |
| 25 | export HS_DATE=20261015 |
| 26 | export HS_RUN_ID=headstart-m5-20261015-4c83e38 |
| 27 | export HS_OUT=${HS_OUT:-$WT/benchmarks/data/headstart/patched-20261015-4c83e38} |
| 28 | # Per-sample hold of the shared quiet flag (orchestrator, 2026-10-15): the |
| 29 | # peer tokenizer pauses while someone holds it; held one sample at a time. |
| 30 | export HS_HOLD=${HS_HOLD-1} |
| 31 | export HS_HOLD_OWNER=hs-m5 |
| 32 | export HS_HOLD_MINUTES=5 |
| 33 | export HS_HOLD_REASON="headstart M5 timing sample" |
| 34 | export HS_CARGO=$H/cargo/target/release/cargo |
| 35 | export HS_RUSTC=$H/rustc/build/host/stage1/bin/rustc |
| 36 | export HS_ARM_ENV_OFF="CARGO_UNSTABLE_HEADSTART=false" |
| 37 | export HS_ARM_ENV_ON="CARGO_UNSTABLE_HEADSTART=true" |
| 38 | # Host baseline load is about 2 to 3 from non-compiler services (ola_runner, |
| 39 | # aien-serve-http), so the M0 value 2 would cap nearly every wait. |
| 40 | export HS_LOAD_MAX=${HS_LOAD_MAX:-3} |
| 41 | export HS_AB_JOBS=${HS_AB_JOBS-"4 8 16"} |
| 42 | export HS_AB_JOBS_SAMPLES=3 |
| 43 | export HS_VERIFY_TEST_PKGS="spark-harness aien-proof" |
| 44 | export HS_VERIFY_ENV_ON="RUSTFLAGS=-Zearly-metadata-verify" |
| 45 | export HS_BODY_FILE=crates/cortex-rs/src/lib.rs |
| 46 | export HS_BODY_ANCHOR=' pub fn in_memory() -> Result<Self, String> {' |
| 47 | export HS_IFACE_FILE=crates/cortex-rs/src/lib.rs |
| 48 | export HS_EDIT_REASON="same edit targets as the M0 stable baseline (baseline-20261015-4c83e38 manifest.incremental.reason), so the incremental series are comparable" |
| 49 | exec bash "$WT/scripts/bench/headstart-aien.sh" "$@" |