aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / om / ribbon / QUALIFICATION.md
| 1 | # Ribbon pipeline experiment, 2026-11-01 |
| 2 | |
| 3 | The compiled Omega controller and model attachment passed the ownership, |
| 4 | failure and exact-output checks below. Two active buffers improved median |
| 5 | paired decode throughput by **1.6864x** over the |
| 6 | synchronous one-buffer control. The existing grouped path remains the default. |
| 7 | Its single reference run was faster, but had kernel allocation messages during |
| 8 | its interval and is not a clean performance qualification. This is a development experiment, |
| 9 | not a pinned native release qualification or a deployment. |
| 10 | |
| 11 | ## Full model |
| 12 | |
| 13 | Qwen3-30B-A3B-Instruct-2507 FP8, one fixed prompt, 16 generated tokens, greedy, |
| 14 | 768 expert slots, eight read workers and eight reserved staging buffers. The |
| 15 | controller admits one or two active buffers from that pool. Each trial starts |
| 16 | a new process and empty expert cache. Checkpoint reads use `O_DIRECT`. |
| 17 | One grouped reference and the first run of each control mode are warmups, |
| 18 | excluded from the five alternating measured pairs. |
| 19 | |
| 20 | | Measurement | One active buffer | Two active buffers | |
| 21 | |---|---:|---:| |
| 22 | | Median decode tokens/s | 1.0194 | 1.7038 | |
| 23 | | Median first token, ms | 2616.82 | 1381.89 | |
| 24 | | First token p95, ms | 2742.27 | 1454.00 | |
| 25 | | Median complete generation, ms | 18339.62 | 10769.22 | |
| 26 | | Complete generation p95, ms | 18409.61 | 11738.43 | |
| 27 | |
| 28 | Peak process RSS across the measured pair runs was 6.821634 GB. |
| 29 | This is process resident memory, not a complete accounting of device or unified |
| 30 | memory. Both modes reserve the same staging pool. The p95 values are empirical |
| 31 | quantiles of five trials, not a well-sampled tail estimate. First-token timing |
| 32 | starts at the engine call and ends at its first token callback; it excludes |
| 33 | model loading and HTTP queueing. Complete generation includes prefill. |
| 34 | |
| 35 | All 13 runs matched the same 16 reference token IDs. Every run had 3,683 cache |
| 36 | hits, 2,461 misses, 2,461 submitted reads, 11,613,872,448 payload bytes loaded, |
| 37 | and 11,634,057,216 device-read bytes. The grouped reference generated at |
| 38 | 2.6247 tokens/s. It is one reference observation, not a five-trial |
| 39 | grouped-path qualification. |
| 40 | |
| 41 | The final run is `model-20261101T145524Z`, under chip and quiet-machine window |
| 42 | `20261101T145524Z-f68c98`. Task-owned background builds were paused and existing |
| 43 | tests allowed to finish before the window. All ten measured trials are accepted. |
| 44 | Execution order, native identity, source digests, per-token arrival times, |
| 45 | raw I/O counters and before/after GPU telemetry are preserved in |
| 46 | [`qualification-samples.json`](qualification-samples.json). |
| 47 | |
| 48 | The host kernel logged three allocation messages at 14:56:14 UTC, during the |
| 49 | excluded grouped warmup. Their cause is not established. No matching messages |
| 50 | occurred during the accepted pair interval, 14:56:59.050 to 14:59:51.052 UTC. |
| 51 | See [`driver-observations.json`](driver-observations.json). The grouped result |
| 52 | is therefore an unqualified observation even though its output was correct. |
| 53 | |
| 54 | This replaces the earlier full-model experiment. Review found that its |
| 55 | one-buffer control allowed cached expert computation to overlap a miss read. |
| 56 | The final control consumes cached experts before submitting misses and waits |
| 57 | for the current consumer before refilling. A deterministic regression checks |
| 58 | both mixed hit/miss orders. Earlier runs remain in the local handoff archive |
| 59 | but are excluded from this result. |
| 60 | |
| 61 | Read, verification and slot-load counters measure host intervals and may |
| 62 | overlap each other. `slot_load_ns` includes the load call and publication |
| 63 | bookkeeping, including lookahead submission in two-buffer mode. |
| 64 | `miss_wall_ns` is elapsed call time less consumer time, not the sum of read |
| 65 | latencies. Do not add these counters to infer wall time. The projection trace |
| 66 | below supplies measured interval unions for overlap. |
| 67 | |
| 68 | The grouped path batches more work per launch. The new attachment consumes |
| 69 | each ready expert separately. Grouping ready experts is a future experiment; |
| 70 | this result does not establish an improvement over the current default. |
| 71 | |
| 72 | ## Controller and failure checks |
| 73 | |
| 74 | Review follow-up: a copy completing after its deadline was acknowledged by the |
| 75 | controller but incorrectly published by the adapter before its pin was refused. |
| 76 | The adapter now obtains the ready-state pin before publication. A delayed-copy |
| 77 | regression failed on the measured revision and passes with the fix, including |
| 78 | retry and zero leaked pins. The benchmark above remains evidence for its |
| 79 | original binary, not a new speed measurement of this follow-up. Its original |
| 80 | adapter is preserved in `measured-pipeline.rs.txt`, verified against the original |
| 81 | source digest; the follow-up digest is recorded separately in the sample pack. |
| 82 | `measured-Cargo.lock.txt` and `measured-qwen3_moe_omega.rs.txt` preserve the |
| 83 | measured revisions of those files the same way; the sample pack records each |
| 84 | later digest and what changed. |
| 85 | |
| 86 | - The seeded `.om` executable matches an independent object-based oracle on |
| 87 | 14,745 commands. Six compiled mutants are rejected. |
| 88 | - The generated native binding matches the same commands and rejects wrong |
| 89 | extents and aliased state/output arrays. |
| 90 | - A discrete-event check using the native controller shows overlap when |
| 91 | independent read/compute resources permit it, and no speedup when reads cost |
| 92 | zero or the resources serialize. These ticks are synthetic. |
| 93 | - All 17 pager host tests pass, including corrupt reads, failed copies, |
| 94 | cancellation, stalled reads, pending-owner deadlines, consumer errors/panics, |
| 95 | mixed cache hits/misses, and synchronous versus lookahead ordering. |
| 96 | - All three paged-model host tests pass, including exact resident/paged logits |
| 97 | for one and two buffers, routing and slot pressure. |
| 98 | |
| 99 | The standalone real-I/O/GPU projection test completed all 32 healthy experts |
| 100 | with bit-identical resident-reference results and rejected the injected corrupt |
| 101 | expert before publication. Across five pairs, median elapsed time was 57.048806 |
| 102 | ms versus 30.316160 ms, and median paired speedup was 1.8812x. This tests expert |
| 103 | projections, not a complete model. The raw monotonic-clock intervals are in |
| 104 | [`chip-trace.jsonl`](chip-trace.jsonl). [`chip-unions.jsonl`](chip-unions.jsonl) |
| 105 | uses interval unions so simultaneous reads do not double-count wall overlap. |
| 106 | |
| 107 | ## Identity and replay |
| 108 | |
| 109 | - Core base: `4b17ca34380d41d6155c0eab92313d362b716f00`. |
| 110 | - Measurement binary SHA256: `bd5640590c3ef4d860d48c0899289f3625b2fc0f2431e7023cac563a80e67a6f`. |
| 111 | - Omega: `ba5559d9b1030d5d966cc7db2464e466edea59a1`. |
| 112 | - Physics: `048e5f5e881b092733baaf65d0ace46abda7f908`. |
| 113 | - GPU archive SHA256: `89bf1c996fb2c96631e12c0691f6b99be8c89dd6d4006052f8021d274297a977`. |
| 114 | - NVIDIA GB10, driver 580.173.02; Rust 1.98.1, GCC 13.3.0. |
| 115 | - Omega Bridge: `ba8a75a6f9538b130383e1eb8ff459f82c589f92`. |
| 116 | - Seed compiler: `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61`. |
| 117 | Rebuilt from Core's pinned Omega source; see |
| 118 | [`compiler-bootstrap.json`](compiler-bootstrap.json). |
| 119 | |
| 120 | Use [`run.sh`](run.sh) for the seeded policy check and |
| 121 | [`build-native.sh`](build-native.sh) for the native binding checks. Build |
| 122 | `own30b_check` with `--features ribbon-omega` and the environment printed by |
| 123 | that script. Run [`model_check.py`](model_check.py) under an exclusive chip and |
| 124 | quiet-machine window, supplying the binary, checkpoint, golden fixture, output |
| 125 | directory, GPU archive, Omega revision and bridge library. The frozen golden |
| 126 | is `docs/inference/evidence/own30b-f-20261013T1745Z/golden.json`. |
| 127 | |
| 128 | Core's default Omega pin predates the slot API. The measured binary uses the |
| 129 | explicit prebuilt archive identified above. Its runtime identity marks it |
| 130 | unqualified for a pinned native release. Default pins and production routing |
| 131 | were not changed. This experiment does not establish DeepSeek serving or broad |
| 132 | task quality. The separate [27B receipt](../../docs/qwen38/qualification-20261101/README.md) |
| 133 | identifies a different model and an existing server binary. |
| 134 | |
| 135 | Run `bash tests/gates/run.sh ribbon-control` to rebuild the policy compiler |
| 136 | from its pinned seed, exercise the oracle/mutants and verify receipt integrity. |
| 137 | It does not rerun the GPU experiment. Calculation queries and outputs are in |
| 138 | [`calculations.json`](calculations.json). Measurement data is CC0-1.0; |
| 139 | source and documentation are Apache-2.0. |