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/ggml-omega # ggml-omega aien-dev/ggml-omega Brought by drakestapleton Unfinished: not checked yet There is no published receipt of a rebuild from its source yet. What a receipt is Get this repository Git over HTTPS `git clone --no-checkout https://interplane.io/projects/ggml-omega/repo.git ggml-omega && git -C ggml-omega checkout --detach a30322c90191507c46c1b74783d722d617d4514c` Source archive of `a30322c90191507c46c1b74783d722d617d4514c` Download ZIP · tar.gz Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers README.md # ggml-omega A ggml backend whose op kernels are seeded-Omega units. llama.cpp loads it as an out-of-tree backend (`GGML_BACKEND_PATH=libggml-omega.so`); the ops it takes run in Omega-compiled code, every other op falls back to ggml's CPU backend. One job: run ggml ops through Omega. Op Omega kernels (`kernels/`) Scope MUL_MAT `df32`, `dh16`, `dq8`, `dq8r` (row dots, f64 accumulation) weights f32, f16, q8_0; activations f32 ADD SUB MUL DIV `bin` f32, row-level broadcast RMS_NORM, SCALE `sq`, `rmsc`, `scl` f32 rows SOFT_MAX `smw`, `smwh`, `vmax`, `sexp`, `rcp` f32, optional f32/f16 mask, no ALiBi bias, no sinks ROPE `rtsc`, `rope` (own sin/cos/exp/log in `math.om`) NORMAL and NEOX, no YaRN ramp, no freq factors GET_ROWS, SET_ROWS, CPY/CONT/DUP `cpy`, `cpyh`, `h2fv`, `f2hv` f32 and f16 (f16 rounding done in Omega) GLU (swiglu), UNARY (silu) `swi`, `silu` f32 `ggml-omega.c` is interim host glue: tensor addressing, loops, thread split, staging copies and bit moves only; every arithmetic step and conversion is Omega. Its successor is an `.om` loadable object once the Omega native object ABI exists (aien-dev/omega-mv #636/#637). ## OmegaGB10 device (opt-in) Built with `OMEGA_GGML_GB10=1 CUDAPP_SRC= CUDAPP_LIB=` and selected at run time with `OMEGA_GGML_DEVICES=gb10` (or `host,gb10`; default `host`), a second device runs three ops on the NVIDIA GB10 through CUDA++ (aien-dev/CUDApp) runtime calls whose kernels come from Omega's own code generator: Op Chip call Scope MUL_MAT `omega_gpu_gemm_ex` (CUDApp `gemm_ex`, aien-dev/CUDApp#139); shapes, leading dimensions and batch strides planned by the Omega unit `kernels/gbmm.om` weights f32, f16, bf16, or q8_0 dequantised by the Omega unit `dq8r`; activations f32, so every call takes the bf16x3 route (HMMA.BF16, fp32 accumulation; not exact fp32) RMS_NORM `omega_gpu_rmsnorm_f32` f32 rows, row length a multiple of 128, at most 16384 GLU swiglu `omega_gpu_swiglu_f32` f32 Every other op falls back to ggml's CPU backend. `ggml-omega-gb10.c` is interim host glue like `ggml-omega.c` (same successor). Receipt, 2026-10-27 on the Spark GB10 beside the resident server (evidence/gb10-20261027T0726Z ): `test-backend-ops -b OmegaGB10` against the CPU backend, MUL_MAT 871 cases OK / 0 FAIL, RMS_NORM 7 / 0, SWIGLU 12 / 0; a mutant `gbmm.om` (`OMEGA_GGML_MUTANT=gbmm-k`) fails 385 MUL_MAT cases. This is op-level EXERCISED on one chip, not a qualification. NOT_RUN: any model on the GB10 device (`tests/e2e-gb10.sh`, CPU vs OmegaGB10 token and logit match) waits for an exclusive GPU window; CI has no GB10 and builds the host device only. Follow-up on this experimental branch, 2026-10-29: the exclusive model window was authorized and exercised. Qwen2.5-0.5B Q8 and Qwen3.5-9B BF16/Q8 each matched the CPU reference's greedy tokens for the fixed prompt over 16 steps. The Q35 runs recorded nonzero MUL_MAT, RMS_NORM and SWIGLU calls and an after-inference library snapshot without the forbidden NVIDIA user-space libraries. Logits are not numerically identical; this is a bounded model check, not full chat-corpus or performance qualification. The source and file hashes, exclusions and raw-result locations are in `evidence/gb10-model-20261029.json`. The model comparison now fails for empty output, partial rows, nonfinite scores, wrong step counts or a changed greedy token. `e2e-gb10.sh` also requires executed operations and the inference library snapshot. Its comparator status reaches the caller without a `tee` pipeline hiding a failure. Existing result files are preserved; reruns need a fresh output directory. ## Build and test ``` OMEGA_GGML_OMC= OMEGA_GGML_BIND_OMC= OMEGA_BRIDGE= \ GGML_SRC= GGML_LIB= ./build.sh tests/backend-ops.sh build/libggml-omega.so [mutant .so] cc -std=gnu11 -O2 -Wall -Wextra -Werror -o build/cmp tests/cmp.c -lm node tests/test-cmp.mjs build/cmp node tests/test-e2e-gb10.mjs ``` The two Node scripts are verification-only failure controls, tested with Node v24.21.0; they do not add a model-serving or production dependency. The full model driver remains shell/C and uses the pinned llama.cpp build. The shared library exports only `ggml_backend_init`. Its Omega kernels, CUDApp entries and hashing helpers are private to the backend. This prevents a host library such as llama.cpp's `libmtmd` from replacing a same-named helper with an incompatible signature. `sh tests/exports.sh build/libggml-omega.so` checks this boundary. A full-server startup exposed this collision after the bounded model tests passed; those earlier tests did not load `libmtmd`. Pins (checked by `build.sh`, refuses on mismatch): omc sha256 `2c824805…` (aien-dev/omega-mv `e5b32567`), omega-bridge `src/native.om` sha256 `e2077722…` (omega-bridge `d8174edd`), binding compiler sha256 `734f0a39…`, llama.cpp `7aca0d2e`. `.github/workflows/ci.yml` runs the whole chain on `ubuntu-24.04-arm`: kernels vs libm and `_Float16`, `test-backend-ops` per op against the CPU backend, an `add -> sub` mutant that must fail, and a Qwen2.5-0.5B q8_0 end-to-end greedy decode, CPU vs Omega (top-1 agreement, max abs logit difference, timing). ## Connected repos - Parent: aien-dev/omega-bridge supplies the native call ABI binding generator (`src/native.om`, f32/ushort kinds from omega-bridge PR #26), pinned by sha256. - Compiler: aien-dev/omega-mv `seed/out/omc`, pinned by sha256. - Host: ggml-org/llama.cpp , pinned by commit; nothing here is upstreamed. ## License Apache-2.0 WITH LLVM-exception, see LICENSE . ## Human-Directed Agentic Engineering Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions. For the documented method and a systems-software case study, see Gregory M. Kurtzer, [*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026)](https://doi.org/10.5281/zenodo.`23682548` ). ## macOS ARM64 preparation and build The current native bridge emits both ELF and Mach-O compatible AArch64 bindings. The model kernels are still compiled by the original pinned Omega compiler. The separate pinned baseline compiler builds the newer binding generator. On Linux ARM64, set both compiler paths and `OMEGA_BRIDGE`, then run `OMEGA_GGML_STAGE=prepare OMEGA_GGML_OUT=/path/to/prepared ./build.sh`. Copy the complete prepared directory to the Mac. On the Mac, set `GGML_SRC` to the exact pinned llama.cpp checkout and `GGML_LIB` to its matching macOS release libraries, then run `OMEGA_GGML_STAGE=compile OMEGA_GGML_OUT=/path/to/prepared ./build.sh`. The compile phase verifies the recorded file hashes, compiler/source pins, and backend source identity. These are integrity checks on an operator-owned build artifact, not a signature or permission to accept an untrusted bundle. The matching upstream macOS ARM64 runtime release is llama.cpp `b11913`. Only the small backend is compiled on the Mac; no full llama.cpp build is needed. Run `tests/exports.sh prepared/libggml-omega.dylib` and the kernel/model checks before using it. Set `GGML_BACKEND_PATH` to the absolute dylib path. A model can mix supported Omega operations and ordinary CPU operations. Selecting `--device Omega -ngl 99` requests full eligible layer offload, but the scalar Omega matrix kernels are substantially slower than optimized CPU kernels. No Apple GPU acceleration is implemented by this backend. A loaded backend alone is not execution evidence: use an executed-kernel negative control and a model comparison. The existing `bin-add` mutant supplies that control. ## For developers: proof and records The full record of this project. Words that are used only here are explained once: ID The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is `git:80224ad4a5dd50e3f6df1afde4478c33ddb224a30d3f7dd75065520534ba763a`. Its old id, kept only so that old links still work: `zZnK5QhLTtJTmhHuRi2BtRWQdMU4`. Owner The key that signs every record of the project. This forge lists the project under drakestapleton; its key is `SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs`. Refs and HEAD Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch. Patch A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes . Receipt A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts . This project has no receipt in that list yet. Clones and fetches over HTTPS: 0 by visitors (git smart-HTTP `info/refs` requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured `git-upload-pack` requests from all clients (the source of this count is retired) Downloads: 1 by visitors (1 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07) commit `a30322c90191507c46c1b74783d722d617d4514c` Branches Tags History `a30322c` Merge pull request #4 from aien-dev/feat/macbook-local-model Drake Stapleton committed 2026-11-06 ``` .github/ evidence/ kernels/ tests/ .crumb 2311 .gitignore 16 .goals.json 1149 LICENSE 12278 README.md 8303 build.sh 7173 exports.map 50 ggml-omega-gb10.c 22381 ggml-omega-gb10.h 346 ggml-omega.c 29933 ``` Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON