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 / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 05-measure.sh

49 lines · 2416 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# 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.
19set -euo pipefail
20E=~/workspace/headstart-exp
21H=$E/headstart
22WT=~/aien-sovereign-core/.claude/worktrees/agent-adc52ad674d7b621a
23export HS_COMMIT=4c83e389e8fa8790af6f3199958e6570f976db2d
24export HS_WORK=$E/aien-work
25export HS_DATE=20261015
26export HS_RUN_ID=headstart-m5-20261015-4c83e38
27export 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.
30export HS_HOLD=${HS_HOLD-1}
31export HS_HOLD_OWNER=hs-m5
32export HS_HOLD_MINUTES=5
33export HS_HOLD_REASON="headstart M5 timing sample"
34export HS_CARGO=$H/cargo/target/release/cargo
35export HS_RUSTC=$H/rustc/build/host/stage1/bin/rustc
36export HS_ARM_ENV_OFF="CARGO_UNSTABLE_HEADSTART=false"
37export 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.
40export HS_LOAD_MAX=${HS_LOAD_MAX:-3}
41export HS_AB_JOBS=${HS_AB_JOBS-"4 8 16"}
42export HS_AB_JOBS_SAMPLES=3
43export HS_VERIFY_TEST_PKGS="spark-harness aien-proof"
44export HS_VERIFY_ENV_ON="RUSTFLAGS=-Zearly-metadata-verify"
45export HS_BODY_FILE=crates/cortex-rs/src/lib.rs
46export HS_BODY_ANCHOR=' pub fn in_memory() -> Result<Self, String> {'
47export HS_IFACE_FILE=crates/cortex-rs/src/lib.rs
48export HS_EDIT_REASON="same edit targets as the M0 stable baseline (baseline-20261015-4c83e38 manifest.incremental.reason), so the incremental series are comparable"
49exec bash "$WT/scripts/bench/headstart-aien.sh" "$@"