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 / om / gpu / q36 / README.md

94 lines · 13628 bytes Raw Blame History Source

Qwen 3.6 35B-A3B FP8 Pure Seeded-Omega Native GB10 Runner & Arboris Prefetcher

om/gpu/q36/ implements a 100% pure seeded-Omega, zero-CUDA native GB10 runner (q36-native) for Qwen 3.6 35B-A3B FP8 (Qwen3_5MoeForConditionalGeneration: 40 layers, 30 Gated DeltaNet + 10 Full-Attention hd=256, D=2048, 256 experts, top-8, vocab=248320) with 13 SM121 high-speed SASS kernels (emit_fast.om) and an Arboris online adaptive sum-over-paths expert prefetcher (arboris/prefetch.om).

The seeded compiler (seed/out/omc) compiles native_run.om directly to a 281 KB statically linked AArch64 ELF executable (ldd: not a dynamic executable — zero libcuda.so.1, zero libc, zero Python, zero C, zero Rust). It opens /dev/nvidiactl, /dev/nvidia0, and /dev/nvidia-uvm through Omega's native Blackwell stack (gpu/nvidia/native/nvrm/context.om, gpu/nvidia/native/blackwell/{vector,launch,batch}.om), runs a live 11-kernel GB10 numerical parity self-test + Arboris self-test, and replays pre-recorded native GPFIFO QMD command buffers for all 40 layers.

SM121 Kernels (emit_fast.om)

Arboris Prefetcher (arboris/prefetch.om)

Online adaptive sum-over-paths co-activation prefetcher (39 cross-layer transitions L -> L+1 × 256 source experts × 16 Space-Saving slots = 159,744 uints). Measured overhead across all 40 layers: 47–100 µs/tok (0.047–0.10 ms/tok, 0.31% of decode latency) with 93% online hit rate on repeating domain transitions.

Verified GB10 Silicon Receipts (Zero CUDA)

Configuration (40 layers, 30 GDN BF16-state + 10 Full-Attn T=1024, cold 4-bank weights)Median LatencyThroughputNotes
40L FP8 Backbone (2.57 GB/tok)19.21 ms/tok52.05 tok/sfinite=OK, zero CUDA
40L FP8 + W4 Two-Pass Exact lm_head (2.86 GB/tok)20.45–20.59 ms/tok48.55–48.91 tok/sW4 head delta: +1.23 ms (98.5% ceiling)
40L W4-MoE Backbone (1.85 GB/tok)17.04 ms/tok58.69 tok/sW4 routed MoE saves -2.18 ms/tok
40L W4-MoE + W4 Two-Pass Exact lm_head (2.13 GB/tok)18.29–18.39 ms/tok54.36–54.67 tok/sBeats C/Rust aien-serve-http (50.43 tok/s) with ZERO CUDA
40L Full-W4 Backbone (0.79 GB/tok)14.06 ms/tok71.12 tok/sW4 dense trunk (w4_b32_gemv_fast) + W4 MoE
40L Full-W4 + W4 Two-Pass Exact lm_head (1.07 GB/tok)15.21 ms/tok65.75 tok/s+1.15 ms W4 head delta; 1.30× faster than aien-serve-http with ZERO CUDA!
Arboris 40L × 256E online prefetcher0.047 ms/tok—93% hit rate, pure OM-2

(Measurements use checkpoint-exact synthetic weights across 4 cold weight banks > 110× L2; real-checkpoint end-to-end greedy-parity measurements on ~/models/qwen3.6-35b-a3b-fp8-95a723d0 are recorded in 2026-11-21-q36-35b-verified-kit.json: 50.43 tok/s N=1, 105.31 tok/s N=4, 119.39 tok/s N=8.)

Real-Weight W4 Two-Pass Exact lm_head (om/gpu/q36/head/ -> q36-head)

q36-head (162 KB static AArch64 ELF, zero CUDA/libc) loads the real lm_head.weight (BF16 [248320, 2048], 1.017 GB) and model.language_model.norm.weight directly from outside.safetensors, quantizes it on-GPU to block-32 symmetric INT4 (0.286 GB, 3.56× smaller) in 10.16 ms, screens all 248,320 vocabulary rows with straight-line unrolled 2-block LDG.E.128 (dot(q, x) - 8*sum(x)), and rescores the top-64 candidates in exact BF16.

Real-Weight End-to-End 35B Decoder (om/gpu/q36/decode/ -> q36-decode)

