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

70 lines · 4017 bytes Raw Blame History Rendered
1# Experimental local llama UI adapter
2
3This explicitly enabled **C++ host compatibility adapter** reuses llama.cpp's
4existing web UI and translates its chat requests into Omega's text sampling.
5Model inference remains in the `.om` runner. It provides no new model training,
6instruction tuning, or improvement in arithmetic.
7
8`--enable-local-ui-bridge` serves the ARM64 Linux guest on loopback port 8098.
9Adding `--aienux` serves the Aienux firmware experiment on loopback port 8099,
10without invoking Lima for that model. Both proxy the existing Qwen/Omega server
11and UI assets on port 8097. These are local development endpoints, not a remote
12service or a replacement for llama.cpp's complete API.
13
14The Linux runner is `ollm-ui` in the `omega-llm` guest's `~/omega` directory.
15It uses `omega-v2-edited-20261104.ck` and `merges4096.bin`. The firmware runner
16is the opt-in `native/omega/allen/local-model.om` application in `aien-dev/aienux`.
17The Mac's `Applications/Omega/Aienux` directory holds its private QEMU disk,
18firmware, process identifier and Unix sockets. The Aienux launcher verifies the
19installed image digests before starting it.
20
21## Build and operate
22
23```sh
24sh tools/omegallm-ui/build.sh /private/output
25/private/output/omega-ui-bridge --enable-local-ui-bridge
26# Or, in a separate process:
27/private/output/omega-ui-bridge --enable-local-ui-bridge --aienux
28```
29
30The dependency revision and digests are pinned in `build.sh`. cpp-httplib and
31nlohmann/json are MIT licensed, vendored by upstream llama.cpp; preserve their
32notices. Drake's installation runs both adapters as user LaunchAgents, with
33explicit HOME and PATH. The launchers restart those agents after Stop Omega.
34This avoids tying the server's lifetime to a short-lived terminal command.
35
36Linux accepts at most 4000 prompt bytes, 128 output tokens, and a 120-second
37runner deadline. Aienux accepts one printable ASCII prompt of at most 159
38bytes, caps each reply at eight tokens, and has a 1200-second deadline including
39boot. Start a new chat for each Aienux prompt. The checkpoint has only a
40256-token context window. Message text is joined as plain text, not transformed
41into an instruction chat template.
42
43Only one Omega request is admitted per adapter. Linux cancellation terminates
44only that request's guest process group. Firmware cancellation stops this
45experiment's private VM through its private monitor socket; reopen **Aienux
46Omega.command** afterward. Its read-only checkpoint disk is preserved. This
47is slower than keeping a reusable cancelled context but prevents stale output
48from being mistaken for the next response. Qwen requests use the existing
49server separately. After a successful firmware request the adapter pauses its VM;
50the next request resumes it. This prevents UEFI idle polling from consuming a
51Mac CPU core. Tool use, structured output and multimodal inputs are refused.
52
53## Evidence and harness boundary
54
55`evidence/OMEGALLM/macbook-ui-20261106` records Linux sampling parity, streamed
56output, request validation and final endpoint checks. Aienux records its EFI
57image hash, native-reference parity, invalid-frame and truncated-checkpoint
58refusals, Mac HTTP output and cancellation in its own
59`evidence/OMEGA-LOCAL-MODEL/macbook-20261106` directory. Browser assets were
60checked over HTTP; browser clicks and rendering were not automated.
61
62The Omega harness was used for compiler pins, reuse, explicit boundaries,
63positive execution and negative controls. **Full harness compliance is not
64claimed:** its first-party language rule requires an Omega successor and a
65compiler PR for last-resort host code. This adapter's intended successor is an
66Omega HTTP/JSON and local-process/Unix-socket runtime on macOS. No such compiler
67PR is provided by this experiment. The existing omega-bridge macOS path rejects
68Linux host words; its scalar Mach-O support does not supply these runtime APIs.
69That migration remains open work, rather than being disguised as generated
70code or inferred from model inference running in Omega.