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 / docs / campaigns / open-model-qwen3 / ACCEPTANCE-v2.md
| 1 | # OPEN-MODEL-QWEN3 campaign v2: acceptance criteria (FROZEN) |
| 2 | |
| 3 | **Status: FROZEN** when this file is on main (merged before the run). Section 2's build fields name merged |
| 4 | commits and the pre-run gate passed on that build (Section 2). Nothing below is a verdict; VERDICT-v2.md |
| 5 | is written after the run. Written by session d6d82f, 2026-10-07; frozen 2026-10-07. |
| 6 | |
| 7 | v1 (ACCEPTANCE-v1.md, VERDICT-v1.md) FAILED on two containment rows that predate the daemon's |
| 8 | `compose.cortex-mark` file. v2 replaces the v1 task set and rows with the NEXT-PHASE-1 v8 launches and |
| 9 | rows, which already carry the ACCEPTANCE-v6 Section 6.1 rule for that file, and adds a dry run of the |
| 10 | exact wrapper, receipt builder and scorer before the freeze (Section 5), the step v1 skipped. |
| 11 | |
| 12 | ## 1. Reused unchanged |
| 13 | |
| 14 | - Launches: `next-phase-1/tasks-v8.json` (T4 T5 T6 T7 N1 N2 R1): goals, kinds, max_tokens (256, 96, |
| 15 | 256, 96, 96, 4, 96), destinations, seeds, phrases and min_lines. |
| 16 | - Driver `next-phase-1/run-campaign.sh`; receipt builder `next-phase-1/make-receipt.sh` with |
| 17 | `V6_ROWS=rows-v8.jq` and the `np1_edit_merge` re-derivation (ACCEPTANCE-v8 Section 2); result lines |
| 18 | `next-phase-1/v8-results.sh`; scorer `scoring/score-rows.sh` (scoring-v5). |
| 19 | - Rows: the 115 rows of `scoring/declarations/np1-v8.decl.json`, copied unchanged (same `rows` array, |
| 20 | checked with `jq -S .rows`) to `scoring/declarations/oq3-v2.decl.json`; only `campaign`, `frozen_by` |
| 21 | and `note` differ. |
| 22 | - ACCEPTANCE-v8 Sections 2, 3, 6 (run rules, except the run path, Section 3 here), 7 and 8, by reference. |
| 23 | - The R1 CPU reference (`np1_reference`, ReferenceCpuBackend) and rows R1-P / R1-T. |
| 24 | |
| 25 | ## 2. Model, environment and build |
| 26 | |
| 27 | Model: Qwen/Qwen3-4B-Instruct-2507, Hugging Face revision cdbee75f, Apache-2.0, weights unchanged. |
| 28 | `run-qwen3-v2.sh` refuses unless every digest matches: index d6c42883...29c; shards 75311d91...ed6, |
| 29 | 0b48adbb...ba1, 7dd39ccc...d5d; tokenizer.json aeb13307...ae4; config.json 5beea1a4...8fa; |
| 30 | generation_config.json 835fffe3...de48 (full values in the wrapper). |
| 31 | |
| 32 | Environment (the wrapper refuses otherwise): `AIEN_KV_CONTEXT_TOKENS=4096`, `AIEN_REQUIRE_BLACKWELL=1`, |
| 33 | `AIEN_GB10_QWEN3_DECLARED_ATTEMPT=1` (Qwen3 on GB10 is off by default while omega#327 is open; this |
| 34 | run is the declared attempt); unset: `AIEN_FORCE_CPU_STUB`, `AIEN_COMPOSE_MAX_TOKENS` (set per launch), |
| 35 | `AIEN_OMEGA_SPIN_US` and `AIEN_OMEGA_CTA_BUDGET` (daemon defaults 2000 us and 256 CTAs apply). |
| 36 | |
| 37 | Build (frozen): |
| 38 | |
| 39 | ```text |
| 40 | sovereign-core = 905fdfc18933ed47ae1cd075163be1eb8a421ca1 (main, merge of sc#280; binaries built here) |
| 41 | omega.lock = 459b46133550a39ed391ea11eeb5aa5968052611 (omega main: #329 spin window, #330 fragment matmul) |
| 42 | physics = 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf (physics.lock) aienos = b84c0a6 (aienos.lock) |
| 43 | aien-cli sha256 ddb3827001a619f2e6e2d94d04a8e77f35dd837870b7ec995e71e30fa0940c7d |
| 44 | np1_reference sha256 99898f6796377c5af9b8ee239591d2e316c2081a90454503af175fe6beaa354d |
| 45 | np1_edit_merge sha256 3e037794f6f933390762c06434411fa2f10c85e16ef5ab9eb3f8b3270b076987 |
| 46 | ``` |
| 47 | |
| 48 | Built from clean checkouts (no local changes) with `AIEN_OMEGA_DIR` = omega at 459b461 (compose and GPU |
| 49 | libraries both built from it), `AIEN_PHYSICS_DIR` = physics at 6d7cf0d, `AIEN_AIENOS_LOCK_REPO` set and no |
| 50 | `AIEN_OMEGA_GPU_LIB` / `AIEN_OMEGA_COMPOSE_LIB` override: `cargo build -vv --release -p aien-cli` and |
| 51 | `cargo build -vv --release -p aien-runtime --example np1_reference --example np1_edit_merge`. Both build |
| 52 | logs show `has_omega_compose`, `rustc-link-lib=static=rx_compose`, `has_omega_gpu`, |
| 53 | `rustc-link-lib=static=omega_gpu` and no build warning. The aien-cli sha256 equals the binary of the |
| 54 | Section 5 speed A/B (build F), so the frozen binary is the one measured there. The wrapper, tasks file and |
| 55 | declaration the run uses are the ones on main once this file is merged; that merge changes only files |
| 56 | under `docs/campaigns/`, so the binaries' source is unchanged. If omega.lock on main moves before the run, |
| 57 | the run does not start. |
| 58 | |
| 59 | Pre-run gate on 905fdfc (as VERDICT-v8), passed before the freeze: `cargo fmt --all --check` OK; |
| 60 | `cargo clippy --workspace --all-targets -- -D warnings` OK; `AIEN_FORCE_CPU_STUB=1 cargo test -p |
| 61 | aien-runtime -p aien-cli` 178 passed, 0 failed; `test-rows-v8.sh` with `NP1_EDIT_MERGE` = the frozen binary: 142 |
| 62 | passed, 0 failed. Build and gate logs go with the v2 receipts. |
| 63 | |
| 64 | ## 3. Run conditions |
| 65 | |
| 66 | - Run path pinned: `RUN_BASE=/home/drakestapleton/workspace/oq3-v2-runs` (the prompt embeds the |
| 67 | workspace path, ACCEPTANCE-v8 Section 6); the wrapper refuses another path or an existing one. |
| 68 | - Two parts, one quietlock hold of 20 minutes or less each, back to back: part 1 = T4 T5 T6 T7, part 2 = |
| 69 | N1 N2 R1 and the score. Reason: a Qwen3 daemon start takes about 64 s and every launch starts two, so |
| 70 | seven launches do not fit one 20-minute hold (dry run: part 1 took 9 min 55 s, part 2 8 min 40 s). |
| 71 | Part 2 refuses unless part 1 completed in the same RUN_BASE and the binaries, tasks file, declaration |
| 72 | and wrapper have the same sha256 as in part 1. |
| 73 | - One run. No retry, no repeated launch, no rerun until pass, no tuning after results. No cache drop and |
| 74 | no system setting change; MemFree and Cached are recorded before each part. |
| 75 | |
| 76 | ## 4. Verdict |
| 77 | |
| 78 | scoring-v5 (`score-rows.sh`) over `oq3-v2.decl.json`, 115 rows: PASS only if every declared row is |
| 79 | present once and PASS. A launch with no `run.json` gets FAIL on every declared row of that launch. |
| 80 | VERDICT-v2.md is written after the run and changes no row. |
| 81 | |
| 82 | ## 5. Evidence before the freeze (diagnostic, not campaign evidence) |
| 83 | |
| 84 | All on GB10 under Linux with an unmerged build: aien-cli from sovereign-core caa9f64 (#280 branch), |
| 85 | GPU library from a local omega merge faf8762 (main 8887454 + #329 + #330, not pushed). Evidence in |
| 86 | `~/workspace/investigations/2026-10-07-qwen3-decode-matmul/` (`e2e/`, `dryrun-v2/`). |
| 87 | |
| 88 | - Speed (e2e/FINDINGS.md): decode 267.6 -> 77.9 ms/token with the new matmul; same prompt, identical |
| 89 | reply token ids on three made-up goals. |
| 90 | - GPU against CPU reference (e2e/cpu-ref/): `np1_reference` on the same three prompts gave the GPU's |
| 91 | token ids exactly, 3/3 (9, 27 and 64 tokens, the last cut at max_tokens), prompt ids equal. |
| 92 | - Dry run (`dryrun-v2/`, holds 08:31:27-08:41:22Z and 08:41:39-08:50:19Z, both released): this |
| 93 | wrapper in `OQ3_DRY_TASKS` mode with `dryrun-tasks-v2.json` (the v8 ids, kinds, max_tokens, |
| 94 | destinations and seeds; made-up goals, so Qwen3 never saw a campaign goal). All 115 declared rows |
| 95 | present, none malformed; 93 PASS, 22 FAIL: |
| 96 | - phrase rows that cannot pass with made-up goals: T4/Q2, T5/Q2, T5/T5-N, T7/Q2, T7/T7-N, R1/Q2; |
| 97 | - T6, 15 rows, one cause: reply cut at max_tokens 256 (21.7 s), nothing committed; |
| 98 | - T4/T4-L: the made-up goal asked for at least twelve lines; the committed guide had 6 non-empty |
| 99 | lines (three long paragraphs under headings, 233 tokens, 20.3 s). |
| 100 | Every containment row passed; on the launches that committed (T4, T5, T7, R1) every A row, |
| 101 | `<id>-A` and `<id>-CM` passed; N1, N2, R1-P and R1-T passed. |
| 102 | - Wrapper refusals (CPU): wrong path, bad part, wrong KV context, spin window set, part 2 before part 1, |
| 103 | changed dry-run task shape: each refused with exit 2 or 3, and the pinned path was not created. |
| 104 | |
| 105 | ## 6. Predictions (stated before the run) |
| 106 | |
| 107 | - PASS: N1, N2; R1 including R1-P and R1-T (Section 5: 3/3 identical ids); every containment and |
| 108 | `<id>-CM` row; `<id>-A` on every launch that commits. |
| 109 | - Likely FAIL: T6, by length. The 256-token cap stays (same as v8, so the comparison with Llama holds); |
| 110 | Llama v8 and the dry-run stand-in were both cut at 256. |
| 111 | - At risk: T4-L (Qwen3 tends to write paragraphs, Section 5); T5/T7 placement under the right heading |
| 112 | (Llama failed T7 on placement). |
| 113 | - So the expected verdict is FAIL. A FAIL with the causes above is a model-and-budget result; any other |
| 114 | failing row is a finding. |
| 115 | |
| 116 | ## 7. What v2 does not prove |
| 117 | |
| 118 | - One run, one launch per task: one observation each, not a rate. |
| 119 | - T4..T7, N1, N2 and R1 are known to the spec writer and were run by Llama in v8; none was shown to |
| 120 | Qwen3 before the run. Held-out for the model, not for the people who chose them. |
| 121 | - omega#327 (GPU memory failure) stays open: even a v2 PASS does not turn Qwen3 on GB10 on by default. |
| 122 | - Greedy decoding, one model, one machine, one budget; nothing generalizes beyond that. |