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 / docs / OMEGA.md

172 lines · 29375 bytes Raw Blame History Source

What Omega is

Omega is AIEN's language for all computing. The aim: you write a program once, and Omega's own tools check it and compile it to the machine code of the processor that runs it, GPU or CPU, with no vendor compiler, toolkit or runtime library at build or run time. On the CPU the language does that today. On the GPU it does not yet: the GPU code AIEN runs is built by C calls into Omega's encoder (bar C1, section 3).

On the GPU, the goal is a stack that does the jobs of CUDA's user-space software on the GB10. It is a research-stage toolchain and runtime, not a drop-in replacement for CUDA, and section 3 lists the bars it has not passed. I call Omega's GPU stack CUDA++: the jobs CUDA does (sections 2 and 3), plus what CUDA does not give you, the motor (section 6). On the CPU, Omega aims to replace C and its toolchain.

What CUDA++ is for: less computation, out of the big data centers. The goal is not a faster way to rent a data center. It is to need less of one: do the same work with fewer bytes moved, fewer operations and fewer joules per answer, so it runs on a machine a person owns (a DGX Spark, a PC with one graphics card, a laptop) instead of a building full of them. Every CUDA++ result is reported as work per answer (bytes, operations and energy per word, against the machine's own ceiling), not only as speed. This file says how far each of those has got, and the checks that have to pass before I can claim each one. Status words: PASS (a receipt exists on the named commit), PARTIAL, MISSING. Ledger item L386 tracks the work; tracking issue omega-mv#593.

1. The parts

PartWhat it isWhere it lives
The languageOmegese (the language the AI writer uses, docs/one_layer/OMEGESE.md) and OSC (the text language, docs/osc/). Both compile to one binary IR. checker2 checks the IR and issues a receipt. A backend then turns the IR into machine code.tools/omegese/, src/compiler/, src/checker2/
The GPU toolchainOmega writes the GPU's own machine code (sm_121 SASS on the GB10). There is no PTX, no nvcc and no ptxas. A kernel builder with 59 instruction kinds, a register allocator and an encoder produce every kernel Omega runs.src/omega_blackwell_codegen*.c, src/omega_blackwell_encoder.c
The GPU runtimeOpens the device, allocates memory, launches kernels, records command lists and runs jobs. It does the job of CUDA's runtime and driver API (libcudart, libcuda).src/omega_gpu_session.h, omega_gpu_cmdlist.h, omega_gpu_engine.h, omega_gpu_platform.h
The librariesMatrix multiply, matrix-vector (BF16, FP8, 4-bit, ternary), attention (decode and prefill), reductions, elementwise. They do the job of cuBLAS and cuDNN.src/omega_gpu_*_api.h

Below Omega, and not part of it: the driver. Omega's GPU stack talks to the GPU through the physics repository's driver client (nvrm/nvrm.c, m16/m16_native.c). The client talks to NVIDIA's open-source kernel module (nvidia.ko, nvidia-uvm.ko, version 580.173.02) and the module boots NVIDIA's signed GSP firmware. Aien is building its own GB10 driver to replace that kernel module (aien-dev/omega-gpu-driver, lane OwnDriver, building on aienux#441; L332); today the stack runs on NVIDIA's open kernel module, and the own driver has not yet run on the chip. GB10 facts I measure on the way (chip id, boot sequence) still go upstream to the Linux drivers Nova and nouveau as findings. The firmware stays NVIDIA's for a physical reason: the GPU checks its signature and will not boot anything else.

Prior art I build beside. Omega's sm_121 encoder is one of several open ones. Mesa's NAK compiler emits SM120 code (MIT, checked against nvdisasm), cubit is an MIT SM120/SM121a assembler and disassembler, blackwell-isa publishes MIT sm121a encoding tables, and nvidia-sass-document collects SASS notes. tinygrad's NVKIface talks to the same open kernel module interface my driver client uses. I credit them; cross-checking the sm_121 encoder against them is PROPOSED (the sm_80 encoder is already host-checked against NAK, seed/sm80/); THIRD_PARTY.md in aien-dev/CUDApp lists what I reuse.

2. CUDA, piece by piece

"CUDA" is a stack of NVIDIA software. This is each piece and Omega's replacement for it.

CUDA pieceIts jobOmega's replacementStatus
CUDA C++ languageHow you write a kernelThe kernel builder (C calls). Omegese and OSC do not compile to the GPU yet.BUILDING on branches, chip FAIL (bar C1; section 3)
nvcc, NVVM, PTX, ptxasCompile the kernel to machine codeOmega's own sm_121 encoder and register allocatorPASS: every kernel Omega runs is encoded by it
libcuda (driver API)Talk to the kernel driverphysics nvrm client, ioctls straight to the open kernel modulePASS (evidence/m16-blackwell-native-path-requalification-receipt.json in physics)
libcudart (runtime API)Device, memory, launch, streamsOmega GPU session, command lists, job enginePARTIAL: second queue, events and recovery after a timeout are built (bars C4, C5); C4 chip values PASS on a shared chip (evidence/C4-STREAMS/04-chip-values-20261025-048e5f5.log), C4 exclusive-window timing NOT RUN, C5 chip NO RESULT
cuBLASMatrix multiplyOmega matmul, tensor-core GEMM, FP8 and BF16 APIs, any-shape GEMM (bar C3, branch)PARTIAL: any-shape GEMM built, chip run pending
cuDNN, FlashAttentionAttention and network layersOmega decode and prefill attentionPARTIAL: model-shaped
CUB, ThrustReductions, scans, sortsOmega frozen-order reductions (evidence/E1-CLOSURE/), general reductions and prefix sums up to 2^28 (bar C3)PARTIAL: scan chip PASS (evidence/C3-SCAN/03-chip-20261022-a7d6463b.log, 04-chip-20261024-f16b56a58.log); no sort
cuFFT, cuRANDFFT, random numbersnoneMISSING
cuobjdump, nvdisasmRead machine code backOmega's own sm_121 disassembler (build/sm121dis); nvdisasm stays only as the reference it is checked againstPASS, receipts on main (bar C6, evidence/C6-DISASM/)
NsightMeasureOmega's own ceiling probes (115.14 TFLOPS tensor-core peak, 195.1 GB/s reads; evidence/OWN30B-T3-TC-PEAK-BW-5faa0f70-20261013T2236Z/)PARTIAL: probes exist, no single tool
CUDA samples, docsYour first kernelnone yet (runtime/r2-hello, runtime/r1-api are unmerged branches)MISSING
nvidia.ko, nvidia-uvm.koKernel drivernot Omega: AIEN's own GB10 driver (aien-dev/omega-gpu-driver, building on aienux#441, L332); findings go upstream to Nova and nouveauMISSING
GSP firmwareRuns inside the GPUstays NVIDIA's (signature-checked by the chip)not replaceable

What is already true, with a receipt

The 35B model AIEN served on the Spark is Qwen3.6-35B-A3B, a mixture-of-experts with about 3B of its 35B parameters active per token. It is served by my own C GPU stack, built inside the Omega project: the physics driver client, Omega's sm_121 encoder and register allocator, and the GPU kernels and runtime, all written in C. The Omega language does not reach the GPU yet (bar C1, below). That stack used no NVIDIA user-space software at all. On 2026-10-21 the live server (port 18091, --engine omega) had only libc, libm, libgcc_s and the loader mapped: zero CUDA libraries. It held /dev/nvidia0, /dev/nvidiactl and /dev/nvidia-uvm open, which is the open kernel module and nothing above it. Receipt: evidence/WHAT-OMEGA-IS-20261021/live-serve-no-cuda.txt (binary sha256, mapped libraries, ldd, driver version, the commands used).

So this sentence has a receipt (2026-10-21): AIEN's 35B model is served on the GB10 by my own C GPU stack, built in the Omega project, with no CUDA software: no libcuda, no cuBLAS, no nvcc. The kernels are built from C, not from the Omega language.

This one is not true yet: "Omega replaces CUDA." The language does not reach the GPU, and the toolkit has gaps a stranger would hit on day one.

3. The bar for "Omega replaces CUDA"

I say it when every row is PASS, each with a receipt pushed on the exact commit. No row is waived.

BarDone whenStatus (receipt paths checked 2026-10-27)
C1. The language reaches the GPU.Kernels written in Omegese compile through the IR and checker2 to sm_121 machine code and run on the GB10: vector add, a tiled GEMM and one decode-attention kernel. Their output matches a host reference bit for bit (or within a tolerance stated before the run), checker2 accepts every one, and a deliberately broken kernel is refused. At least one kernel of the live 35B decode path is then replaced by its Omegese version with identical golden tokens.BUILDING, chip FAIL (2026-10-24): the kernel form (vector add, the 35B gate, tiled GEMM, decode attention) and the build to sm_121 code live on omega omegese/gpu a99d711c and omegese/gpu-front d1ac019e, nothing on main. The chip runs of 2026-10-22 FAIL (logs recovered 2026-10-27: evidence/RECEIPTS-RECOVERED-20261027/c1-omegese-gpu-front-chip-20261022/). The non-mutant run on d1ac019e (chip-green-after-close-fix.log, 645 checks, 5 failed): vector add stored 996 wrong words; with short inputs it stored 896 wrong words and reported trap status 0 (want 3); the gate kernel stored 939 wrong words; one ops_f op was wrong. That run printed no failure for GEMM or attention, which is not a PASS either. The latched GEMM launch (marker wait timed out) and "attention not run" are from the mutant run (chip-red-after-close-fix.log), where failing is expected. The live 35B kernel swap has not started.
C2. A stranger can run a kernel.From an empty folder, only the README commands build and run hello-GPU on the GB10, and the zero-CUDA gate (aien-sovereign-core scripts/zero-cuda-gate.sh) passes on the binary. The runtime API is written down and versioned (docs/runtime/API.md, manifest check with negative controls).PARTIAL (2026-10-24): zero-CUDA gate and its negative self-test PASS (omega runtime/r2-hello 0f44b52b, evidence/RUNTIME-R2-HELLO/zero-cuda-gate.log on that branch, not on main); a fresh clone of that branch built and ran hello-GPU on the GB10 on 2026-10-22, exit 0, once (evidence/RECEIPTS-RECOVERED-20261027/c2-r2-hello-fresh-checkout-20261022/fresh-hello.log). That clone used git@github.com:aien-spark/omega.git over SSH, not the README's public URL. Missing: the versioned API (docs/runtime/API.md + manifest check with negative controls, omega runtime/r1-api, unmerged), the run from main's README URL, and both on main.
C3. General libraries.Any-shape GEMM in BF16 and FP8, both layouts, at least 200 shapes from 1 to 8192, every shape correct against a host reference, speed given as a fraction of the measured tensor-core ceiling. Reductions and prefix sums over lengths 1 to 2^28, bit-exact against the frozen-order host reference.PARTIAL (2026-10-24): any-shape GEMM (omega c3/gemm, evidence/C3-GEMM/) and reductions and prefix sums (omega c3/reduce-scan, contained in c3/gemm, evidence/C3-SCAN/) are bit-exact in the warp simulator against the chip-measured tensor-core and arithmetic models. Chip: scan PASS, 8,665 checks over every n to 2048, 2^k-1/2^k/2^k+1 to 2^28 and 64 random lengths, on 2026-10-22 against c3/gemm a7d6463b in 38 s (evidence/C3-SCAN/03-chip-20261022-a7d6463b.log) and again on 2026-10-24 on the L386 train tip f16b56a58 (evidence/C3-SCAN/04-chip-20261024-f16b56a58.log); the 208-shape GEMM run and its speed fraction NOT RUN.
C4. Streams and events.Two independent queues of the same work finish in under 0.75 of the sum of their solo times; an event wait orders two dependent jobs, checked by data, on the chip.PARTIAL (2026-10-25): second queue and event wait (omega c4/streams, carried inside c5/isolation) PASS on host and simulator. Chip values run 2026-10-22 (c5/isolation f792cd1d, evidence/C4-STREAMS/03-chip-values-20261022-f792cd1d.log): the negative control WITHOUT the wait was not red, so no proof. Re-run 2026-10-25 after the driver fix (physics 048e5f5, c5/isolation 02db88d33, evidence/C4-STREAMS/04-chip-values-20261025-048e5f5.log): C4 streams chip: PASS (8 checks); with the wait 0 of 3072 wrong, without it 3072 of 3072 wrong, so the control is red. The same log shows pair / (A + B) = 0.500 in both barrier modes and the serial red check at 1.000, but on a chip shared with other work; the overlap timing in an exclusive window is NOT RUN.
C5. Sharing and recovery.Two processes on one GPU both get correct results, or the second gets a named refusal and the first is unharmed. A kernel that never ends is timed out and a correct launch then succeeds in the same process.PARTIAL (2026-10-24): recovery after a timeout without restarting the process (omega c5/isolation, evidence/C5-ISOLATION/): host PASS, platform simulator 16/16 with both recover cases, 11 of 11 broken copies caught, Linux platform on a simulated driver 8/8. Chip: NO RESULT (evidence/C5-ISOLATION/03-chip-values-20261022-f792cd1d.log holds only the header; the run died with its worker before printing). The never-ending-kernel run touches the live server's GPU and waits for its owner's OK.
C6. Omega's own disassembler in every check.Omega's own sm_121 disassembler agrees with nvdisasm on every library kernel in src/, and every check that called nvdisasm calls Omega's.PASS, receipts on main (evidence/C6-DISASM/): on omega c6/disasm 19eebe0e all 331 library kernels, 59,152 words, 0 differ from nvdisasm; three red decoders fail as they must. Re-run 2026-10-24 on the L386 train tip after the code generator change (the *-20261024.log rows); the head-size-128 attention listing exits 0 there (08-gpu_attention_test-hd128-20261024.log, 107 checks). The clause "nothing calls nvdisasm" has a mechanical gate: 11-zero-nvdisasm-20261024.log (decoy nvdisasm called 0 times, exit 0) and its red check 12-red-zero-nvdisasm-planted-calls-20261024.log (exit 1). After the corpus producer repair (13-corpus-producer-controls-20261025.log): 14-test-sm121dis-20261025.log, 402 kernels, 74,096 words, 0 differ; the red decoder fails all 402. nvdisasm stays the offline reference these checks are compared against.

4. The rest of "Omega replaces everything"

These are not part of the CUDA claim. They are the rest of what Omega is for, and each has its own bar.

5. Performance: what has been measured

One DGX Spark GB10. The model is Qwen3.6-35B-A3B in FP8, a mixture-of-experts with about 3B of its 35B parameters active per word (token). It is served by my own C GPU stack (section 2), not by Omega-language kernels. Every number in this section is measured by me, with a receipt, and labelled as one of two kinds:

No same-Spark head-to-head with vLLM, llama.cpp, TensorRT or any other CUDA stack exists yet. It is bar P0 below (lane HeadToHead). Until it is published, this document makes no claim that Omega is level with, ahead of or behind any other system.

End to end

WhatMeasuredConditionsReceipt
One conversation, words per second22.0 to 22.5N=1, 32 chat prompts, up to 128 words each, greedy, prompt read one word per beat, chip exclusive and quiet (window 20261021T141700Z-f7b5e0), 2 runsaien-sovereign-core serve/q36-batch-v2 9c62690a evidence/q36-batch-20261021
N conversations at once, total words per secondN=8: 57.1. N=16: 62.4. N=32: 65.7 to 66.4same runsame (N=8 total 57.11, calc:f67ae6c1)

Chip-only (not end to end)

WhatMeasuredConditionsReceipt
Chip time per word, one conversation24.0 ms (41.7 words/s); 21.8 ms (45.9 words/s) with the exact two-pass headmedian graph chip ms per word, single requests; the receipt says these are not quiet-measure receiptsaien-sovereign-core main f30eb963 evidence/hum-exact-head/serve-combined/README.md (L314)
Chip time per word, one request20.1 ms (49.75 words/s)ONE request, 10 decoded words, decode only (its 1,274 ms prefill excluded), test server on port 18089, binary bin-16b27643, 2026-10-21evidence/RECEIPTS-RECOVERED-20261027/l354-door-one-row-20261021/ (L354; log recovered 2026-10-27)
Chip time per word, one conversation, the motor's stroke21.9 to 23.0 ms (43.5 to 45.7 words/s)first-pass medians of chip_ns_all_windows over four prompts; server binary bin-5b726818 per the receiptaien-sovereign-core serve/q36-batch-v2 9c62690a evidence/motor-chip-20261021
Reading the prompt in chunks (prefill gate), words per second196.8 at 8k, 250 at 2k, 275.5 at 256prefill gate inside window 20261021T215012Z, not served through the door yetomega serve/q36-prefill-v2 60ba3051; aien-sovereign-core serve/q36-prefill-v2 f6f341ef evidence/q36-prefill-20261021 (L369)
Extra kernel launch in a list24 to 31 us with wait-for-idlechip micro-benchmarkevidence/OWN30B-LAUNCH-COST-20261014T0120Z/

The launch cost's share of one word was given here as "2.95 percent (efficiency review G1)": log not in any repo, NOT_REPRODUCED; re-run needed.

Modeled ceilings (arithmetic, not measured)

From the weight bytes per word in the safetensors headers and the measured 207 to 237 GB/s reads: one conversation at FP8 about 58.5 to 67 words/s; 4-bit experts and head 82.4 to 94.3. Eight conversations at once, about 164 at 4k context with f32 state. Source: evidence/RECEIPTS-RECOVERED-20261027/q36-ceiling-notes-20261020/ (L310; the 2026-10-20 note, recovered 2026-10-27). This section used to also give "about 142 with a 4-bit trunk" and "roughly 30,000 words/s prefill from the FP8 tensor rate"; neither is in that note, so both are dropped until recomputed with a recorded source.

Figures published by others (not measured here, not comparable to the chip-only rows)

These are other people's numbers for other builds, often other models (Qwen3-30B-A3B has no DeltaNet state; Qwen3.6-35B-A3B does) and other measurement methods. They are listed only to set the P0 work. None has been re-measured on this Spark. FP8, one conversation: vLLM about 28 to 30 on this 35B (Tessera, June 2026), 44 on Qwen3-Coder-30B FP8 (Hellohal2064 vLLM build); llama.cpp 44.3 at Q8_0. 4-bit, one conversation: llama.cpp 89.3 (Q4_K_M, DandinPower llama.cpp_bench), vLLM 77 to 81 (AWQ/NVFP4), up to 97 to 120 with NVFP4 + MTP (Tessera). Eight at once: vLLM 313 (Qwen3-30B-A3B, NVIDIA forum harness); 845 (Qwen3-Coder-30B AWQ, GPUwerk). Prefill: llama.cpp about 2,000 to 2,500; vLLM 5,705 at 8k (GPUwerk, AWQ). Launch: CUDA graphs, a few us per node.

The performance bar

Each row PASS needs my receipt and the other system measured by me on this Spark, same model, same prompts, same output length, in the same quiet window.

BarDone when
P0. Measure them myself.llama.cpp and vLLM (their own current releases, built for sm_121) run Qwen3.6-35B-A3B at FP8 and at 4-bit on this Spark, one and eight conversations, 512 and 8k prompts, three runs each; table and logs pushed, labelled measured-by-us. Benchmark only: nothing of theirs enters the Omega path.
P1. One conversation.Omega's best format beats the best measured CUDA number at one conversation, with golden tokens identical to my host reference. Levers: 4-bit experts, head and trunk in my own format (L284, L355), exact two-pass head (L314), MTP and tree verify (L310, L013).
P2. Prompt reading.Omega prefill beats the best measured CUDA number at 512 and 8k. Levers: general tensor-core GEMM at a high fraction of the 237.5 TFLOPS rate (bar C3), flash-style prefill attention, chunked DeltaNet scan (L369, L017).
P3. Many conversations.Omega total words per second beats the best measured CUDA number at 8 and 32 conversations. Levers: grouped expert GEMM over the expert union, bf16 state (L313), continuous batching on the stroke (L312, L354).
P4. What CUDA stacks do not do.At least one measured win that comes from owning the whole path: one submission per word or a resident whole-model kernel (L272), zero-copy use of the shared memory, my own driver's launch path (L332).

Targets (set 2026-10-22; goals, not results)

Drake set the direction on 2026-10-22: "Get us level or ahead for everything. Push this for the roof as high as you can go." Nothing in this table is measured or reached. The target for each row is a fraction of this machine's own modeled ceiling. The middle column is published by others for other builds and often other models; it is not a measurement on this Spark. Each target is checked only against P0 figures measured the same way on both sides (end to end against end to end, same model, same prompts). The same-model numbers from P0 replace the published ones as soon as they exist; if a measured number is above a target here, the target moves above it.

RowBest CUDA number known (published by others)My targetOwner
One conversation, 8-bitabout 44 words/s60 (0.9 of the 8-bit ceiling)L356, L314
One conversation, best format97 to 120 (NVFP4 with MTP)150 or more: 4-bit experts, head and trunk in my own format plus several words per pass (MTP, tree verify)L355, L284
One request end to end, prompt includedn/awithin 10 percent of the decode figure for prompts up to 2kL369, L375
8 conversations at once313 to 8450.8 of the per-N ceiling with bf16 state and 4-bit weights, and above the P0 figure for the same modelL354, L312, L313
32 conversations at once1,679 (30B, AWQ)above the P0 figure for the same modelL354, L312
Prompt reading, 8k5,70515,000 (0.5 of the tensor-core ceiling)L403 (GEMM and attention kernels), L369 (door)
Time to first word, 8k prompt3.85 s (vLLM writeup, 7,234 tokens)under 1 sL403, L369, L375

6. CUDA++: the motor

CUDA gives you kernels, memory and streams. It leaves the hard part to you: how a whole model's bytes reach the math cores in time, and how many conversations share one read of the weights. Omega's answer is the motor. The motor is the ++ in CUDA++.

What the motor is. Separate engines in one body, each with one job and its own timing trace, coupled by one schedule:

Design, every part and every receipt: docs/speed/ENGINE.md (omega feat/typewriter-engine). Engine code: crates/aien-engine (schedule.rs, movement.rs, piston.rs, timing.rs; aien-sovereign-core feat/typewriter-engine). The 35B kernels the stroke fires: omega motor/serve.

Served on 2026-10-21

On 2026-10-21 port 18091 on the Spark served Qwen3.6-35B-A3B on the motor's stroke (AIEN_Q36_STROKE=1, binary bin-16b0e6f8), with zero CUDA libraries loaded (section 2 receipt). These are the receipts of that time, not a statement about the server today.

WhatMeasuredReceipt
Total words per second end to end, N conversations at once (32 mixed chat prompts, up to 128 words each, prompt reading included, chip exclusive and quiet, 2 runs)N=1: 22.0 to 22.5. N=8: 57.1. N=16: 62.4. N=32: 65.7 to 66.4aien-sovereign-core serve/q36-batch-v2 9c62690a evidence/q36-batch-20261021
The stroke against the same conversations taken in turn1.80x at N=8, 1.98x at N=16, 1.88x at N=32; at N=1, 0.98x (inside the run-to-run spread)same
Chip time per word, one conversation (chip-only, not end to end)21.9 to 23.0 ms (43.5 to 45.7 words per second), 0.67 of the modeled 63.25 ceiling at today's bytesaien-sovereign-core serve/q36-batch-v2 9c62690a evidence/motor-chip-20261021 (ENGINE.md section F)
Same words as the exact host referenceGate 1: 32 of 32 words on three prompts, 31 of 32 on the fourth with its one flip inside a band written before the run; the mutant (shared expert dropped) fails. Gate 2 through the HTTP door: 24 of 24 ids; the mutant server failssame
Movement engines alone, 35B layer beats12 of 12 configurations: 0 late beats, 0 misfires over 1,600 beats each; best beat 7.0 ms for 25.2 MB, median wait between fuel and fire 21 usomega evidence/engine/35b-engines-20261020T2349Z (ENGINE.md section C)
Whole 35B fed from the engines' buffers (host)32 of 32 words equal to the reference, 1,280 beats, 0 misfiresomega evidence/engine/35b-host-20261021T0025Z (ENGINE.md section B)

The chip-only figures in section 5 (41.7 to 49.75 words per second) are GPU time per decoded word, not end-to-end speed. Through the door, with the prompt read word by word, one request got about 22 words per second end to end (22.0 to 22.5, above). Faster prompt reading (below) is what closes that gap.

Built, not served

Not done, said plainly