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

54 lines · 2555 bytes Raw Blame History Source

omegalora: LoRA fine-tuning core in Omega (contract v1)

native/omegalora/lora.om is a first-party Omega unit that fine-tunes a frozen base with LoRA (low-rank adapters) and checks its own math. It is the f64 reference that later GPU and omegallm adapter kernels are compared against. Host CPU only; it does not qualify any chip.

What it computes

One transformer MLP block shape, all f64:

Gates (exit codes, decided inside the .om unit)

exitmeaning
0all gates pass
13exp(1) or log(10) off by more than 1e-14
10analytic gradient vs central difference (h = 1e-5, every 3rd parameter, B nonzero): worst relative error above 1e-6
11training loss after 400 steps is not at most half the starting loss
12accuracy did not rise by at least 0.2

Negative controls

stdin selects a deliberately broken build. The gates must catch each one.

stdinbreakmust exit
1SiLU derivative sign flipped10
2RMSNorm backward sign flipped10
3AdamW step sign flipped11

Build and test

sh tests/omegalora/run.sh with OMC pointing at the pinned seeded omc (omega-mv e5b32567, sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f). The script refuses any other compiler, compiles, runs all four builds and writes evidence/OMEGALORA/run/.

Limits