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 / omegese45 / CORE-CLI.md

107 lines · 5602 bytes Raw Blame History Source

omegese45 core CLI (oe45core, oe45gen)

Pipeline lane of aien-train#45. The vocabulary, grammar and exit codes are fixed by the shared interface (R45, 41 ids; docs/omegese45/vocab.tsv sha256 c1d7e15466e6585a776314c5c05f35466b2697d9631ad2e11c7918a434a4c18d). This page documents only the command line of the two binaries built from native/omegese45/{data,core}/. Training and model details are in PIPELINE.md.

Build

OMC=/path/to/omega-mv/seed/out/omc OMEGA=/path/to/omega-mv OUT=out sh tests/omegese45/core/build.sh

build.sh checks the omc sha256 and extracts the SHA-256 unit at the pins recorded in native/omegese45/core/dependencies.json. It prints BUILD_OK and writes out/oe45gen, out/oe45core, out/oe45test (the test driver) and out/oe45mut (the fault injector). All four are static aarch64 ELF files produced by omc bf54b19f (sha256 62775d2a…f3712b). The unit order is: SHA unit, vocab.om, msg.om, core/model.om, core/ckpt.om, core/run.om, then core/cli.om (or tests/omegese45/core/main.om for the driver).

oe45gen SEED COUNT OUT.oe45 OUT.ids

Generates COUNT (1..40000) episodes by the reference policy. The only source of randomness is splitmix64 seeded with SEED.

The issue #45 data comes from oe45gen 4501 20000 (train) and oe45gen 4502 1000 (dev).

oe45core

CommandEffectstdout
init CKDIR TRAIN.ids SEED P1 TOTAL ORDER LRSHWrites the step-0 checkpoint (generation 1, slot ck.a) bound to sha256(TRAIN.ids). The learning rate is 2^-LRSH; P1 is the length of phase 1 in steps and TOTAL the total number of steps; ORDER seeds the epoch order.nothing
train CKDIR TRAIN.ids UNTIL EVERYLoads the newest valid slot and trains to step min(UNTIL, TOTAL), saving every EVERY steps and at the end. If sha256(TRAIN.ids) differs from the binding, exits 54.T step phase loss-bits positions at each save
evaldev CKDIR DEV.idsComputes the dev metrics.D step episodes positions correct messages exactU exactG
decode CKDIR U\|G EPFILEDecodes the next message after the prefix in EPFILE.the message words, one line
batch CKDIR U\|G IN OUTDecodes every prefix in IN (prefixes are concatenated, each starting at an oe45 v1 line).nothing; writes OUT
info CKDIRPrints the header of the loaded slot.I slot seed step generation P1 total order lrbits algo payload-sha vocab-pin data-sha

Decode modes:

A prefix must be OE45 v1 text whose messages are each valid and appear in the order G (A R)*, or G followed by one final act refuse C end (interface §3: a refuse comes only right after G and gets no R; its P is the message decoded next). So a prefix ends in a G, an R, or that refuse A. A refuse after an R, or any message after the refuse, makes the prefix invalid and exits 40.

Each batch OUT line is one of:

Exit codes:

CodeMeaning
0ok
2usage, or a malformed data file
40invalid prefix
50DECODE_INVALID
51CKPT_REFUSED (no structurally valid slot)
52CKPT_VOCAB (the newest valid slot has a different vocab pin)
53DECODE_BUDGET
54training data differs from the checkpoint binding
70file I/O

Checkpoint OE45CK01

There are two slots, CKDIR/ck.a and CKDIR/ck.b, each 3,989,908 bytes: a 240-byte header followed by 997,417 binary32 parameters. Every save writes generation g = loaded + 1, to ck.a when g is odd and to ck.b when g is even, then calls fsync. The newest valid slot is therefore never the one being written. A load takes the structurally valid slot with the highest generation, checking:

The full layout is in the header comment of native/omegese45/core/ckpt.om. The suite exercises each of these behaviors in tests/omegese45/core/run-core.sh, section 7:

Tests

OMC=… OMEGA=… OUT=/tmp/oe45core-suite sh tests/omegese45/core/run-core.sh   # last line OE45_CORE_PASS

The receipt is under evidence/OMEGESE45/pipeline/.