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 / README.md

569 lines · 49937 bytes Raw Blame History Source

Omega LLM v0 (aien-train#52)

Omega LLM v0 is a proof of concept. It is a byte-level, decoder-only transformer with 119,104 parameters:

The normative spec is CONTRACT.md. The receipts are under evidence/OMEGALLM/core/ (the .om lane) and evidence/OMEGALLM/oracle/ (the Python-stdlib referee).

v1 (aien-train#54)

v1 adds a byte-pair tokenizer in .om (bpe.om, concatenated between ckpt.om and cli.om), shapes up to V 4096, T 256, D 256, L 8, B 64, gradient blocks G and K worker processes with byte-identical results for every valid K, and the OLLMCK02 checkpoint. The spec is CONTRACT-V1.md; v0 commands and files keep their bytes.

ollm bpefit TEXT MERGES V [MAXBYTES]   # fit merges: M V types chunks fitbytes
ollm bpeenc MERGES V TEXT TOKS         # encode to u16 tokens: K bytes tokens
ollm bpedec MERGES TOKS OUT            # decode: D tokens bytes
ollm init CK V T D H F L B SEED TOTAL LRMICRO [G]
ollm train CK TOKS UNTIL EVERY [K]     # K worker processes, G mod K = 0 (Linux only)
ollm eval CK HELD W MERGES             # MERGES required when V > 256
ollm sample CK SEED N TEMPMILLI PROMPT MERGES
ollm tune CK OUT TOTAL LRMICRO        # fine-tune: keep weights, step 0, new TOTAL and lr, Adam m = v = 0
WhatStatusReceipt
rung 3: config b (V4096 T128 D192 H6 F768 L4 B40, G = K = 20, P 2,582,208), 9000 stepsEXERCISED, 2026-11-02, 41,814 s on the Grace CPU; held-out E 9000 4486 1823975 680427 (0.680427 bpb over 0.99988 of held.tok)evidence/OMEGALLM/v1/
v0 receipt suite on the v1 binary b9b4e02d, aarch64EXERCISED, 48/48 PASS (2026-11-04)evidence/OMEGALLM/v1/checks/core-aarch64/
v1 referee checks, mutants d and e, K = 1/2/4 and config-a K = 1/4 identityEXERCISED (2026-11-04)evidence/OMEGALLM/v1/checks/reruns.txt

v0's 1.463036 bpb scores 4096 × 64 bytes, 0.11803 of the same held text; v1's 0.680427 scores nearly all of it, so the two are not measured on the same positions.

Depth growth

ollm grow INPUT OUTPUT LAYERS TOTAL LRMICRO adds trainable layers while keeping learned tensors. See growth behavior and verification. Growth increases capacity; it is not a measured quality improvement.

Status

Evidence for every row is in evidence/OMEGALLM/core/summary.tsv (48/48 as expected). Every receipt names the binary and source sha256 it ran; core-receipts.sh builds all six binaries first (build.txt):

WhatStatusReceipt (evidence/OMEGALLM/core/)
prep on TinyStoriesV2-GPT4-valid.txtEXERCISEDprep.txt: P 27630 24867 2763 19883834 2220914
base unigram/bigram bpbEXERCISEDbase.txt: B 4415645 3295113 (4.415645 / 3.295113 bpb)
init v0EXERCISEDinit-v0.txt: I 119104
train, 50 v0 stepsEXERCISEDtrain-v0-50.txt: loss 5.429638 at step 5 to 3.110411 at step 50 nats; ln 256 = 5.545177
resume is bit-identicalEXERCISEDresume-cmp.txt: steps 0→40 in one run and 0→20→40 in two runs give the same checkpoint; cmp rc 0
checkpoint refusalEXERCISEDrefuse-truncated.txt (rc 10), refuse-flip-magic.txt (rc 11), refuse-shape.txt (D = 0, rc 12), refuse-count.txt (P byte changed, rc 13), refuse-flip-payload.txt (rc 14), refuse-long.txt (one byte appended, rc 15)
largest shapeEXERCISEDinit-max.txt: I 217664, a 5224048-byte checkpoint; eval-max.txt (W 2): E 0 2 5566611 8030922
overflow refusalsEXERCISEDrefuse-eval-hugew.txt: W = 2^58 → rc 23; refuse-grad-hugeoff.txt: 16 offsets of 2^64 − 1 → rc 22
evalEXERCISEDeval-v0.txt: E 50 256 3049318 4399237
sampleEXERCISED (runs; output is not cross-checked)sample-v0-argmax.txt, sample-v0-t800.txt
gradient self-check (smoke; the gate is the oracle's xgrad)EXERCISEDgcheck.txt (small shape) maxrel 3.08146e-4; gcheck-v0-init.txt (v0, seed 1) 1.05146e-4; gcheck-v0-step50.txt (v0, 50 steps) 5.15267e-4; 76 indices each, 0 retries
gcheck step sizeEXERCISEDvar-h5-* (h = 1e-5) and var-h7-* (h = 1e-7) fail with rc 40 on both v0 checkpoints; see "Self-check constants"
Adam self-check (smoke; the gate is the oracle's xstep)EXERCISEDadamck.txt: A 5 3cd046ce38e38e38 0
exp/log against WolframEXERCISEDmathck.txt: exp at most 1 ulp, log at most 2 ulp
mutants a (dK sign), c (no bias correction)EXERCISED, killedmut-a-gcheck.txt and mut-a-gcheck-v0.txt (rc 40, maxrel 2.0), mut-c-adamck.txt (rc 41, maxrel 0.639088)
mutant b (targets shifted)killed by the oracle onlymut-b-gcheck.txt passes the self-check, as expected; the kill is in evidence/OMEGALLM/oracle/
cross-check against the refereeEXERCISED by the oracle lane, on b729cc35 and the three mutantsevidence/OMEGALLM/oracle/ and tests/omegallm/ORACLE.md
the v0 run, 20000 steps (tests/omegallm/v0-run.sh)EXERCISED: 2026-11-01T15:24:54Z to 19:23:57Z on core 9, binary a9b5f3ec, unit Result=success; held-out 1.463036 bpb at W=4096evidence/OMEGALLM/v0/run/ (see "v0 result")
a9b5f3ec and b729cc35 compute the same v0 runEXERCISEDevidence/OMEGALLM/v0/equiv-a9b5f3ec-b729cc35.txt: same E 2000 line from the run's step-2000 checkpoint, byte-identical checkpoint after 10 more steps; control equiv-control-mut-b.txt differs
ollm as an x86-64 Linux program (TARGET=x86linux, omega-mv main ba5559d9)EXERCISED, EMULATED (qemu-x86_64 8.2.2 user mode)evidence/OMEGALLM/x86/: the whole receipt suite, 48/48 PASS, every receipt equal to the AArch64 one apart from hashes, paths and wall time; the v0 checkpoint's final eval E 20000 4096 1014099 1463036 reproduced
ollm as a UEFI application (TARGET=x86efi, compiler from omega-mv #1015, merged as main d3d1b1bc)EXERCISED, EMULATED (QEMU 8.2.2 TCG + OVMF)evidence/OMEGALLM/efi/: the 11 commands of tests/omegallm/efi-job.txt read from \OLLM\JOB.TXT; the OUT.TXT body matches the AArch64 reference after efi-check.sh strips the banner, J (timing) and DONE lines; TR.BIN, HE.BIN and S.CK written on the FAT volume identical; mutant b differs at byte 375; corrupted checkpoint, 65535- and 65536-byte job controls pass
the same image on one physical machine (names iMac18,3 and Core i5-7500 are from earlier aienux evidence; this run does not record them)EXERCISED on physical hardware (one machine)evidence/OMEGALLM/imac/: the OUT.TXT body matches the AArch64 reference after efi-check.sh strips the banner, J (timing) and DONE lines; TR.BIN, HE.BIN and S.CK identical, OLLM DONE 11 186521; negative controls in check.txt DIFFERENT; FAT clean after the firmware's writes
ollm as an AArch64 UEFI application (TARGET=a64efi, omega-mv target a64efi, docs/A64-EFI.md there)EXERCISED, virtualized (QEMU virt + EDK2, KVM on a GB10 core)evidence/OMEGALLM/a64efi/: tests/omegallm/a64efi-receipts.sh: the 11 commands of efi-job.txt; the OUT.TXT body matches the AArch64 Linux reference; TR.BIN, HE.BIN and S.CK identical; fsck.vfat -n clean; mutant b differs
an a64efi image on one physical machine, a DGX Spark, with no operating system, so no NVIDIA operating-system driver (nvidia.ko) loaded (the machine's own UEFI firmware, its display support included, starts the image and stays beneath it: console, keyboard, files, key-poll waits; the clock is the processor's own counter)EXERCISED on physical hardware (one machine, one boot, 2026-11-12)evidence/OMEGALLM/a64efi/dgx-spark/: started by the machine's firmware from its EFI system partition; OLLM DONE 11 13594; the OUT.TXT body matches the reference; TR.BIN, HE.BIN and S.CK identical. The image is not build.sh's: it is this directory's sources at bb19fba9 plus a unit that read the GPU's identity registers through the firmware. evidence/OMEGALLM/a64efi/dgx-spark/BUILD.txt records its sha256, the sha256 and composition of its source, the compiler that built it and the committed compiler that rebuilds the same bytes. The 15.8M-parameter checkpoint on that machine without an operating system is NOT_RUN: its file is larger than the machine's EFI system partition (sizes measured in evidence/OMEGALLM/a64efi/dgx-spark/SIZES.txt)
typed conversation (ask) on that DGX Spark's own keyboard and screen, no operating system (keyboard and screen through the machine's firmware)EXERCISED on physical hardware (one machine, one session, 2026-11-12, the v0 checkpoint)evidence/OMEGALLM/a64efi/dgx-spark-ask/RESULT.txt: build.sh's a64efi image; two typed lines; each answer equals the AArch64 Linux build's sample for the same line and seed; OLLM DONE 1 679444; the machine restarted itself. The transcript holds the operator's words and is not published (its sha256 is)

b729cc35 differs from a9b5f3ec only in bounds handling. The source diff shows it: the concatenated source goes from cb80250d… (a9b5f3ec, recorded in commit da910097's init-v0.txt) to 47c27b0b… (build.txt), and the only code changes are OCKCAP in native/omegallm/ckpt.om and the two range checks in native/omegallm/cli.om (ooffrow, cmdeval); the rest are note lines. evidence/OMEGALLM/v0/bounds-ab.txt (core 7, 20 s timeout) shows the behaviour. On a valid largest-shape init, a9b5f3ec exits 103 (bounds trap). On eval with W = 2^58, where W·T + 1 wraps, it was still running at 20 s and the timeout killed it (rc 124). On a huge grad offset it exits 103. b729cc35 sizes the checkpoint buffer for the largest shape (I 217664, rc 0) and refuses the other two with 23 and 22; eval-edge-w3/refuse-eval-edge-w4 and grad-edge-o128/refuse-grad-edge-o129 pin the exact boundaries. On in-range inputs the two give identical output (the equivalence receipt). evidence/OMEGALLM/v0/provenance.txt ties the running unit to the compared files: the sha256 of the run directory's ollm, run.sh and ck-2000.bin against frozen/ollm and the copied checkpoint, and the unit's start time and command line.

Build

sh tests/omegallm/build.sh               # -> ../build/ollm (AArch64 Linux)
sh tests/omegallm/build.sh --mutant a    # also b, c: -> ../build/ollm-mut-X
sh tests/omegallm/build.sh --variant h5  # also h7: -> ../build/ollm-var-hX
sh tests/omegallm/build.sh --variant bx  # small bank-A capacities (CONTRACT-V3 check 3): -> ../build/ollm-var-bx
sh tests/omegallm/build.sh --mutant y    # bx plus the wrong bank-B layer (four lines): -> ../build/ollm-mut-y
TARGET=x86linux sh tests/omegallm/build.sh   # x86-64 Linux ELF
TARGET=x86efi sh tests/omegallm/build.sh     # -> ../build/ollm.efi, a UEFI x86-64 application
TARGET=a64efi sh tests/omegallm/build.sh     # -> ../build/ollm-aa64.efi, a UEFI AArch64 application
TARGET=gb10 sh tests/omegallm/build.sh       # -> ../build/ollm-gb10, CPU ollm plus the GB10 GPU commands
TARGET=gb10 sh tests/omegallm/build.sh --mutant g   # also h, m, f, k, s, p, t, r, x, q, w: -> ../build/ollm-mut-X-gb10
TARGET=gb10 sh tests/omegallm/build.sh --variant r0  # GEMM FFMAs without reuse: -> ../build/ollm-var-r0-gb10

The build script does four things:

  1. It checks the sha256 of the target's omc (OMC, defaulting to a sibling checkout):
    • aarch64: 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f (omega-mv e5b32567, ../omega-mv);
    • x86linux: be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a (omega-mv main ba5559d9, ../omega-mv-x86);
    • x86efi: 3ad9f10f64309e7acf8a725082b28e23a2a4aeb07e98322fb4dc0fcd8fc93194 (omega-mv PR #1022 commit cf9fbda1: main d3d1b1bc, where #1015's x86efi backend merged on 2026-11-04, plus efi 14, ../omega-efi); the receipts in evidence/OMEGALLM/efi and imac were built earlier with omc b4f45121 from #1015's commit 5ce9ecaa;
    • a64efi: 17657be4842e08d2ccb3b5c6f65b5f7209e584ad73274518cbdf0263d1fcb182 (omega-mv with target a64efi, ../omega-mv-a64efi); seed/a64efi/efirt.om of that checkout (sha256 04dcb32a82cd2817125a4d76a9fade4f70c1de102c60b14aca4cb3583da5f5b0, also checked) is placed after the first line.
  2. It concatenates math.om data.om, the pool unit (lpool.om on Linux, epool.om on UEFI; CONTRACT-V3 §2), model.om adam.om ckpt.om bpe.om cli.om and the platform unit (lio.om for Linux, eio.om for UEFI; CONTRACT §9). The x86 targets put the line target x86linux or target x86efi first, a64efi target a64efi.
  3. For a mutant, it changes exactly one line of the concatenated copy (OMUTA, OMUTB, OMUTC; mutant y changes four: bx's three capacities and OMUTY). A variant sets both gcheck steps GCH and GCH2 to 1e-5 (h5) or 1e-7 (h7) and must change exactly those two lines (bx: the three bank-A capacities); any other count stops the build with exit 4.
  4. It compiles under taskset -c $CORE nice -n 19 and prints BUILD_OK <bin sha256> <path> source_sha256 <sha>.

Run

B=../build/ollm; R="taskset -c 6 nice -n 19"
$R $B prep TinyStoriesV2-GPT4-valid.txt train.bin held.bin
$R $B base train.bin held.bin
$R $B init v0.ck 256 64 64 4 256 2 16 SEED TOTAL LRMICRO
$R $B train v0.ck train.bin UNTIL EVERY
$R $B eval v0.ck held.bin 256
$R $B sample v0.ck SEED 200 800 "Once upon a time"

Never commit the data or the .bin and .ck files. Every receipt in the table can be reproduced with sh tests/omegallm/core-receipts.sh; set CORE, BUILD, DATA or WORK to override the defaults. The exit codes are listed in CONTRACT §7.

Serve (DRA-119)

ollm serve PORT CK MERGES [MAXCONN] [tplmax=N] [test=1]    # AArch64 Linux; prints "MODEL id", then "PORT n" once listening
ollm-gb10 gserve PORT CK MERGES [MAXCONN] [tplmax=N] [test=1]   # the same server, logits from the GB10
ollm-gb10 gserveb PORT CK MERGES [MAXCONN] [tplmax=N] [test=1]  # mixed BF16, see CONTRACT-BF16.md

serve.om (aarch64 and gb10 builds; the x86 targets get noserve.om, which exits 2) answers OpenAI-style chat requests on 127.0.0.1:PORT with omega-mv's seed/net/http.om and seed/json/{json,jsonw}.om, vendored byte for byte from omega-mv e5b32567 into native/omegallm/net/. build.sh checks their sha256 (NET_PIN_MISMATCH, exit 3) and puts om2 first. One request at a time and one request per connection (Connection: close), so a pooled idle client cannot hold the listener. A connection is served only once its first bytes arrive: one that sends nothing within 20 ms of its accept waits in one of 8 pending slots (polled with the listener; when all 8 are taken, new connections wait in the listen backlog) and is closed unanswered 10 s after its accept. Once bytes arrive the head must complete within 10 s and the body within 60 s, so a client that starts a request and stalls holds an idle server up to that bound. tplmax=N (256 to 983040, default 65536) caps the chat template in bytes. test=1 enables the test-only members ollm_test_output (a string whose encoding replaces the drawn tokens, then token 0) and ollm_test_delay_ms (0 to 10000, how long the server waits for connections before each token); without it they are 400.

tests/omegallm/serve-check.sh starts two servers under taskset/nice/bwrap (defaults on PORT, tplmax=4000 test=1 on TPORT), referees them with serve-check.py (the content oracle is the same binary's sample, decoded with Python's errors="replace"; the 499 log lines are read from server-test.log via SERVE_TLOG; cmpl_*/t_cmpl_* cover /v1/completions) and stops the PIDs it started. The checks added since DRA-119's first 27 come with control checks (*_control, *_is_sample, sample_differs_from_greedy, t_ctl_*, t_forced_plain): the same request with one input changed, expecting the other outcome. A refusal (refuse_*) is controlled by the accepted request it varies. Four parity_ checks compare the sha256 of the served text with the sha256 of sample's raw stdout for the same prompt, seed, temperature and token count and keep both files in OUT/parity; the model id oracle reads the checkpoint header itself, and the gate also requires the first server's MODEL line to equal that id and both servers to listen on 127.0.0.1 alone. tests/omegallm/serve-mutants.sh is the negative control: it builds the seven serve mutants of build.sh (smeth, spath, sbig, sjson, sloop, sseed, smid: the 405, 404, 413 and malformed-JSON refusals removed, a 0.0.0.0 bind, a shifted seed, the old fixed id) and requires serve-check.sh to fail each one on the check written for it, each run inside a private network namespace. Receipts: evidence/OMEGALLM/serve/.

iMac

tests/omegallm/efi-receipts.sh leaves the boot image at $WORK/ollm.img (scratch-efi/ollm.img; the image of the receipted run is sha256 2b9a420a93486a4d37ed78141a45861427090535502243ecbb67fa4008b6c162). It is a GPT disk with one EFI system partition, FAT label ALLEN, holding:

Write it whole to a USB stick and start the Intel iMac from the stick (hold Option at the chime and pick "EFI Boot"). ollm runs the 11 jobs, shows each job's output on the console and appends it to \OLLM\OUT.TXT. After the last job the console shows OLLM DONE 11 <ms>, and ollm waits up to 300 s for a key before returning to the firmware. A refusal ends the application at once; OUT.TXT then ends with that job's output. Copy OLLM/OUT.TXT (and TR.BIN, HE.BIN, S.CK) off the stick and check them against the Linux reference. 678 is the byte size of tests/omegallm/efi-job.txt, which the banner must equal:

sh tests/omegallm/efi-check.sh OUT.TXT evidence/OMEGALLM/efi/ref.out 11 678
(cd <copied files> && sha256sum TR.BIN HE.BIN S.CK) | diff - evidence/OMEGALLM/efi/ref-files.txt

Status: EXERCISED on physical hardware (one machine) (evidence/OMEGALLM/imac/, run 2026-11-01). Apple's firmware ran all 11 jobs and its FAT driver accepted the writes: the OUT.TXT body matches the AArch64 reference after efi-check.sh strips the banner, J (timing) and DONE lines, the three written files match ref-files.txt, and fsck.vfat -n finds the volume clean. The firmware clock gave 186521 ms in total, against 1004245 ms under TCG on one GB10 core. The run itself does not record machine identity. Whether the console showed the efi 13 text was not recorded.

Reading the stick back: after the run, macOS 26 refused to mount the stick's partition, even read-only, although a dd copy of the same bytes mounts as a file and checks clean. Copy the raw partition (sudo dd if=/dev/rdiskNs1 of=STICK.img bs=1m) and take the files out with MTOOLS_SKIP_CHECK=1 mcopy -i STICK.img ::/OLLM/OUT.TXT ….

DGX Spark and other Arm machines, without an operating system

TARGET=a64efi gives ollm-aa64.efi, which a 64-bit Arm UEFI firmware starts as \EFI\BOOT\BOOTAA64.EFI (or from a firmware boot entry). It reads \OLLM\JOB.TXT and writes \OLLM\OUT.TXT exactly as the iMac image does. When \OLLM\REBOOT.TXT exists the image restarts the machine when the job is done (after its wait for a key); without it, it returns to the firmware.

sh tests/omegallm/a64efi-receipts.sh    # virtualized: QEMU virt + EDK2, compared with a Linux build

On a machine that already runs Linux from the same disk, one boot without touching the boot order: copy the image to the EFI system partition (for example \EFI\OMEGA\OLLM.EFI) and the job files to \OLLM, create a firmware entry for it (efibootmgr -c ... -l '\EFI\OMEGA\OLLM.EFI'), put the boot order back as it was, and select the entry for the next boot only (efibootmgr -n ENTRY). After the restart, compare \OLLM\OUT.TXT with efi-check.sh as above. Status and receipts: the Status table. The model runs on the processor only: the GPU commands need the Linux NVIDIA driver and are not in this image.

Typing to the model on the bare machine

A job line ask CK SEED N TEMPMILLI [MERGES] in \OLLM\JOB.TXT turns the machine's own keyboard and screen into a conversation: the image prints You: , you type a line and press Enter, and the model continues it with N tokens (the same computation as sample CK SEED+turn N TEMPMILLI LINE [MERGES]). Backspace removes a character. An empty line, Esc, or ten minutes without a key ends it, and the image goes on as after any job. Everything typed and answered is also in \OLLM\OUT.TXT. Both UEFI images have it (x86efi and a64efi); the Linux programs do not, and no recorded job file uses it. tests/omegallm/a64efi-receipts.sh types two lines on the virtual console and requires both answers to equal the Linux build's sample output (row ask). On a physical keyboard: one session on a DGX Spark (a64efi, 2026-11-12, two typed lines, both answers equal to sample's: evidence/OMEGALLM/a64efi/dgx-spark-ask/RESULT.txt); the x86efi image on a physical keyboard is NOT_RUN.

Throughput

All timings ran on Spark GB10 Grace core 6. host.txt records its midr_el1 (0x410fd851, Arm part 0xd85, Cortex-X925) and a 3900 MHz maximum clock. The process ran single-threaded under nice -n 19 on a shared host, so the step time depends on what else runs on that core. Each figure below is one run, not a distribution.

The v0 run

tests/omegallm/v0-run.sh is the script of the first full run. It is the init line of the receipts with seed 1 and TOTAL 20000, trained in 1000-step chunks; each chunk is followed by a held-out eval at W=256 and a saved checkpoint. Chunking does not change the result, because resume is bit-identical (resume-cmp.txt). After the last chunk it runs one eval at W=4096 and writes three samples at TEMPMILLI 800 and one argmax sample, each 400 bytes after the prompt "Once upon a time".

The run directory holds v0-run.sh copied as run.sh (sha256 4898aae5…), the binary as ollm, train.bin and held.bin. On 2026-11-04 a four-line usage comment (lines 2-5) was added to tests/omegallm/v0-run.sh; sed 2,5d tests/omegallm/v0-run.sh | sha256sum still gives 4898aae5…, so the run's run.sh is the script without that comment. It was started with

systemd-run --user --unit=ollm-v0 --collect -p CPUAffinity=9 -p Nice=19 -p MemoryMax=1G \
  /bin/sh <run dir>/run.sh

The unit keeps systemd's default working directory (the home directory); run.sh begins with cd "$(dirname "$0")", so every file it names is in the run directory. provenance.txt records the unit's ExecStart, CPUAffinity, Nice, MemoryMax, WorkingDirectory and start time, and the sha256 of the running ollm, run.sh, ck-2000.bin and data against the copies the equivalence receipts used.

The running binary is a9b5f3ec, built before the bounds fix. On in-range inputs it gives the same output as b729cc35: evidence/OMEGALLM/v0/equiv-a9b5f3ec-b729cc35.txt evaluates and trains 10 steps from the run's own step-2000 checkpoint with both binaries, and the two checkpoints are byte-equal (equiv-control-mut-b.txt is the negative control). bounds-ab.txt shows where they differ: init at the largest shape and the two overflow refusals.

Planned length, WolframLanguageEvaluator with sps = 0.70631 s/step from train-v0-50.txt:

v0 result

All figures below come from evidence/OMEGALLM/v0/run/ (core 9, Cortex-X925, nice 19, binary a9b5f3ec, data 101b41c6…/729e0a4a… in shas.txt). Arithmetic is WolframLanguageEvaluator, quoted with each result.

step010002000500010000150001900020000
bpb7.9910012.1636091.9293941.6932451.5631171.4918411.4403121.432839

Still falling at the end: 19000→20000 is 100*(1.432839-1.440312)/1.440312 → −0.519%, 18000→19000 → −0.947%. This run does not show where it stops falling.

This is a 119,104-parameter byte model trained once with one learning rate on one seed. The run shows that the .om trainer learns on real data end to end; it does not establish quality against any other implementation's training run of the same shape.

Self-check constants

Sizing

Every query is WolframLanguageEvaluator, 2026-11-01.

GB10 GPU training (rung 4)

TARGET=gb10 builds ollm-gb10: the aarch64 ollm with its fn main renamed ocpumain and native/omegallm/gpu/ appended. gk.om (f32 GEMMs: 32×32 tiles as ids 0-7 plus the fused-epilogue ids 25/26; 64×64 tiles as the even ids 40-54 plus the fused-epilogue ids 56/58, two slots each) and gr.om (slots 9-24, with 12, 17 and 18 empty: embedding, RMS norm, column sums, causal softmax, copy/zero, CE, the embedding-gradient CSR gather, the SQN sum of squares and ADAM) emit SASS for sm_121 into a code image; gg.om plans an arena, uploads, launches and reads back through context.om/vector.om/launch.om, vendored from aien-dev/CUDApp dcba8bb8, on the raw NVIDIA driver. No CUDA runtime or toolkit is used to build or run it; nvdisasm is a read-only oracle (tests/omegallm/gpu-disasm.sh SLOT...). The evidence/OMEGALLM/gpu-k*/run.sh files are as-run window receipts with machine-local paths; the reusable entry points are tests/omegallm/build.sh and tests/omegallm/gpu-disasm.sh.

B=../build/ollm-gb10
$B gcmp CK DATA S                 # chip gradient vs CPU f64 ograd for batch S; GCMP PASS or exit 45
$B gcmp2 CK DATA S                # branch-conditioned parity (ReLU flips split out); GCMP2 PASS or exit 47
$B gacmp CK DATA S                # one step, on-chip f32 Adam vs CPU f64 oadam; GACMP PASS or exit 46
$B gtrain CK TRAIN UNTIL EVERY    # train with the chip gradient, Adam on the CPU
$B gtrainf CK TRAIN UNTIL EVERY   # train with weights and Adam state resident on the chip
$B geval CK HELD W [MERGES]       # eval's forward on the chip in f32; prints eval's E line
$B gprof CK TRAIN N              # N gtrainf steps, nothing saved; GP id gx gy gz m n k wait_ns per launch of the last step

Run them only inside a spark-window. The checkpoint format is unchanged, so CPU eval, sample and train read what gtrain/gtrainf write.

WhatStatusReceipt (evidence/OMEGALLM/gpu/)
chip gradient matches the CPU f64 gradient within γ_R = R·2^-24EXERCISED (GB10, non-quiet)gc-small.txt rel 2.35e-7, gc-night.txt rel 1.614e-4 < 3.05e-4; mutant g FAIL rc 45 on both
on-chip Adam matches oadam above f32 weight rounding (resid < 2^-16)EXERCISED (GB10, non-quiet)ga-small.txt resid 2.34e-7, ga-night.txt resid 1.28e-7; mutant h FAIL rc 46 on the night checkpoint (step 1000); on the step-0 checkpoint mutant h is invisible by construction
gtrain 1750→9000 on the v1 night shapeEXERCISED (GB10, non-quiet)gtrain1-3.txt, 0.235-0.248 s/step
gtrainf 0→9000, the whole v1 scheduleEXERCISED (GB10, non-quiet)gtrainf-0-9000.txt, 483.8 s, 0.0538 s/step; trajectory within 1.14% of gtrain at every shared save point
held-out eval of both step-9000 checkpoints (CPU eval, W 4486)EXERCISEDeval9000-gtrain.txt 1.824653 nats, 0.680680 bpb; eval9000-gtrainf.txt 1.826877 nats, 0.681510 bpb
rung 5 (V 4096, T 256, D 256, L 8, P 7,409,920, B 64): gcmp fails on ReLU branch flips; gcmp2 passesEXERCISED (GB10, non-quiet)../gpu-max/gc-max.txt FAIL rc 45; ../gpu-max/gc2-max-s7.txt, gc2-max-s11.txt, gc2-night-s7.txt, gc2-small-s3.txt PASS; mutants g, m, f FAIL rc 47
rung 5 gtrainf 0→9000EXERCISED (GB10, non-quiet)../gpu-max/gtrainf-0-250.txt, gtrainf-250-9000.txt: 0.3808 s/step, 43,023 tokens/s; mean batch loss of the last four saves 1.4978 nats
held-out eval of rung-5 steps 2000 and 9000 (CPU eval, W 2243 at T 256)EXERCISED../gpu-max/eval2000.txt 1.789590 nats, 0.667600 bpb; ../gpu-max/eval9000.txt 1.445466 nats, 0.539226 bpb
CE kernel sum fix: the plain f32 sum of exp over V 4096 ran ~1.04e-5 low; Kahan sum in grceEXERCISED (GB10, non-quiet)../geval/plain/gd-*.txt before, ../geval/gd-*.txt after; the rung-4 and rung-5 runs above trained with the plain sum
geval matches CPU eval within 10 µnatsEXERCISED (GB10, non-quiet)../geval/ge-night-gtrainf.txt, ge-night-gtrain.txt, ge-max-2000.txt, ge-max-9000.txt: the CPU E lines exactly, 8.47 s of chip time for the step-9000 eval against 7323 s of CPU; mutant k (plain sum) Δ −11 FAIL; the first build failed the gate (../geval/plain/). geval has no loss gate and exits 0 whenever it completes (the mutant k receipts too); the 10 µnat gate is the E-line comparison against CPU eval, applied by the reviewer
rung 6 gtrainf 0→30000 at the rung-5 shape in 18 spark-windows, geval after every legEXERCISED (GB10, non-quiet)../gpu-r6/: every leg and geval rc 0; 0.37712 s/step, 43,445 tokens/s; held-out loss fell at every leg to E 30000 2243 1338156 499194 (1.338156 nats, 0.499194 bpb); CPU eval of ck30000 gives the same E line (eval30000.txt)
k1 kernels: one-warp softmax rows, split-K weight gradients, spin wait; product passes gcmp2, gacmp, gevalEXERCISED (GB10, non-quiet)../gpu-k1/: geval of rung 5 ck9000 and rung 6 ck30000 give the earlier E lines exactly; mutants s, p FAIL rc 47; 200 steps 1.182× faster than the softmax-only build
k2: 64×64 f32 GEMM tile (slots 32-39) when m and n are multiples of 64EXERCISED (GB10, non-quiet)../gpu-k2/: gcmp2, gacmp, both geval E lines exact; mutant t FAIL rc 47; the checkpoint after 200 steps is bit-identical to k1's; 200 steps 1.061× faster than k1, GEMM wait −17.45%
k3: RMS norm kernels (ids 10, 11) one warp per row, coalesced, single passEXERCISED (GB10, non-quiet)../gpu-k3/: gcmp2, gacmp, both geval E lines exact; mutant r FAIL rc 47 (small and max); RMS kernels 2.50× and 2.47× faster in the profile; 200 steps 1.058× faster than k2 in the same window
k4: cross-entropy kernel (id 21) one warp per row, coalesced, no stored e (3 reads + 1 write)EXERCISED (GB10, non-quiet)../gpu-k4/: gcmp2, gacmp, both geval E lines exact; mutant x FAIL rc 47 (small and max) and geval Δ −362083 µnats; grce 3.68× faster in the profile; 200 steps 1.041× faster than k3 in the same window
k5: causal attention GEMMs (ids 0, 1, 35 at batch 512) skip blocks and K tiles above the diagonal via arg words; grsoftb masks dp above itEXERCISED (GB10, non-quiet)../gpu-k5/: gcmp2, gacmp, both geval E lines exact; mutant q FAIL rc 47 (small and max); the checkpoint after 200 steps is bit-identical to k4's; the three attention GEMMs 1.35×, 1.52×, 1.42× faster in the profile; 200 steps 1.059× faster than k4 in the same window
k6: softmax kernels (ids 15, 16) load and store only the causal chunks of each row (predicated LDG/STG); gkisge predicate-field fixEXERCISED (GB10, non-quiet)../gpu-k6/: gcmp2, gacmp, both geval E lines exact; mutant w FAIL rc 47 (max; at the small shape its code equals the product's); the checkpoint after 200 steps is bit-identical to k5's; grsoftf 1.64× and grsoftb 1.68× faster in the profile; 200 steps 1.053× faster than k5 in the same window
k7: GEMM FFMAs (ids 0-7, 32-39) carry Ra operand reuse with control bit 109; accumulator columns remapped (j xor 1) off the b registers' banksEXERCISED (GB10, non-quiet)../gpu-k7/: gcmp2, gacmp, both geval E lines exact; mutant t FAIL rc 47 (small and max); the checkpoint after 200 steps is bit-identical to k6's; 64×64 GEMM wait 0.918× of k6's in the profile, all from reuse (remap-only variant r0 0.989×, inside the k6 spread); 200 steps 1.034× faster than k6 in the same window
k7b: the accumulator remap removed (OKBNK, gkcol, variant b0); Ra reuse with bit 109 kept, GPU code byte-equal to k7's reuse-only variantEXERCISED (GB10, non-quiet)../gpu-k7b/: gcmp2, gacmp, both geval E lines exact; mutant t FAIL rc 47 (small and max); the checkpoint after 200 steps is bit-identical to k6's and k7's; GEMM wait 0.955× of k6's over three rotated profile rounds (k7 0.934×, max k7b below min k6); 200 steps 1.0457× faster than k6 and equal to k7 (1.0003) in the same window
k8: 64×64 GEMM K loop double-buffered (ids 40-54, two slots each, gkgpr 168); QMD word 36 TARGET sized per kernel by gksmw (Mesa NAK policy); gpu-disasm.sh GPR guard (gkgpr ≥ highest GPR + 3)EXERCISED (GB10, non-quiet)../gpu-k8/: three windows kept. a1 hung (R158 under gkgpr 160); a2 bit-identical but 1.12× slower GEMM wait (NULL); a3 (new prereg): gcmp2, gacmp, both geval E lines exact, mutant t FAIL rc 47 (small and max), the checkpoint after 200 steps bit-identical to k7b's; 64×64 wait 0.913× of k7b's kernel under the same TARGET rule (max k8 below min k7b every round); GEMM wait 0.914×, 200 steps 0.969× of k7b's wall in the same window
k9: ReLU fused into the FFN GEMM epilogues (ep 1 ids 25/56 store FP and relu(FP); ep 2 ids 26/58 mask dF by FP > 0); gr.om RELUF/RELUB (ids 17/18) removed; gkope arms the next gkmm, gkepok refuses any other combination (-22); mutant m moves to the ep 2 thresholdEXERCISED (GB10, non-quiet)../gpu-k9/: gcmp2 (small, max, and an odd shape F = 96 on the 32×32 ids 25/26), gacmp, both geval E lines exact; mutant t FAIL rc 47 (small and max), mutant m FAIL rc 47 (small, max, odd); the checkpoint after 200 steps bit-identical to k8's; 48 fewer launches per profile (3 steps); summed GPU wait 0.924× of k8's (144.56 → 133.54 ms/step, max k9 below min k8 every round); 200 steps 0.942× of k8's wall in the same window
rung 7: the v2 shape (D 384, F 1536, H 12, P 15,833,472) gtrainf 0→30000 on rung 6's data, seed and schedule in 12 spark-windows, geval after every legEXERCISED (GB10, non-quiet)../gpu-r7/: every leg and geval rc 0; chip geval E 30000 2243 1254741 468077 (1.254741 nats, rung 6 1.338156); CPU eval of ck30000 (P5) prints the identical E line (run/eval30000.txt)

The γ_R gate, the ReLU kink cases that the night shape exposes, the Adam residual, the windows and all timings are in evidence/OMEGALLM/gpu/README.md. Not QUALIFIED: no quiet-machine timing, one chip, and a bitwise comparison with the CPU path is not expected (f32 against f64).