aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / scripts / check_local_model.sh
| 1 | #!/usr/bin/env bash |
| 2 | # Qualification only: compare native Omega model output to the pinned independent |
| 3 | # C decoder. Builds native/kernel/x86/model/check_local_model.c with the host C |
| 4 | # compiler and runs it. Usage: check_local_model.sh EVIDENCE_DIR | --self-test |
| 5 | # EVIDENCE_DIR holds omega-model-probe, reference-probe, llama.raw and checkpoints. |
| 6 | set -euo pipefail |
| 7 | cd "$(dirname "$0")/.." |
| 8 | [[ $# -eq 1 ]] || { echo "usage: check_local_model.sh EVIDENCE_DIR | --self-test" >&2; exit 2; } |
| 9 | tmp=$(mktemp -d "${TMPDIR:-/tmp}/check_local_model.XXXXXX") |
| 10 | trap 'rm -rf "$tmp"' EXIT |
| 11 | "${HOSTCC:-cc}" -std=c11 -D_DEFAULT_SOURCE -O2 -Wall -Wextra -Werror -Inative/argus \ |
| 12 | -o "$tmp/check_local_model" native/kernel/x86/model/check_local_model.c native/argus/sha256.c -lm |
| 13 | "$tmp/check_local_model" "$1" |