q36-decode (460 KB static AArch64 ELF, ldd: not a dynamic executable, zero CUDA / zero libc / zero C / zero Rust / zero Python) loads all 40 real layers (layers-0..39.safetensors, ~33.6 GB) + outside.safetensors (1.017 GB BF16 lm_head + embed_tokens + norm.weight) directly from ~/models/qwen3.6-35b-a3b-fp8-95a723d0 into GB10 UVM, quantizes lm_head on-GPU to W4 block-32 (1.26 ms two-pass exact), and replays ONE single pre-recorded native GPFIFO submit for all 40 real layers + lm_head (100% GPU-resident QDW_X, zero CPU hops between layers).

Supports two verified real-weight execution modes in the same static binary:

Verified on live Spark GB10 silicon (exclusive quiet window 20261121T232155Z-317143, exit: 0, quiet machine; note: still uses NVIDIA open kernel modules 580.173.02 + signed GSP firmware):

Real-Weight 35B-A3B Zero-CUDA MilestoneLatencyThroughputSpeedupParity & Output
Initial hybrid real-weight decoder (20261121T220035Z-0f6897)122.0 ms/tok8.20 tok/s1.00×PARITY=EXACT (tok=271), **Paris**.
GPU FP32 GDN + conv1d + 20-QMD MoE + spin-poll (20261121T221800Z-5dd1ee)34.0 ms/tok29.41 tok/s3.59×PARITY=EXACT (tok=271), **Paris**.
Wave 1: 100% GPU-resident QDW_X (qRmsNormAddFast + qGdnDecayBetaFast)31.0 ms/tok32.26 tok/s3.94×PARITY=EXACT (tok=271), **Paris**.
Wave 2: 1-launch strided FP8 MoE + GPU qRouterTop8Lex26.0 ms/tok38.46 tok/s4.69×PARITY=EXACT (tok=271), **Paris**.
Wave 3–4: 1-Submit 40L Exact FP8 (20261121T232155Z-317143)20.827 ms/tok48.01 tok/s5.86×PARITY=EXACT (tok=271), **Paris**.
Wave 4 (fixed): On-GPU Full-W4 (19.5 GB VRAM, 1-submit)17.952 ms/tok55.70 tok/s6.80×PARITY=EXACT (tok=271), **Paris**.
Wave 5: 4-row/warp W4 + 9-expert MoE + fused FA Q\|K\|V + fused router16.179 ms/tok61.80 tok/s7.54×PARITY=EXACT (tok=271), **Paris**.
Wave 6–11: Full-W4 Final + Live Arboris (20261122T002657Z-c1ec5b, fused SwiGLU + qMoeCombine9RmsFast + 33-CTA qBf16Gemv1R + LDG.E.128 SMEM + interleaved qW4MacBlock + QDW_TRACE live Arboris)14.731 ms/tok67.88 tok/s8.28×PARITY=EXACT (tok=271), **Paris**., Arboris 42–44%

Installed 35B Package + OpenAI HTTP Server (om/gpu/q36/serve/ -> q36-serve, q36-35b)

q36-serve (508 KB static AArch64 ELF, ldd: not a dynamic executable, zero CUDA / zero libc / zero C / zero Python) wraps the 40-layer Full-W4 (~66.3–67.9 tok/s, ~19.5 GB weights + 5.37 GB 128K KV cache + 32 MB 128K RoPE, default) / Exact FP8 (48.09 tok/s, --fp8) engine + live Arboris online co-activation prefetcher + pure OM-2 ByteLevel BPE tokenizer (tokenizer.om, 248,044 vocab) in an OpenAI-compatible HTTP server (GET /health, GET /v1/models, POST /v1/chat/completions, 131,072-token (128K) context window).

Verified on live Spark GB10 silicon (exclusive quiet window 20261122T010926Z-02fb35, exit: 0, quiet machine, NVRM: Xid delta 0; note: still uses NVIDIA open kernel modules 580.173.02 + signed GSP firmware):

Build, Install, and Run

sh seed/omega-from-seed.sh
sh om/gpu/q36/build.sh build/q36
sh om/gpu/q36/install-spark.sh .   # installs ~/.local/opt/q36/, ~/.local/bin/q36-35b, motor-revival.service (:18091)
q36-35b --self-test                # Full-W4 default + Live Arboris self-test
q36-35b --port 18091               # Start OpenAI HTTP server (Full-W4 + Live Arboris; pass --fp8 for Exact FP8)
systemctl --user start motor-revival