interplane.Get Omega
Read in your language

benchmarks-mv

Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.

Brought by drakestapleton

branch main Branches Tags History

benchmarks-mv / docs / orig3 / PROTOCOL.md

139 lines · 8055 bytes Raw Blame History Rendered
1<!--
2SPDX-License-Identifier: Apache-2.0
3Copyright 2026 Drake Stapleton (AIEN / aien-dev)
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18# ORIG-3 evaluator protocol (benchmarks-mv#45)
19
20The preregistration is `manifests/prereg/orig3_selector.json`; it is checked by
21`cargo run --release --bin bench_verify_prereg -- manifests/prereg`. This page is the
22operator runbook for the phases `checkpoint_pin`, `sealed_tap` and `sealed_eval` of that
23file. Nothing here is evidence: receipts live with the run that produced them.
24
25Status words: PASS, FAIL, INCONCLUSIVE, NOT_RUN, BLOCKED. Decision words: GO, NO-GO,
26INCONCLUSIVE. Host-only results are development results, never hardware qualification.
27GB10 is NOT_RUN; energy is NOT_MEASURED.
28
29## 1. Preconditions
30
311. The prereg is FROZEN (every `turing_profile.G.background` revision pinned).
322. The candidate checkpoint (mlp_scratch image) and the affine image are final; their
33 sha256 and in-image FNV-1a 64 are committed under `docs/orig3/` together with the
34 training file FNV-1a 64. A checkpoint retrained after this commit is a new prereg_id.
353. The five baseline receipts exist (`baseline_before_eval`).
364. The host is uncontended: no other measurement, no model load, no GPU experiment. The
37 resident service on port 18091 is left alone; the tap runs on host cores only.
38
39## 2. Sealed tap (one run, executed only after step 1)
40
41In an omega-mv checkout at the tap commit `1ec813726aef5f5abf8ab449c5d8bd9738f88d2e`
42(branch `feat/731-orig4-shadow-advice`), with the aienos lock repository available:
43
44```sh
45git checkout 1ec813726aef5f5abf8ab449c5d8bd9738f88d2e
46make AIENOS_LOCK_REPO=$HOME/workspace/aienos-b84c0a67 build/rx_empirical_optimizer_test
47sha256sum build/rx_empirical_optimizer_test
48mkdir -p -m 0700 $HOME/.local/state/aien-train/orig1/sealed
49OMEGA_EMPIRICAL_RECORDS=$HOME/.local/state/aien-train/orig1/sealed/records-<UTC stamp>.bin \
50EMPIRICAL_ALLOW_NO_WIN=1 ./build/rx_empirical_optimizer_test
51```
52
53Record in `run-<stamp>.meta` next to the file: source commit, whether the tree was dirty,
54the binary sha256, start and end timestamps, exit code. The record file stays mode 0600 and
55local; only its FNV-1a 64, sha256 and per-family, per-core record counts are published.
56
57Expected content per core class present: 60 H1 (family 2), 60 H2 (family 3) and 60 H3
58(family 4) records, plus the harness's own train and validation families (0 and 1), which
59the evaluation ignores. One run is about 64 s of host wall; that cost is counted once in the
60cost ledger.
61
62Then add one line `<decimal fnv> AUTHORIZED orig3-sealed-final-<stamp>` to the allow-list.
63The file is single use: it is scored once per arm and never used for training, lr choice
64or early stopping. If admission refuses it (any `oxload` status below 0) the set is void
65(INCONCLUSIVE) and the reserve rule of the prereg applies: one more run, then stop.
66
67## 3. Sealed evaluation (.om)
68
69Evaluation is the `selmain` driver of aien-train (`native/si19/selmain.om`) in mode `E`
70(first stdin byte `E`), compiled as one concatenated unit with the seeded compiler whose
71sha256 is `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9` (the unit must
72also compile unchanged under the R6 compiler `734f0a39`). The stdin layout follows the
73aien-train#25 driver interface: config word block, allow-list, the pinned image, then the
74sealed records to EOF; `sleval` totals go to stdout per partition and core class, and
75per-record lines go to fd 4. The exact invocation is fixed by aien-train#25 and is copied
76here verbatim when `orig2_scorer_and_trainer` is pinned; until then this is the shape:
77
78```sh
79OMC=/path/to/omc-191b776e
80cat deps/add32.om deps/mul32.om deps/metadata.om deps/affine.om \
81 native/si19/fixture.om native/si19/world.om native/si19/omexp.om \
82 native/si19/omexpfix.om native/si19/select.om native/si19/selmain.om > eval.om
83"$OMC" < eval.om > eval.elf && chmod +x eval.elf
84{ printf 'E'; cat config.bin allow.txt mlp_scratch.img sealed.bin; } | ./eval.elf 4>per-record.txt > totals.txt
85```
86
87Run it once per arm image (mlp_scratch, affine, untrained_control, shuffled_control,
88no_update_control). fixed_rule, always_reference, best_static, retrieval and the oracle are
89columns of the same per-record output (`rule`, `ref`, `static`, `near`, `oracle`), so they
90need no image. The exit code must be 0; 65 (image refused), 66 (dataset refused) or 67
91(unauthorized) voids the run for that arm and is reported as such.
92
93## 4. Decision
94
95Apply `metrics.decision_rule` of the prereg on SEALED-FINAL H1 + H2 per core class:
96
97- A: mlp_scratch total ps <= 0.95 x fixed_rule total ps, per core class, H1 + H2.
98- B: <= always_reference. C: <= affine (same scope).
99- D: one-sided exact sign test vs fixed_rule over discordant records: at least 37 wins of
100 60, at least 70 of 120 (smallest k with `1 - CDF[BinomialDistribution[n, 1/2], k - 1] <
101 1/20`; computed with the Wolfram Language evaluator, see the prereg `sign_test` block).
102- E: mlp_scratch total ps <= 1.00 x min(best_static, retrieval), per core class: non-inferiority
103 to the cheap heuristics with no tolerance. On the owner records (development TEST) those
104 heuristics are already 1.0048/1.0137 (best_static) and 1.00007/1.0041 (retrieval) x oracle
105 on X925/A725, while fixed_rule is 1.559/1.447; beating the fixed rule is trivial.
106- F: neither untrained_control nor shuffled_control satisfies A; no_update_control is
107 bit-identical to untrained_control (mode `C`, exit 0).
108
109Levels: (1) GO when A to F all hold on every core class present. (2) NO-GO when
110mlp_scratch > 1.01 x min(best_static, retrieval) on either core class, even if it beats the
111fixed rule, always_reference and affine: the negative result is retained and has no shadow
112promotion value. (3) INCONCLUSIVE otherwise. A win over the fixed rule alone is reported as
113"beats incumbent, not superior to cheap heuristics" and is never GO. The paired sign tests
114vs retrieval and vs best_static (same thresholds) are reported, not gated. H3 (pressure) and
115the development TEST families of the training run are reported under their own headings and
116never enter the decision. The optional `existing_c_costmodel` comparison, if its per-record
117choice is recoverable, is reported with its own cost column and is never a teacher.
118
119## 5. Report
120
121One status per claim in the prereg `claims` list. Keep negative, void and inconclusive
122results. State on every report that the evaluator and the trainer are the same owner and
123that sealing is temporal (the records did not exist before the checkpoint pin), which is
124weaker than an independent judge.
125
126## 6. Judge and recorded outcome
127
128The rule of section 4 is applied by `docs/orig3/judge.sh` (disclosed POSIX awk glue, kept
129byte-identical to the copy that ran; its sha256 is in `evidence/ORIG3-SELECTOR/SHA256SUMS`,
130which is why it carries no license header) and by its native twin
131`src/bin/bench_orig3_judge.rs`. Both take the four per-record files (mlp, affine, shuffled,
132untrained) and print the same lines; `tests/orig3_judge.rs` checks that the Rust judge
133reproduces the committed `judge.out`. The repository's pure-Rust harness rule is not touched:
134the awk file is evidence glue, not a harness, and the Rust bin is the maintained form.
135
136Recorded outcome (2026-10-25, `evidence/ORIG3-SELECTOR/`): ORIG3_VERDICT=INCONCLUSIVE. A to E
137hold on both core classes, F fails because the untrained and shuffled controls also beat the
138fixed rule by more than 5%. See the evidence README for the table and the reading; the
139prereg `sealed_run` block names the proposed (not run) v2 rule.