interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / README.md

232 lines · 14508 bytes Raw Blame History Rendered
1# Omega
2
3![Omega logo: braided strands forming the Omega symbol above the word OMEGA](docs/img/omega-logo.png) ![Sovereign Intelligence wordmark: a small ember square before the name](docs/img/sovereign-intelligence-logo.png)
4
5**No more out-of-memory. A 35B model up in about a minute. Straight to the metal.**
6
7Omega is a programming language, and a compiler for it that is written in Omega itself. It compiles a model
8server into one small static file that drives the GPU directly. This is why you would want it:
9
10| What you get | What was measured | Record |
11| --- | --- | --- |
12| **No more out-of-memory** | The server takes its memory once, at startup. The Inkling-2-Mini server holds a fixed table of 8 stream slots and no heap. In its live self-test on one NVIDIA GB10 the 9th concurrent request was answered with HTTP `503 server_busy`, and a retired slot was reused. | [om/gpu/inkling2/README.md](om/gpu/inkling2/README.md) |
13| **A 35B model up in about a minute** | The 34.7 GB Qwen 3.6 35B-A3B model loaded cold in 43 to 72 seconds, in three recorded windows on one GB10. | [evidence/OLLM-HELIX-CLOSED-LOOP-20261121](evidence/OLLM-HELIX-CLOSED-LOOP-20261121/README.md) |
14| **Speed on real weights** | The same 35B model decoded at 67.71 tokens per second with real weights (a 24-token run; five kernel variants produced the same 24 tokens). | [evidence/HELIX-BRAID4-RSI-JIT-20261121](evidence/HELIX-BRAID4-RSI-JIT-20261121/README.md) |
15| **One small file** | The 35B runner is one 281 KB statically linked AArch64 ELF. `ldd` reports `not a dynamic executable`. | [om/gpu/q36/README.md](om/gpu/q36/README.md) |
16
17![Four coloured strands wound into one rope](docs/img/omega-strands.svg)
18
19## What you do not need
20
21No CUDA. No HIP or ROCr. No Vulkan. No OpenCL. No PyTorch. No Python. No libc.
22
23The GPU programs load no shared library, so none of those is in the process. On NVIDIA GB10 the program
24opens `/dev/nvidiactl`, `/dev/nvidia0` and `/dev/nvidia-uvm` itself. What stays in place below it is NVIDIA's
25open kernel modules and signed GSP firmware ([om/gpu/q36/README.md](om/gpu/q36/README.md)). On one AMD
26Instinct MI300X an Omega launcher ran a 27B model with no HIP, no ROCr and no PyTorch in its process; a Python
27script prepared the dispatch plan beforehand on the CPU
28([the run record](https://interplane.io/drakestapleton/CUDApp/blob/main/evidence/amd-qwen38-native-refusal-20261113/README.md)).
29
30## Why it is different: four strands
31
32Omega does not ask you to trust one compiler binary. It grows four compilers, each from its own hand-written
33seed of about 400 bytes of machine code. The four strands must arrive at the same compiler, bit for bit.
34
35![Four seeds, the Monk, the Predator, the Trickster and the Ascetic, wind into one helix and close on one compiler, omc](docs/img/omega-four-strands.svg)
36
37| Strand | Seed | What it is for |
38| --- | --- | --- |
39| The Monk | 408 B, `seed/rung0/seed0.hex` | The skeleton: the reference compiler and the proof verifier. It refuses on one wrong bit. |
40| The Predator | 396 B, `seedB0.b0` | The muscle: an optimizing compiler that hunts for faster GPU kernels. |
41| The Trickster | 404 B, `seedC0.c0` | The immune system: it attacks the proof gate. Its checks are twelve host adversarial controls and three guards that came from failures observed on silicon. |
42| The Ascetic | 404 B, `seedD0.d0` | The discipline: zero-swap scheduling with warp-yield pacing. |
43
44The four converge on `seed/out/omc` (952,784 bytes, SHA-256
45`708fdc0f81866594ed6df2f492b7a8a6bc7456f2d733a838b7f840549ebba6c3`). One faulty strand is quarantined and
46regrown from its seed. When fewer than three of the four agree, the build stops. The commands and the records are in
47[seed/helix/README.md](seed/helix/README.md).
48
49## Serve a model yourself
50
51`q36-35b` is an OpenAI-compatible HTTP server for Qwen 3.6 35B-A3B. You need an NVIDIA GB10 (a DGX Spark)
52running 64-bit Arm Linux, and the model weights. Run these from the root of this repository, with
53`Q36_MODEL_DIR` set to the folder that holds your copy of the weights:
54
55```sh
56export Q36_MODEL_DIR="$HOME/models/qwen3.6-35b-a3b-fp8"
57sh seed/omega-from-seed.sh
58sh om/gpu/q36/build.sh build/q36
59sh om/gpu/q36/install-spark.sh .
60"$HOME/.local/bin/q36-35b" --self-test
61"$HOME/.local/bin/q36-35b" --port 18091
62```
63
64[om/gpu/q36/README.md](om/gpu/q36/README.md) has what each step does and what was verified.
65
66## What these numbers are, and are not
67
68They were measured on one NVIDIA GB10, each in the run its record names. The compiler in this repository
69makes programs for 64-bit Arm Linux. The website has the prebuilt compiler and a curl install:
70[interplane.io/omega](https://interplane.io/omega/).
71
72## What Omega is
73
74Omega is the language of Sovereign Intelligence (SI), my name for the whole stack: the language, the runtime,
75the GPU layer and the models that run on them.
76
77The aim is one path a person can inspect from start to finish. A hand-written seed of a few hundred bytes grows,
78one small step at a time, into the compiler. That compiler is meant to build everything else, with no step
79left as a black box.
80
81This project is unfinished: part of it is still older C code. This page says what works, what is old and what
82has not been run yet.
83
84## UXL one command
85
86```sh
87git clone https://interplane.io/drakestapleton/omega-mv.git && cd omega-mv && ./uxl-run.sh
88```
89
90On Windows, the same clone, then `.\uxl-run.ps1`. If WSL2 is installed, that script runs `./uxl-run.sh` inside it. If not, it runs the same checks here.
91
92`./uxl-run.sh` detects the OS, the CPU, and which backends are present, prints that at the top of the log, and adapts. x86 Linux uses qemu-aarch64 when binfmt is registered. arm64 Linux runs `omc` natively. macOS runs the checks that do not need `omc` and marks the rest NOT_RUN. Native Windows without WSL does the same, and the hint is `wsl --install -d Ubuntu`. When a toolchain package is missing, the log prints one install command for that distro and does not run sudo. `./uxl-run.sh --install-deps` is the switch that runs it. SPIR-V validation, execution (`cl` and `vk`), and conformance checking all run directly in pure seeded Omega (`gpu/spirv/emit.om`, `val.om`, `run.om`, `conform.om`) with no `spirv-tools`, OpenCL ICD, Level Zero, Vulkan, or lavapipe dependency. The process exits 0 when nothing FAILed. NOT_RUN is not a failure. What the run checks is in [docs/UXL.md](docs/UXL.md).
93
94## Where it stands
95
96| Part | Where it stands | Read more |
97| --- | --- | --- |
98| The compiler, written in Omega | Works. It is rebuilt from the seed and makes programs for 64-bit Arm Linux. | [seed/README.md](seed/README.md) |
99| Programs for 64-bit Arm UEFI firmware (`target a64efi`) | Implemented. Exercised on one physical DGX Spark and under QEMU/EDK2. | [docs/A64-EFI.md](docs/A64-EFI.md) |
100| Programs for Intel and AMD processors | Candidate. This project's own checks of the Linux programs ran in an emulator only. One firmware program ran once on a real iMac, recorded in [docs/X86-EFI.md](docs/X86-EFI.md). | [docs/X86-LINUX.md](docs/X86-LINUX.md) |
101| Output for web browsers (WebAssembly) and for SPIR-V, a common format for programs that run on graphics cards | In the compiler chain. The SPIR-V output has run on a processor only, not on a graphics card. | [docs/SPIRV.md](docs/SPIRV.md) |
102| The GPU layer, "Omega GPU" | Moving here from CUDA++, my earlier GPU project, one piece at a time, as Omega only (AMD, NVIDIA, SPIR-V, HW, driver and runtime slices are here). | [gpu/README.md](gpu/README.md) |
103| Sovereign Intelligence pure-Omega layers | Integrated here as pure `.om` units built by `seed/out/omc`, indexed in [si/STACK.tsv](si/STACK.tsv). | [si/README.md](si/README.md) |
104| Older C code | Still here. Each piece is replaced by Omega and then removed. | [The list of what is left](docs/migration/C-TO-OM-INVENTORY.md) |
105| Earlier runtime and numeric results | History. Each one is tied to the exact version in its receipt, the saved record of a check. | [ENGINEERING-NOTES.md](ENGINEERING-NOTES.md) |
106
107The road to version 1.0 is in [docs/ROADMAP-1.0.md](docs/ROADMAP-1.0.md).
108
109## Get a copy
110
111The [project page on Interplane](https://interplane.io/drakestapleton/omega-mv) shows the files, the history
112and how to get a copy on your machine.
113
114## Try it
115
116You need a 64-bit Arm Linux machine. The compiler is the file `seed/out/omc`. This writes a three-line
117program, compiles it and runs it:
118
119```sh
120printf 'fn main to int\nret 7\nend\n' > seven.om
121seed/out/omc < seven.om > seven
122chmod +x seven
123./seven; echo $?
124```
125
126It prints `7`, the number the program returns.
127
128To rebuild a fixed, published version of the compiler from the seed on your own machine, and check every step
129against published fingerprints without changing any tracked file (this needs a git copy that contains the one
130commit the challenge pins; a normal clone has it, a zip download does not):
131
132```sh
133sh seed/challenge/run.sh
134```
135
136[seed/challenge/CHALLENGE.md](seed/challenge/CHALLENGE.md) names that version and explains what the run
137proves. It is an earlier version than the `seed/out/omc` used above. The command that rebuilds today's
138compiler from the seed is `sh seed/omega-from-seed.sh`; run it in a spare copy, because it writes into the
139project folder.
140
141- The language: [docs/one_layer/OMEGESE.md](docs/one_layer/OMEGESE.md)
142- The newer language profile and what it guarantees (detailed, for engineers):
143 [docs/one_layer/OM2-TUTORIAL.md](docs/one_layer/OM2-TUTORIAL.md)
144- One small program, explained line by line (written for an older version of the compiler):
145 [docs/TEACH_OMEGA.md](docs/TEACH_OMEGA.md)
146
147## Core ideas
148
149These are what the project is built toward. The notes under each say how far it has come.
150
151- **Smart is not trusted, and intelligence is not authority.** Trust comes from checks that passed, never from
152 how capable something is.
153- **Meaning is permanent; the way it is written is disposable.** A program is meant to be named by a
154 fingerprint of its written form once the form is tidied, so respellings such as spacing and names share one
155 name. Today the older C code computes this name. Programs built with `seed/out/omc` do not get one yet.
156 [spec/program-identity.md](spec/program-identity.md) says exactly how far the idea goes.
157- **Pure computation is kept apart from effects.** The aim is that anything that changes the outside world
158 needs a stated permission and leaves a receipt, a saved record of what was done. Programs built with
159 `seed/out/omc` do not produce such receipts yet.
160
161## Rules I keep
162
163- Omega is the only language for new work here. Code in C, Rust or shell that remains is unfinished migration,
164 not the plan.
165- A claim counts only with the exact command, its result and a fingerprint of what it produced.
166- Evidence is never edited or overwritten. Failed experiments stay.
167- A result from a run that did not use the target chip, or from an emulator, is never reported as a hardware
168 result.
169- Results use fixed words: PASS, FAIL, NOT_RUN (the check was not run), BLOCKED_HARDWARE (it needs a machine
170 that was not available), BLOCKED_OPERATOR (it needs a decision from me), MISSING_IMPLEMENTATION (the code
171 does not exist yet).
172- Builds are offline and in-house.
173
174## What is in each folder
175
176| Folder | What it holds |
177| --- | --- |
178| `seed/` | The compiler chain, from the hand-written seed up to `omc`. |
179| `gpu/` | Omega GPU: the pure-Omega GPU layer (AMD, NVIDIA, SPIR-V, HW, driver and runtime slices) and its checks. |
180| `aienux/`, `core/`, `bridge/`, `protocol/`, `train/`, `apps/`, `si/` | Pure-Omega Sovereign Intelligence layers (OS, runtime/agent core, compatibility, networking/protocols, training/Omega LLM, apps/sites, front-door/ledger), each gated by its `units-gate.om`. |
181| `spec/`, `docs/` | The language and its documents. |
182| `tests/` | The gates. A gate is a check that must pass before a change lands. |
183| `evidence/` | Receipts, each tied to an exact version. |
184| `src/` | The older C implementation that is waiting to be replaced. |
185
186[FOLDERS.md](FOLDERS.md) covers every folder and the rules each one keeps.
187
188## How it fits with the other projects
189
190- [CUDA++](https://interplane.io/drakestapleton/CUDApp) holds the parts of the GPU layer that have not moved
191 into `gpu/` yet.
192- [Omega Bridge](https://interplane.io/drakestapleton/omega-bridge) is the compatibility layer. It lets
193 programs in other languages call compiled Omega.
194- [aien-architecture-mv](https://interplane.io/drakestapleton/aien-architecture-mv) holds the decision records
195 and the order of the work.
196- [aienux](https://interplane.io/drakestapleton/aienux) is the core of AienOS, the operating system Omega is
197 meant to run on.
198
199## Papers
200
201- [Omega: A Programming Language Built for Verified Programs](https://doi.org/10.5281/zenodo.23547810)
202- [The Token Is the Instruction](https://doi.org/10.5281/zenodo.23644702)
203- [A Call to Humanity: Breaking the CUDA Stranglehold on the Hardware Market](https://doi.org/10.5281/zenodo.23614483)
204
205Author: Drake Stapleton, [ORCID 0009-0002-6890-7111](https://orcid.org/0009-0002-6890-7111). To cite this
206work, use [CITATION.cff](CITATION.cff).
207
208## Human-Directed Agentic Engineering
209
210I set the goals, the architecture, the limits, what counts as done and where to stop. AI agents write the
211code, run the checks, find what failed and fix it inside those limits. I stay responsible for every claim and
212every release. [CONTRIBUTORS.md](CONTRIBUTORS.md) lists which model did what.
213
214The method is described by Gregory M. Kurtzer in
215[*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026)](https://doi.org/10.5281/zenodo.23682548).
216I cite it for the method only. It does not change authorship or the qualification of earlier experiments.
217
218## Contributing
219
220The way to send a change to this project through Interplane is still being built. Until it is ready, write to
221aien@aienos.com. Bring the exact command you ran and what it printed, for the exact version you changed.
222Receipts name the exact commit and refuse a dirty tree, and existing evidence is never edited in place.
223Someone who did not write the change reviews it before it lands.
224
225## Licence
226
227Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
228
229## For engineers
230
231The detailed notes that used to be on this page are in [ENGINEERING-NOTES.md](ENGINEERING-NOTES.md): the full
232state of each part, the checks for the older C code, and how the host checks behave on a busy machine.