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