interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / omega / allen / LOCAL-MODEL.md

89 lines · 4746 bytes Raw Blame History Rendered
1# Local Omega model experiment
2
3This opt-in application links Allen's existing conversation lifecycle to the
4Omega LLM CPU implementation from `aien-dev/aien-train`. The checkpoint,
5tokenizer, attention, sampling and arithmetic run inside the firmware guest.
6The guest contains no Linux runtime and makes no network inference requests.
7It does not replace the default Allen firmware or change the frozen C kernel.
8
9This is a **firmware-hosted application under x86-64 emulation**. UEFI Boot
10Services remain active. It is not the standalone Aienux kernel, an ARM64
11firmware port, native Apple Silicon execution, or hardware qualification.
12
13Observed November 6, 2026 on an M2 MacBook Air: the Astra checkpoint produced
14` The kitten was sad and scared. The` for eight greedy tokens, matching the
15Linux reference byte for byte. Generation took 110.04 seconds under QEMU TCG;
16this is a single sample, not a performance benchmark. The browser adapter's
17two-token request streamed ` The kitten`, with first text at 11.57 seconds.
18Receipts are in
19[the Mac evidence directory](../../../evidence/OMEGA-LOCAL-MODEL/macbook-20261106/).
20The same firmware image passed invalid-frame and truncated-checkpoint refusal
21checks on the Spark-hosted emulator. It is still an experiment, not a useful
22speed replacement for the native ARM64 Linux inference path.
23
24## Harness acceptance
25
26The compiler is pinned by digest; build failures and mismatched pins must
27refuse. A successful build alone does not pass acceptance. Boot the image,
28require `LMREADY`, submit a fixed prompt, require `LMDONE`, and compare the
29decoded generated bytes with the same checkpoint, seed and sampling settings
30on the reference runner. Invalid frames must return `LMERR` without starting
31inference; a following valid frame must still work. Corrupt or missing model
32files must never produce `LMREADY`.
33
34All model and firmware adapter implementation is Omega. QEMU and its firmware
35provide the emulated machine. Test orchestration is outside the guest. The
36separate experimental Mac llama UI adapter is host C++ and must not be described
37as pure Omega or evidence of a native macOS Omega runtime.
38
39## Build and boot
40
41On Linux ARM64, provide the x86efi compiler pinned to
42`3ad9f10f64309e7acf8a725082b28e23a2a4aeb07e98322fb4dc0fcd8fc93194`.
43The training source needs `osampleloaded` in `native/omegallm/cli.om`.
44
45```sh
46OMEGA_COMPILER=/path/to/omc sh native/omega/allen/build-local-model.sh \
47 /path/to/aien-train /fresh/output/BOOTX64.EFI
48```
49
50Install the image as `EFI/BOOT/BOOTX64.EFI` on a FAT disk. Put the checkpoint
51at `ASTRA.CK` and tokenizer at `BPE.BIN` in its root. Attach the disk read-only
52to QEMU with at least 2 GiB of guest RAM and one emulated CPU. No virtual NIC
53is required. Serial console input/output carries the protocol below.
54
55The selected inference-only checkpoint is the November 4 Astra weight edit,
56SHA-256 `131f7e3f26f5494a9882d8107096d4209651978a5bf35eccb3f953203d1f07d6`.
57The tokenizer SHA-256 is
58`73a29baf97619a746a21232c403bf08af71a76e48b3b2cde6d64dab766083882`.
59Check these externally before installing the disk. The model loader also
60validates checkpoint shape, length and its format checksum. That checksum
61detects corruption; it is not cryptographic authentication.
62
63## Console protocol
64
65After `LMREADY`, send `LM1 ID TOKENS TEMPMILLI SEED HEX_PROMPT` followed by CR.
66ID and seed are unsigned 32-bit decimals; ID is nonzero. Tokens are 1 through
67128, temperature is 0 through 2000 (0 means greedy). The prompt is 1 through
68159 printable ASCII bytes, encoded as lowercase hexadecimal.
69
70Responses are `LMSTART ID`, zero or more `LMDATA ID HEX_BYTES`, then
71`LMDONE ID`. `LMERR ID CODE` refuses a request. The model is exclusive to one
72request until completion. Firmware history holds only a printable preview;
73it is not silently inserted into the next prompt. A host supplies any desired
74conversation context explicitly.
75
76The Mac launcher is **Aienux Omega.command**. Its separate llama UI endpoint is
77`http://127.0.0.1:8099`, model **Omega-Astra-Aienux**. The host adapter pauses
78the VM after completed requests and resumes it for the next request so firmware
79polling does not occupy a CPU core while idle. Cancelling a generation stops
80this private VM; reopening the launcher reloads the read-only model. The host
81adapter and launcher are supplied by the aien-train UI experiment, not by a
82Linux process in the firmware guest.
83
84## Capability limit
85
86This is the existing 15.8-million-parameter TinyStories model. The experiment
87does not train a new model or establish improved math. It has failed the local
88arithmetic and extraction probes documented by aien-train. Running it under
89Aienux does not make it a replacement for a general small instruction model.