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 / omegallm / CONTRACT-V3.md

87 lines · 5591 bytes Raw Blame History Source

Omega LLM v3 contract (deep-thin, L ≤ 16)

v3 extends the v2 contract (CONTRACT-V2.md, normative for everything this file does not change, and through it CONTRACT-V1.md and CONTRACT.md). It raises one shape maximum, L, from 8 to 16. The same two implementations must agree with it: the .om product (native/omegallm/, CPU and TARGET=gb10) and the Python-stdlib referee (tests/omegallm/oracle.py, verification only).

Compatibility rule: every v0, v1 and v2 command, file, output and test keeps its exact bytes. The only statements that change are the L maximum and the refusal boundaries that follow from it (exit 12 at L 17; exit 15 for a checkpoint over the v3 maximum image). Arithmetic is unchanged: every sum runs in the same order; only the storage location of a value changes.

1. Shapes

NameMeaningv2 maxv3 max
Vvocabulary40964096
Tcontext length256256
Dmodel width384384
Hheads, D mod H = 01616
FFFN width15361536
Llayers816
Bsequences per step6464
Ggradient blocks per stepBB

At the maxima P = 29,995,392; a CK01 checkpoint is 112 + 24·P = 719,889,520 B and a CK02 one 120 + 24·P = 719,889,528 B. A file over 719,889,529 B is exit 15 before its header is read. Wolfram: `params[V_,T_,D_,F_,L_]:=V D+T D+L(4D^2+2D F+2D)+D; params[4096,256,384,1536,16] -> 29995392; 112+2429995392 -> 719889520; 120+2429995392 -> 719889528`. Attention probabilities L·H·T² stay within one array exactly at H 16, L 16: 16*16*256^2 -> 16777216 = 2^24 -> 16777216.

Correction to CONTRACT-V2 §1: the out-of-reach wide shape is `params[4096,256,512,2048,8] -> 27402752`, not 27,394,560 as printed there.

The x86efi build keeps the bank-B pools at one element (§2), so it accepts only shapes whose layout fits bank A (every v2 shape); larger L is refused by ogeom.

2. Storage layout (product only)

omc refuses a program whose globals exceed 1 GiB (error 23) and any array over 2^24 elements, so the v3 maximum cannot live in v2's single arrays. Values move into layer-aligned banks; the virtual index of every value is unchanged, so every v2 shape uses exactly the v2 layout.

3. GPU path (TARGET=gb10)

The kernels do not depend on L (grset has no L argument); at the v2 maximum the v3 gb10 code is byte-identical to v2 (gpu-disasm.sh, code_sha256 0664d426…). The chip arena (gg.om ggplan) grows with L: at V 4096, T 256, D 384, H 12, F 1536, B 64 it is 5,892,226,816 B at L 8 and 10,951,814,912 B at L 16 (Wolfram, the ggplan sum with 256-byte rounding), within nvalloc's 64 GiB cap. No host scratch in gg.om depends on L; ggsj/ogmask read through opx/oahin.

4. Required checks

  1. v0/v1/v2: core-receipts.sh rows and receipts equal evidence/OMEGALLM/core; v1-oracle.sh with L 17 exit 12, L 16 small and the full v3 maximum init byte-identical to the referee.
  2. v2 maximum: the v3 CPU build gives the v2 build's eval lines and training checkpoints byte for byte.
  3. Bank crossing (build.sh --variant bx) gives the normal build's checkpoints (G 1, G 2), eval and sample output; mutant y (wrong bank) is caught.
  4. gcheck passes at an L 16 small shape and on the bx build.
  5. v3 maximum: init byte-identical to the referee; one training step runs; peak RSS under 2 GB.
  6. CPU eval time per window at the v2 maximum regresses at most 5% against the v2 build.
  7. gpu-disasm.sh at the v2 and v3 shapes finds no slot LOW. Chip gates: v2-shape bit identity against the rung-7 step-250 checkpoint, gcmp2/gacmp at L 16.