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/benchmarks-mv/blob/main/docs/orig3/PROTOCOL-v2.md # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `benchmarks-mv / docs / orig3 / PROTOCOL-v2.md` 141 lines ยท 8430 bytes Raw Blame History Rendered 1 17 18 # ORIG-3 v2 protocol (benchmarks-mv#45, superseding v1 for new runs) 19 20 Preregistration: `manifests/prereg/orig3_selector_v2.json` (checked by 21 `cargo run --release --bin bench_verify_prereg -- manifests/prereg`). Executable rule: 22 `src/bin/bench_orig3_judge_v2.rs` (tests `tests/orig3_judge_v2.rs`). The v1 prereg 23 `orig3_selector.json`, its sealed INCONCLUSIVE verdict and `evidence/ORIG3-SELECTOR/` are 24 unchanged. This file and the manifest are committed and pushed before any v2 record exists. 25 26 Decision words: GO, NO-GO, INCONCLUSIVE, INVALID. Host-only results are development 27 results, never hardware qualification. GB10 NOT_RUN; energy NOT_MEASURED. 28 29 ## 1. Why v2 30 31 The v1 sealed set re-measured exactly the development workloads (aien-train 32 `evidence/SI19-ORIG1-v2/`: 738/738 workload keys shared), half of its "unseen" shapes share 33 a log2 shape family with TRAIN, v1 control criterion F was mis-specified (any arm-4-leaning 34 chooser beats a 1.7x-oracle incumbent by 5 %), and v1 charged no per-decision overhead 35 although the scorer costs about 0.14 ms per decision against a nanosecond rule. 36 37 ## 2. Data (one post-freeze collection, C2) 38 39 - Harness: omega-mv ``85641e1ea14b1e4a2d2d5790001aacb0bac41093`` (branch 40 `feat/731-orig4-shadow-advice`), `make -j2 AIENOS_LOCK_REPO=$HOME/workspace/aienos-`b84c0a67` 41 build/rx_empirical_optimizer_test`, binary sha256 42 ``37f4c229293d148313d6972898f9f4e8237775a8505bc1e53c20eb8ebf681339`` (clean tree). 43 - Command (once, host cores only, never beside a host-gate run or a model load): 44 45 ```sh 46 OMEGA_EMPIRICAL_RECORDS=$HOME/.local/state/aien-train/orig-v2/records-c2-.bin \ 47 OMEGA_EMPIRICAL_COVERAGE=600 EMPIRICAL_ALLOW_NO_WIN=1 \ 48 nice -n 19 ./build/rx_empirical_optimizer_test 49 ``` 50 51 `nice -n 19` is the machine rule; every arm of a table is timed in rotating order, best of 52 5, so contention inflates the arms of one table together. The meta file records commit, 53 dirty flag, binary sha256, start/end UTC, 1-minute load average at start and end, exit code. 54 Expected: 738 harness records + 600 coverage records (family 5) per core class = 1938. 55 - Collection must start after the commit that froze this file was pushed; the meta file and 56 the evidence README state both times. 57 - Admission: aien-train `oxadm2` (`docs/si19/ORIG1-CONTRACT-v2.md` at ``e95862f``): per-record 58 refusal with counted reasons (unsupported, shape, profile, unpaired, out of range, 59 unverified, sequence, duplicate state). Refusal counts are reported. 60 - Splits by workload family `(floor log2 M, floor log2 N)`, frozen table 61 `docs/si19/orig1-v2-splits.txt` (sha256 62 ``c072d49843ecb5162fa03323790254cd96c96b9138461c80562d6051ed84f4cb``, 168 families: 100 TRAIN, 63 32 VALIDATION, 36 HELD-OUT). Held-out families never occur in TRAIN or VALIDATION 64 (`oxdisj`). The record's family word is not used. 65 - Allow-list: one line ` AUTHORIZED orig3-v2-c2-` in 66 `evidence/ORIG3-SELECTOR-v2/allow-v2.txt`, hash only; the bytes stay local (0600). 67 68 ## 3. Arms 69 70 | arm | role | definition | overhead charged per decision | 71 |---|---|---|---| 72 | mlp_scratch_v2 | candidate | select.om MLP 20-32-1 (705 params), seed 19024 random init, lr 2^-8, at most 64 epochs, early stop after 16 epochs without VALIDATION improvement, best-on-VALIDATION params; trained on TRAIN only | O_mlp | 73 | retrieval | baseline | v2 rule: nearest TRAIN record of the same core class and pressure bucket by L1 on (lg16 M, lg16 N); its cheapest admissible arm | O_near | 74 | heuristic | baseline | per core class, the one of {fixed_rule, always_reference, best_static} with the lowest calls-weighted total on VALIDATION pressure-0 decisions (ties in that order) | 0 | 75 | best_static, fixed_rule, always_reference | baselines (reported) | as in ORIG1-CONTRACT.md s.7; best_static from TRAIN | 0 | 76 | untrained_control | control | the candidate's declared init, no update | O_mlp | 77 | shuffled_label_control | control | the candidate's trainer on targets permuted among TRAIN pairs (control 1) | O_mlp | 78 | constant_control | control | a constant score: every arm ties, the frozen tie rule picks arm 0 | O_mlp | 79 | oracle | bound | cheapest admissible arm | 0 | 80 81 Commands (aien-train `feat/25-orig2-native-scorer` at ``692d85104369cf0fc0bec9f35c4ca693cf746012``, 82 selmain ELF sha256 ``01b6e63fe8a579a4db6300a9bba237e3dd30e143dba58e07781a9727ef00a62f``): 83 84 ```sh 85 V2=1 RECORDS= ALLOW= OUT= nice -n 19 sh tests/si19/run-select.sh 86 ``` 87 88 It trains the candidate and the shuffled and untrained controls once each and writes the 89 mode E per-record files `v2_eval_{mlp,shuffled,untrained}.records` (VALIDATION + HELD-OUT). 90 91 ## 4. Overhead (per decision) 92 93 omega-mv ``85641e1e``, `tests/orig4/run.sh` with `ORIG4_OVERHEAD=1 ORIG4_REPS=7 94 ORIG4_RECORDS= ORIG4_ALLOW= ORIG4_IMAGE=`: seven interleaved 95 repetitions of three shadow runs over the whole C2 file under v2 admission: disabled (kill 96 switch: process start and glue only), the candidate scorer, the retrieval advisor. Wall times 97 in microseconds. Per-decision overhead = (median wall of the advisor run - median wall of the 98 disabled run) / scored decisions, in ps. It contains record admission, feature extraction, 99 inference or nearest-neighbour search, argmin dispatch, the fallback checks and one 100 synchronous output line per decision; it overstates a resident in-process advisor (it also 101 pays admission of the file), and that bias is against the learned arms and retrieval 102 alike. The fixed rule, always_reference and best_static are charged 0 (a constant-time 103 comparison in C, not measured). 104 105 ## 5. Primary criterion and verdict (frozen; `bench_orig3_judge_v2`) 106 107 Population, per core class c in {X925 = 0, A725 = 1}: HELD-OUT decisions at pressure 0. 108 Decision cost of arm p on decision r: `calls_r * ps_p(r) + O_p` (calls = the record's timed 109 calls, the consumer's batch per decision). Totals `C_p`. Comparator `C* = min(C_retrieval, 110 C_heuristic)`. 111 112 - P1(p, c): `C_p <= 0.99 * C*` (superiority margin 1 %). 113 - P2(p, c): exact one-sided sign test of per-decision cost against retrieval and against the 114 heuristic separately (ties dropped), each with P(X >= wins | n discordant, 1/2) <= 0.0125 115 (0.05 / 4 contrasts: 2 classes x 2 comparators). 116 - PRIMARY(p, c) = P1 and P2. 117 - INVALID: any control (untrained, shuffled-label, constant) meets PRIMARY on any class. 118 - GO: not INVALID and the candidate meets PRIMARY on both classes. 119 - NO-GO: not INVALID, not GO, and on some class `C_candidate > 1.01 * C*` (non-inferiority fails). 120 - INCONCLUSIVE: everything else. 121 122 Reported, not gated: choice-only (overhead-free) ratios to oracle and to the comparators, 123 held-out pressure-1 decisions, VALIDATION totals, best_static, fixed_rule, always_reference. 124 125 ## 6. Cost accounting and amortization 126 127 Training wall (`v2_train_mlp` wall_ms) and collection wall (meta start to end) are reported 128 separately, never folded into the per-decision cost. Break-even decisions = 129 (training + collection wall, ps) / overhead-inclusive saving per held-out decision against 130 the cheaper comparator ("none" when the saving is not positive). Break-even calls per 131 decision = O_mlp / choice-only saving per call against the same comparator ("none" when not 132 positive): the batch size at which the scorer's overhead would be paid back. 133 134 ## 7. Budget and stop rules 135 136 Training wall at most 30 min, collection wall at most 15 min, 705 parameters (no larger 137 model under this prereg), at most 2048 records, one collection, one training run per arm, 138 one evaluation, one overhead campaign. No retraining, no lr search, no record added after 139 the HELD-OUT outcomes are produced. A harness exit code other than 0, any digest mismatch, a 140 whole-file admission refusal, a missing arm or a budget overrun ends the campaign 141 INCONCLUSIVE with the reason; a new attempt needs a new prereg_id.