interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / research / registry / text / spark-secrets.txt

53 lines · 24507 bytes Raw Blame History
1The Spark Secrets: What I Did to the NVIDIA CUDA Stack on the DGX Spark M. Drake Stapleton November 7, 2026. Version 3.
2The machine: NVIDIA DGX Spark, Grace Blackwell GB10, compute capability sm 121, 128 GB unified LPDDR5X memory shared between CPU and GPU. The claim in one line: I built and tested my own user-space execution path for these GB10 workloads: instruction encoding, kernel construction, launch submission and the model engine, with no CUDA libraries mapped in the demonstrated serving process. NVIDIA’s open kernel modules and signed GSP firmware remain underneath. This is not a complete, drop-in implementation of the CUDA ecosystem. Version 3 changes: the opening claim is scoped to the demonstrated path, the Sovereign Intelligence map is added after this opening, reproduction is split into host replay, chip rerun and release installation, and the source note is dated. The measured GPU results and the limits are unchanged from version 2.
3This is one layer of Sovereign Intelligence
4I did not build this GPU path as an isolated trick. It is part of Sovereign Intelligence (SI): my work toward persistent intelligence that belongs to the person running it, from the language to the machine. AienOS is the operating-system part. aienux is its C kernel. Neither name means the whole stack. The integration front door is sovereign-intelligence. That is where releases come together, installation starts and the Spark test is coordinated. The experiments in this article ran on the Spark’s Linux host. They do not show that the AienOS C kernel boots the Spark, and they do not qualify the complete system. Sovereign Intelligence : the architecture ( each layer ships on its own receipts ) Owner / operator | Aien identity + Cortex evidence memory [ experimental ; outside cited alpha ] | Agent runtimes <---- INTERPLANE ----> model intent | runtime retains authority Sovereign Core : Rust runtime , inference ABI , scheduler , paged KV , HTTP | Omega GPU engine / CUDA ++: encoder , kernels , driver client | NVIDIA open Linux kernel modules [ still NVIDIA ’ s ]
5| NVIDIA signed GSP firmware + GB10 silicon [ still NVIDIA ’ s ] Current research host : DGX OS Linux Separate OS work : AienOS + aienux C kernel Cross - cutting : architecture ADRs , protocol schemas , verification receipts Release front door : sovereign - intelligence
6The host is part of the machine
7The GPU does not serve a model by itself. aien-sovereign-core-mv is the Rust host runtime around it: model loading, an inference ABI, a unified-memory paged KV cache with copy-onwrite branching, persistent KV storage, continuous batching with chunked prefill, and an OpenAIcompatible HTTP interface. Its Omega bindings connect that host to the GPU engine. The October serving receipts describe that path, not a language model answering without a runtime. Rust is scaffolding; Omega is the destination. That states a direction of travel, and most Rust subsystems have not been rewritten yet. C and assembly remain where boot, hardware, an ABI or measurement justify them. Each replacement has to cross an explicit boundary and pass the checks for that boundary.
8Intent carries no authority
9INTERPLANE is the open agreement between a model and the runtime acting for it. A model can propose a tool call. It cannot grant itself permission. The runtime keeps its policy, approvals and execution authority instead of handing them to a model vendor or gateway. The protocol separates shared request/result vocabulary, native tool-call dialects, task-specific tool selection, provenance and authority, and live capability probes. Transport and long-running streaming contracts have their own stages. This is not a claim that all execution work is finished: the published 0.2 capability gate failed; the 0.3 offline trust gate passed; 0.4 execution is next in the source snapshot reviewed for this section. A reference example is not a complete security qualification.
10The agent and the evidence loop
11The point reaches past producing tokens. Aien proposes. Omega makes a proposal explicit and checkable. The machine tests it against reality. The Turing measures a scoped explanatory gain. Cortex keeps the evidence for the next search. AEGIS and ARGUS describe verification and observation responsibilities around that loop; advancing through a diagram grants no authority. That is the architecture I am building toward. It is not what the cited alpha bundle ships. Persistent identity, memory, scientific discovery and a full owned OS need their own receipts. A GPU kernel passing its gate does not pass those gates for them. aegis-runtime-mv is a separate pre-alpha Rust agent attachment: a local WebSocket/SSE/REST gateway, heartbeat processing, workflow dependencies and SQLite persistence. Its default embedded inference is a mock. It is not the same thing as the architectural AEGIS verifier role, and it is not where the cited whole-system release places its mandatory production authorization boundary.
12Contracts, measurements and the front door
13aien-architecture-mv holds decisions, flows and ownership boundaries. aien-protocols-mv holds shared wire formats, schemas and test vectors. benchmarks-mv holds measurement harnesses and evidence bundles. aien-receipts carries hash-addressed verification records by repository and commit. These are different jobs. A build, a receipt, a chip test and a qualified release are not interchangeable. The wider repository index also includes open-humanity, a proposed opt-in assistance and volunteer-compute network, and mobhub, a Torn City operations tool outside AienOS. Neither is a required dependency of the GPU results here.
14The door was never locked
15Everything libcuda does to the hardware passes through ioctls on three device files: /dev/nvidiactl, /dev/nvidia0, /dev/nvidia-uvm. NVIDIA publishes the source of its Linux kernel module, and the public headers define every one of those calls. I copied 67 of those headers unchanged, MIT notices intact, into my tree. The closed driver library holds no secret the open headers do not already state.
16The full libcuda sequence, in about 900 lines
17My driver client (nvrm/nvrm.c, about 900 lines, about 2,400 with its qualification programs) performs the whole sequence libcuda performs: 1. Open a resource-manager client, then the device and subdevice objects (classes cl0000, cl0080, cl2080). Read the class list. Refuse to continue without the Blackwell compute class, the GPFIFO channel class, and the usermode classes. 2. Create a GPU virtual address space with page faulting enabled, externally owned, so the unifiedmemory driver manages its page tables. Register the GPU and the address space with UVM. 3. Allocate memory so a buffer’s CPU pointer and GPU address are the same number. GB10 memory is unified. One copy of every buffer exists, and nothing is ever transferred between a host copy and a device copy. 4. Create the channel: a command ring (GPFIFO) and its control page (USERD) in one GPUuncached 64 KiB buffer, bound to the compute engine. Create the Blackwell compute object under the channel.
18Submission is one 32-bit store
19To send work: write an 8-byte entry into the ring, execute a memory barrier, update the put pointer in USERD, then ring the doorbell with a single 32-bit store to the usermode page. No system call sits on the submission path. Completion is a word in GPU-uncached memory that the GPU writes with a semaphore release; the CPU polls that word under a hard deadline that never extends. A timed-out wait poisons the session, and the session refuses all further GPU work, because the GPU may still be running.
20The uncached rule
21A word the CPU polls while the GPU writes it must be mapped GPU-uncached, or the CPU never observes the change. That rule cost a stall on October 2, 2026. The platform contract now refuses a host-polled buffer that lacks GPU-uncached mapping, so the mistake cannot happen silently again.
22The launch is a list you can write by hand
23A kernel launch on Blackwell is a short command list in the channel ring: point at the code, supply the launch descriptor (QMD) carrying grid and block dimensions, register count, shared memory, and the constant buffer with the arguments, invalidate the caches that need it, fire. I build the QMD directly. The command order comes from Mesa’s open NVK driver. Measured on my GB10, the passing run gives 25.09 to 31.97 microseconds per additional dependent launch with wait-foridle barriers, and 2.68 to 9.68 microseconds without barriers. An earlier 24.18 microsecond figure came from a run whose verdict is FAIL, and the corrected paper record (v2) withdraws it.
24How the machine code encoding was recovered
25NVIDIA publishes PTX, a virtual instruction set. The real machine code, SASS, is documented nowhere official. I recovered the sm 121 encoding three ways: 1. Differencing. Probe kernels differing in exactly one detail at a time (a register number, an immediate, a predicate, a modifier), compiled once with nvcc 13.0.88, read with cuobjdump. Each instruction is 16 bytes beside its mnemonic. The bits that change between two probes are the bits that encode the detail. NVIDIA’s tools ran only on my own kernels, as an oracle. No NVIDIA program was disassembled. 2. Mesa’s records. The open NAK compiler source records many sm 121 opcodes and bit positions, the instruction latencies, and the QMD layout. Where nvcc output and NAK disagree on sm 121, my encoder follows nvcc, and a comment in the source says so. 3. Fitting on the chip. The tensor-core BF16 multiply-accumulate was characterised on 2,048 test cases chosen to separate candidate arithmetic models, until one model matched every output bit for bit. The special-function unit model includes the GB10’s flushing of subnormal values. The result: an encoder and kernel builder covering 59 instruction kinds on virtual registers, a register allocator, golden words in the tests for every instruction kind, and the first kernel (vector add) held as a fixed table of 32 instruction words, checked bit for bit.
26The timing-word bug every kernel shared
27My encoder wrote the integer add, one compare, and the exit instruction with a fixed timing word, so the waits the code generator scheduled on them never reached the chip. One bug, shared by every kernel family. The encoder now keeps the scheduled timing words, a gate (make test-bw-encode-control) checks every instruction type, and 18 of 19 kernel families pass their chip tests with the fix. The ternary family fails only its speed gates, and the old encoder fails those the same way.
28Numerics, checked over the entire input domain
29Closed on the chip on October 2, 2026 (Gate 5, 26 of 26, with 47 parity lines): reductions SUM, MAX, MIN, MEAN; nine transcendental functions evaluated over all 232 inputs each; 148 load and store kernels. Natural-base EXP and LOG were the recorded exclusions that day. Both now have GB10 kernels too: all eleven transcendental operations pass on the chip over all 232 inputs each, with zero mismatches (omega commit cb6d201).
30The probe numbers, labeled as probe numbers
31Achieved tensor-core throughput on my own probes: 115.14 TFLOPS. Memory reads: 195.1 GB/s, and the same bandwidth log records 207.7 GB/s for a larger working set on a run with a modified working tree (dirty=3), so that higher figure carries its flag. These are achieved probe throughputs on my one GB10 (receipt folder OWN30B-T3-TC-PEAK-BW). Version 2 of the full paper record corrects the earlier word “ceilings”: a ceiling is a limit, and no limit was measured.
32Zero CUDA, proven from the process map
33On October 21, 2026, a 35-billion-parameter mixture-of-experts model was served on this code. Three prompts matched an exact host reference on 32 of 32 token IDs; the fourth matched 31 of 32, with one near-tie difference inside a fixed 0.1-logit band, and its receipt records golden identical: false. A separate HTTP check matched 24 of 24. The serving process had only the C library, the mathematics library, libgcc s, and the loader mapped in it. Zero CUDA libraries. A run-time gate in the stack refuses to operate if any CUDA library appears in the process, so the zero-CUDA claim is a checked property. The process map is the receipt. On October 22, 2026, the hello gpu test produced 1,048,576 of 1,048,576 correct values on the GB10, and its output hash matched the host simulator’s receipt.
34The attention kernels, with their numbers
35Built for the Qwen3.8-27B shape and checked on the chip against a double-precision reference, with deliberately broken variants that must fail, and all of them caught: • FP8 matrix-vector and the tensor-core prefill GEMM take k up to 32768, covering the 27B down projection at k = 17408. • Gated DeltaNet decode (48 of 64 layers use this layer type): one launch per layer, matches the reference to about 2 × 10−7 , 125.7 microseconds per layer, moving 6.29 MB of state at 50.1 GB/s against 273 GB/s nominal. • Gated DeltaNet prefill: three launches per layer, state handed to decode exactly; 3.80 microseconds per token per layer at 2048 tokens; the recurrent scan runs at about 2.4 trillion operations per second. • Full-attention decode (16 layers, 24 query heads over 4 key-value heads): exact at contexts 1 through 131072 tokens; at 32768 tokens of context, 2.10 ms per layer, streaming 134 MB of cached keys and values at 63.8 GB/s. • Full-attention prefill: a 2048-token chunk takes 10.0 ms at the start of a prompt and 591 ms at the end of a 128k prompt, streaming cached keys and values at 230.6 GB/s. 5
36• Decode attention cache holds 131072 positions. At contexts 65536, 100000, and 131072 the chip matches the double reference exactly, streaming K/V at about 57 GB/s. • FP8 expert slots: a fixed pool that refills while a model runs. A slot hides while rewritten, takes a new version only after the copy completes, and refuses rewrite while any launch still reads it.
37A model trained on the chip, in my own language
38The Omega LLM ladder trained on the GB10 itself, in Omega, from rung 4 onward with no CUDA runtime in the path. Current best: 15.8 million parameters, held-out score 0.449322 bits per byte at step 60,000, matched by a CPU check. Rung 6 scored 0.499194 bits per byte over 30,000 steps on one GB10. Blind guessing scores 8. Lower is better. No same-data CUDA baseline exists yet, and I claim none.
39What I did not take, and what is not done
40Print this section with the secrets, every time. A spill that hides its limits is a sales pitch. • NVIDIA’s open kernel module (nvidia.ko, nvidia-uvm.ko) still boots the GPU, builds its page tables, and schedules its channels. My replacement driver is written as aienux source (PR #441) and holds source and simulator gates only. It has never been loaded on hardware. Hardware qualification is open. • The GSP firmware remains NVIDIA’s, permanently. The chip verifies its signature and boots nothing else. • My own disassembler is unfinished (item D13), so the nvdisasm cross-check still stands in some host tests. • A public qualification queue (items 5 to 34 in CUDA++) lists what remains unproven: streams and event ordering, fault recovery without a process restart, same-bits determinism as a standing gate, and more. • Every figure here comes from one GB10 in one machine. No second chip has been qualified.
41The method, for anyone who wants to repeat it
42Three sources of knowledge, and only three: NVIDIA’s published open kernel module headers, NVIDIA’s compiler used as an offline oracle on my own probe kernels, and Mesa’s open NAK and NVK sources. Everything else came from the chip. The rule that built the stack: nothing counts until the hardware agrees, and the agreement gets written down as a hash-addressed receipt tied to an exact commit. The toolchain is CUDA++ (aien-dev/CUDApp, license history recorded in the repo), with the step-by-step method in docs/HOW I DID IT.md and the driver client documented call by call in docs/DRIVER.md. The numerics and serving receipts live in the Omega repository. Full paper: Reverse Engineering the CUDA Software Stack (Zenodo DOI 10.5281/zenodo.23677465, version 2, preprint, not peer reviewed; version 1 at 10.5281/zenodo.23578453 remains the historical record).
43What a reader can reproduce
44There are three different exercises here. Keep them separate. 1. Host replay: build the pinned compiler, compare encoders and inspect published receipts. Reading my chip log is not running your own chip test. 2. Chip rerun: run the documented hardware checks on a GB10 with the required open driver and owner authorization. Record the environment, binary hashes, exact command, raw output and negative controls. A different GPU is NOT RUN until tested. 3. Release installation: test the exact signed SI release, not an arbitrary checkout. Installation, model download, first token and uninstall need one end-to-end receipt from that released binary. The article’s replication prompt was not yet tested end to end when version 2 was published. The cited SI alpha record also leaves its fresh physical installation and qualification criteria NOT RUN. I will not turn partial host or container evidence into a successful outside install by changing the wording. The sovereign-intelligence source is available by Radicle ID: rad clone rad : z 2 J J z 4 R D f Z Z x K G B L n 6 U h m W 5 p 9 V J Q j
45For a source inspection, install and verify Radicle from https://radicle.xyz, authenticate your own node, and start it before cloning. This command obtains source; it is not an installation or qualification result. Inspect the current release notes, manifest, installer and signatures before executing anything. Version 3 attaches REPRODUCE.md and a machine-readable manifest beside the PDF. They carry the source commits published in this article, the compiler seed digest check, the driver and firmware environment, the commands, the expected outputs and the deliberately failing controls, in plain text, so PDF line wrapping cannot change a hash or a clone address. The end-to-end run of that recipe is still open: no passing result is claimed for it.
46The code is on Radicle now
47On November 7, 2026, GitHub flagged the aien-dev organization, hid it from the public, and suspended the aien-spark account. The code moved the same night. The public repositories are filed on Radicle, served from a public seed and replicable peer to peer. The Omega merges #1063 and #1074 landed there (omega-mv main at 6efc4572, the #1074 merge passing its fresh-clone checks), and the omega-harness guide update merged at 6b450359. Clone addresses and commit pins are in the agent prompt below.
48Keeping the source reachable
49The stack is not sovereign if one hosting account is its only public copy. The core repositories now have Radicle identities, and aienos.com runs on my own hardware. The migration page publishes the repository IDs and seeding instructions. The site is hosted on a Raspberry Pi; the DGX Spark is the development and measurement machine. Those are different roles. The count changes as migration proceeds. Version 2 recorded 26 Radicle repositories; the later public migration page lists 28. The repository identity and exact commit matter more than a moving headline count. 7
50Replicate it: the agent prompt
51Paste this whole block into any coding agent (Claude, GPT, Gemini or a local model) running on a machine with git. The Radicle IDs, commit shas, clone addresses and evidence paths in it are real and already checked. I haven’t yet run its steps end to end in a fresh shell; AgentPrompt is doing that now, and the tested copy will become AGENT-PROMPT.md in cuda-crack. # Replicate " I broke CUDA " from Radicle You are a coding agent . Your job is to reproduce , from public sources only , Drake Stapleton ’ s work : his own language , Omega , writes NVIDIA GB10 ( DGX Spark , sm_121 ) machine code with its own encoder . No CUDA toolkit , no nvcc and no PTX is used in the run path . Then explain the method well enough that you could extend it . Work in phases . After each phase , report PASS , FAIL or NOT_RUN with the exact command and output . Stop and report at the first mismatch . Never claim more than your own logs show . ## Rules - Use these evidence labels : SIMULATED , HOST_TESTED , EMULATED , CHIP_TESTED . NOT_RUN is never PASS . " It compiles " is not evidence that it works . - Every claim needs a negative control : a deliberately broken input that must fail . - Never say " replaced CUDA " , " drop - in CUDA replacement " , " faster than CUDA " , " first ever " or " works on any NVIDIA GPU ". None of those is proven . - What is still NVIDIA ’ s : - the open kernel modules nvidia . ko and nvidia - uvm . ko , version 580.173.02 exactly ; - NVIDIA ’ s signed GSP firmware . - On hardware , read NVIDIA ’ s open - gpu - kernel - modules headers ( MIT / GPL ) before experimenting , and quote the line you relied on . - Use only your own licensed NVIDIA tools as references , and check your own NVIDIA EULA obligations . Never redistribute NVIDIA binaries or docs . ## Phase 0: Sources All the code is on Radicle . Clone with plain git from a public seed , or peer - to - peer with rad clone rad : < RID > if you have Radicle installed ( https :// radicle . xyz ) . mkdir replicate && cd replicate git clone https :// rosa . radicle . network / z 6 d o 9 W D B h u S n v o p D k g F d F r 1 y W A 6 2 . git omega - mv git clone https :// rosa . radicle . network / z 4 R x D 8 v X i g m W g 6 1 n M 8 m i Q 8 D V P A X E P . git CUDApp git clone https :// rosa . radicle . network / z 4 9 S h e 8 e i f Z p L d 2 a i S v k 2 p p h 3 D M U o . git physics mv git clone https :// rosa . radicle . network / z 2 x j D 5 k x U T T B N C r y J 6 r g 9 Q X p e m z e i . git omega - gpu - driver git clone https :// rosa . radicle . network / z 4 7 V d C 9 E F s F 4 d F y H 1 Q J 1 C 2 J N J K 4 J S . git omega blas Everything at once : curl - fsSL https :// www . aienos . com / si | sh It checks every checkout against its manifest commit . Read the
52script before you run it . Pass when : CUDApp contains commit b 7 7 4 7 2 3 f 5 37cec16a359fe082b8100317a5b5490 , and omega - mv contains f4df8239 and 943 d9555 . Check each with git cat - file -t <sha >. ## Phase 1: Rebuild the Omega compiler from seed ( host ) 1. cd omega - mv && git checkout f4df8239 . 2. Read README . md and seed /. The compiler grows from hand - written bytes ; follow the repo ’ s own seed build instructions exactly . 3. Pass when : sha256sum seed / out / omc starts with 3 ad9f10f . 4. Negative control : flip one byte of a copy of omc . The repo ’ s pin check must reject it . ## Phase 2: The encoder ( host ) 1. In CUDApp , read om / encoder / bw_enc_sm121 . om ( the Omega sm_121 encoder ) and evidence / CUDAPP - OM - ENCODER / README . md . 2. Run the host corpus exactly as that README says . 3. Pass when : 243 distinct kernels are byte - identical between the Omega encoder and the C encoder , and 3 of 3 mutant encoders are caught . 4. Check diff of kernels - om . sha256 and kernels - c . sha256 in evidence / CUDAPP - OM - ENCODER / chip -20261027 T080240Z /. Pass when : it prints nothing , and each file has 70 lines . ## Phase 3: Audit the chip receipts ( host , read - only ) Open these files and confirm their contents . Label them " CHIP_TESTED by the author ". They are not your result . - CUDApp / evidence / CUDAPP - OM - ENCODER / chip -20261027 T080240Z /: - the hello log : checked 1048576 of 1048576 elements : 0 wrong , PASS ; - the control log : 1 wrong , FAIL ; - om - doctor . log : " CUDA toolkit : not needed and not used ". - omega - mv / evidence / WHAT - OMEGA - IS -20261021/ live - serve - no - cuda . txt : a 35 B model server with 0 CUDA libraries mapped , taken on 2026 -10 -21. - omega - mv / evidence / E1 - TRANSC - GB10 /: nine FP32 operations , each checked =4294967296 ... mismatches =0. This is parity with a fixed CPU sequence , not correctly rounded maths . ## Phase 4: On a DGX Spark only ( chip ) Do this phase only if you are on a GB10 with nvidia - open 580.173.02 , and with the owner ’ s permission to use the GPU . Otherwise mark it NOT_RUN . kernel module and signed firmware are still in the path . Paper : " Reverse Engineering the CUDA Software Stack " , DOI 10.5281/ zenodo .23677465 ( preprint , not peer reviewed ) . Field manual : https :// www . aienos . com / spark /
53Intelligence should be owned, not rented.