interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / docs / si19 / ORIG1-CONTRACT-v2.md

82 lines · 4940 bytes Raw Blame History Rendered
1# ORIG-1 contract v2: integrity admission and workload-disjoint splits
2
3aien-train#24. Supersedes sections 2 (admission), 6 (splits) and the retrieval row
4of section 7 of `ORIG1-CONTRACT.md` for every v2 run. `ORIG1-CONTRACT.md` itself
5is unchanged and still governs the v1 runs and their evidence. Everything not
6named here (consumer, record layout, features, target, normalization, budgets,
7provenance, allow-list) is copied unchanged from v1.
8
9## 1. Why a v2 (audit of the v1 data)
10
11`omexpmain` mode `A` over the v1 owner file (A, fnv `16622604375676129865`) and
12the v1 SEALED-FINAL file (B, fnv `12602815733741495377`), evidence in
13`evidence/SI19-ORIG1-v2/`:
14
15| counter | value | reading |
16|---|---|---|
17| B records whose workload (core, M, N, job seed) occurs in A | 738 / 738 | the harness regenerates the same jobs from fixed seeds: SEALED-FINAL re-measured exactly the workloads of the development file |
18| of those, same oracle arm | 710 / 738 | the re-measurement mostly repeats the label |
19| B state keys (core, pressure, M, N) present in A | 738 / 738 | |
20| A duplicate state keys | 155 | TRAIN measures every shape twice (154) plus one repeated H2 shape |
21| A workloads under two family words | 240 | H3 is the H1 jobs under pressure |
22| A H1/H2 records whose log2 shape family holds a TRAIN record of the same core | 116 / 240 | half the "unseen" shapes sit in a family that TRAIN covers |
23
24No TEST (M, N) key occurs in TRAIN, so the v1 candidate did not train on test
25shapes. The v1 sealed set was nevertheless not a fresh sample: it repeated the
26development TEST workloads whose numbers had been inspected in ORIG-2, and half
27of them share a shape family with TRAIN. That supports, but does not by itself
28prove, the retrieval parity seen in v1: the per-family decision is smooth enough
29that a neighbour in the same log2 cell carries the label.
30
31## 2. Admission v2 (`oxadm2`)
32
33Whole-file refusals (nothing admitted): size not a positive multiple of 256 or
34above 524288 bytes (-1); a split conflict (-11, section 3). Otherwise every
35record gets one code, the first failing check in this order, and the count of
36each code is reported (`RQ`):
37
38| code | reason |
39|---|---|
40| -2 | unsupported format: magic or version |
41| -3 | unsupported enumeration: family word above 5, core class other than 0 (Cortex-X925) or 1 (Cortex-A725), pressure bucket above 1, arm count other than 6 |
42| -4 | shape or calls out of range: M or N outside 1..8192, M N above 2^19, calls outside 1..2^20 |
43| -9 | wrong profile: cache bytes not the class value, state bytes not (M N + M + N) 8 |
44| -14 | unpaired: the record is not the complete arm set of this state: arms 0..4 eligible (mask exactly 31), measured and verified; arm 5 (planted) not eligible, not measured, not verified; arms 6, 7 absent |
45| -10 | out of range: a measured ps per call at or above 2^40 (the integer record's analogue of a non-finite value) |
46| -7 | unverified: digest mismatches during the table (word 31 != 0) |
47| -8 | sequence not above the previous record's |
48| -15 | duplicate state: an earlier admitted record has the same state key (core class, pressure bucket, M, N); the job seed is operand data, not state |
49| 0 | admitted |
50
51Pairing is per record because one omexp-v1 record carries every arm of one
52state; a paired comparison needs a cost for any arm any policy may choose.
53
54## 3. Workload-family splits (frozen)
55
56Family of a record: `(fm, fn) = (floor(log2 M), floor(log2 N))` (`oxcell`).
57Split of a family: `h` = FNV-1a 64 over the two bytes `fm, fn`; `k = (h >> 32) mod 10`;
58k 0..5 TRAIN, 6..7 VALIDATION, 8..9 HELD-OUT (`oxhspl`). The table over the
59whole domain (168 families, 100 / 32 / 36) is `docs/si19/orig1-v2-splits.txt`,
60printed by `omexpmain` mode `S` and compared byte for byte by
61`tests/si19/run-omexp.sh`. The record's family word (word 2) is not used.
62
63Consequences: a shape, and every pressure bucket and job seed of it, lives in
64exactly one split; held-out families are absent from TRAIN and VALIDATION by
65construction, and `oxdisj` re-checks every admitted pair (same family or same
66shape in two splits refuses the file, -11). Refused records are in no split.
67
68## 4. Retrieval v2
69
70The nearest TRAIN record of the same core class **and the same pressure
71bucket** by L1 on (lg16 M, lg16 N), lowest index on a tie; its cheapest
72admissible arm if admissible in the decision, else arm 0. (v1 ignored pressure.)
73
74## 5. Tests
75
76`tests/si19/omexp-test.om` (`tadm2`, `trefuse2`, `tdup2`, `tsplit2`, `tnear2`,
77`taudit`): every code above through a single-word mutation that refuses only that
78record and counts it once; duplicates (same key with another seed, a later
79duplicate of a refused record, two later duplicates); split values computed
80outside the unit; pairwise disjointness; a planted split conflict; v2 retrieval
81pressure; the audit counters. `tests/si19/run-omexp.sh` adds 10 v2 mutants to the
826 v1 mutants; each must fail the unchanged test.