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