interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-sovereign-core-mv / docs / inference / evidence / adr0004-step0-baseline-20261015 / README.md

106 lines · 8431 bytes Raw Blame History Rendered
1# ADR 0004 step 0: the frozen pre-migration 30B baseline, main 559f0f1e (2026-10-15)
2
3CALC-EXEMPT: every measured number is copied from a log or reply in this folder; the four G30-speed
4floors are the only derived numbers and each carries its calc id.
5
6ADR 0004 section 7, step 0: seal on main, before step 1, the receipts every later step is gated
7against. **The frozen baseline is `check-full-3/` (G30-tokens, G30-speed) and `door-2/` (G30-door
8tokens).** Runs 1 and 2 of each are kept as corroboration and as the record of why run 3 was taken.
9
10## Build
11- sc main `559f0f1e4afba37fe66b1dddbe13b87d23bc04ab` (merge of #531, ADR 0004), fresh worktree, no tracked
12 change outside this folder (each `*.start` records it). omega `4799f9eb` (omega.lock), physics `6d7cf0d4`,
13 aienos `b84c0a67`, `libomega_gpu.a` sha256 `0629ad9cec0addd4ccc461f0523c2c3964964f0bafc0b98b678e5080b0373ae5`
14 (the locked archive, same as the pinned `pin-bin-afe59ae1` and `pin-bin-f881710a` builds).
15- `scripts/pins.sh --gpu`, then `. target/pins/env.sh` (AIEN_REQUIRE_NATIVE_LIBS=1) and
16 `cargo build --release -p aien-serve-http -p aien-inference-abi --bins`.
17- `own30b_check` sha256 `728a54c89c153c3381c698b2d5f4b4086aa2ca01ba66023274f81985f8ecaf71`;
18 `aien-serve-http` sha256 `cabf718d7ff16a83cd2f00f79ef4ce28a89d442575a24fd58e6760d5fc997c51`.
19
20## Commands
21- `step0-runs.sh` (EV, SC, RUN env): one `quietlock hold --owner STEP0 --minutes 20` per run, released
22 between runs. Each hold lasted under 4 minutes.
23- check-full: `flock /tmp/aien-gb10.lock env AIEN_OMEGA_SPIN_US=2000 own30b_check chip <30B fp8>
24 own30b-f-20261013T1745Z/golden.json <out> --prompts 1,2,3,4 --new 16 --layers 0,23,47 --weights fp8
25 --attn fused --router device --lm-head gemv --prefill auto --force-memory`: the arguments of
26 `own30b-idle-speed-20261015` check-full (the ADR's reference numbers) plus `--force-memory` (see below).
27 The exact line is in each `check-full*.start`.
28- door: `door-window.sh` starts `aien-serve-http --engine omega --model-dir <30B fp8> --port 18103`
29 (no AIEN_* or OWN30B_* env: the served defaults, spin 2000 us), sends own30b_check's 4 prompt texts
30 (`prompts.json`, copied byte for byte from `own30b_check.rs` PROMPT_TEXTS) as one user message each with
31 seed 1, temperature 1.0, top_p 1.0, top_k 0, max_tokens 64, stream false, twice (passes 1, 2), stops the
32 server with SIGTERM, starts a second process and sends them once more (pass 3). Every reply reports
33 `mode=sampled seed=1` in `usage.aien_sampling`; the door's `SamplingObserver` reads the full logits every step.
34
35## Machine state
36Every `*.start` and `*.end` records load average, MemAvailable, compute apps, GPU state, listeners and the
37line count of the :18091 server log. In every run the only other GPU process was the idle exp445 30B server
38on :18091 (36424 MiB); its log stayed at 899 lines from the first start to the last end, so it served no
39request during any run. Before each check-full run: GPU 0 %, P8. The door runs started right after a chip run
40(`door.start` 1 %, P0; `door-2.start` 0 %, P0). Other listeners: cortex :18080, spark-mail :18092, spark-cockpit
41:18095 (none is a model server); no :18097.
42
43## G30-tokens and G30-speed (`check-full-3/`, frozen)
44`run.json` pass true; `SUMMARY parity=PASS tokens=PASS`; parity PASS on layers 0, 23, 47; 10 of 10
45controls CAUGHT; prefill chunk 64 vs 1 PASS; gemm-mutants-off PASS. Tokens IDENTICAL to the golden on all
464 prompts (p2's golden carries the stop token 151645, which the engine consumes; `first_diff` null, as in
47every earlier receipt). The chip token lists of all three runs hash to the same value as the
48`own30b-idle-speed-20261015` check-full (sha256 of `jq -c '[.prompts[] | .chip]'`: `bb1a0401...b22b63f`).
49
50| decode tok/s | p1 | p2 | p3 | p4 | 1-minute load average, start to end |
51|---|---|---|---|---|---|
52| run 1 (`check-full/`) | 37.5 | 32.6 | 36.9 | 34.7 | 8.93 to 18.06 |
53| run 2 (`check-full-2/`) | 39.0 | 36.1 | 37.6 | 34.0 | 2.58 to 3.51 |
54| **run 3 (`check-full-3/`), frozen baseline** | **39.1** | **36.1** | **37.5** | **36.6** | 2.08 to 11.63 |
55| ADR reference, `own30b-idle-speed-20261015` | 38.8 | 36.1 | 37.2 | 36.6 | 0.55 at start |
56
57Run 1 shared the CPU with other agents' compiles (several rustc at 100 %); its per-step expert and attention
58times rose (p2 experts 16.3 ms against 14.5). Run 2 was clean on p1 to p3 but p4 took 11.2 ms attention per
59step against 10.1 to 10.4 in run 3 and the ADR receipt. Run 3 matches the ADR's numbers to within 0.3 tok/s.
60G30-speed floors from run 3 (97 percent): p1 37.927 (calc:ca6917a169f4), p2 35.017 (calc:db0cafe07493),
61p3 36.375 (calc:0cc180e77663), p4 35.502 (calc:d0e63d84b0e7). Each is at or above the ADR's
62"at least" floors 37.6 / 35.0 / 36.1 / 35.5. Like the ADR's, they are taken from the one-decimal values
63the tool prints (the same convention a later step's printed numbers are compared with); `run.json` holds
64the unrounded rates. Run 3's load rose to 11.63 by its end, so its p4 figure was measured with other
65work starting; it still equals the ADR reference.
66
67## G30-door (`door-2/`, frozen)
68Reply content sha256 (byte-exact, `jq -j '.choices[0].message.content'`), identical in all 3 passes of
69`door-2/` and all 3 passes of `door/` (6 replies per prompt, 24 in all, from 4 server processes):
70
71| prompt | prompt tokens | reply tokens, finish | content sha256 | reply_logprob |
72|---|---|---|---|---|
73| p1-one-token | 9 | 11, stop | 7183808e3236265d2eb507c321e124b5ee6be06c7b799833adbf8d01cf70a8ed | -2.075414983119233 |
74| p2-short | 20 | 7, stop | a1b7eb2ee7a6aded8dda4e6cf30826f5afffb28a5597ee9389e91eb326d4e319 | -0.00006239156406184776 |
75| p3-medium | 204 | 64, length | 58634d9dfa7d324e2b4f9ce3a202f3007cb3b7e635892cc7844d98c70c573fce | -9.451717192233671 |
76| p4-long | 657 | 64, length | 8e1d40eaf6d97fc40ba53e3be573094443484be2976788187c63b9ad88031d9e | -10.717370043619697 |
77
78Door decode tok/s (server log lines, `door-2/session-*.server.log`), passes 1 / 2 / 3:
79p1 35.37 / 35.83 / 34.81; p2 35.35 / 35.53 / 35.00; p3 35.16 / 35.22 / 34.39; p4 34.73 / 34.88 / 34.10
80(passes 1 and 2 in `session-a`, pass 3 in `session-b`).
81Run 1 (`door/`): 33.33 to 35.71. Every figure is above the G30-door speed floor 32.95, which the ADR sets
82from the `own30b-idle-speed-20261015` door receipt (33.97 / 33.99), not from this folder.
83
84## Limits
85- The door path reports the reply text, not token ids. The baseline is the byte-exact content digest plus
86 the reply token count and `reply_logprob` (the sum of the sampled tokens' log-probabilities); two different
87 token lists matching on all three is not excluded but not plausible.
88- p1 through the door is the chat-templated "Hello" (9 tokens); own30b_check feeds the raw one-token prompt,
89 so the door's p1 reply is not comparable to the golden, only to later door receipts.
90- The door prompts differ from the `own30b-idle-speed-20261015` door receipt (750 and 822 token prompts),
91 so this folder's door tok/s is reference only; the ADR's floor stands as written.
92- The idle :18091 server was left running (owner's instruction); it served nothing during the runs, but the
93 ADR's reference receipt had no second model resident. With it resident own30b_check printed 64.4 to
94 69.5 GB available before load, below its 70 GB guard, hence `--force-memory` (the guard only refuses;
95 it changes no setting).
96- Machine load could not be held low: other agents' work does not stop for the quiet flag once started.
97 Later steps should take their G30-speed receipts at a comparable load (each `*.start` records it).
98- Environment: the `*.start` files do not list environment variables. The runner was started from a fresh
99 tool shell, separate from the build shell that sourced `target/pins/env.sh`; such a shell carries no
100 AIEN_* or OWN30B_* variable (checked after the runs, not recorded during them: INFERRED for the runs).
101 `door-window.sh` additionally unsets AIEN_OMEGA_SPIN_US and OWN30B_DECODE_GRAPH for the server.
102- Reuse by a later step: the scripts are kept exactly as run. `step0-runs.sh` hard-codes this folder's name
103 in its "tracked changes" filter (the count also includes untracked files) and "main 559f0f1e" in the
104 quietlock reasons; change both, and record `env | grep -E '^(AIEN|OWN30B)_'` in each `*.start`.
105- Receipts were taken on 559f0f1e; the PR was later rebased onto main e3b36d5, which adds only
106 spark-supervisor changes (no inference code).