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 / READING-27B.md
| 1 | # 27B prompt-reading buffer reuse |
| 2 | |
| 3 | The resident 27B reader now allocates cached temporary arrays once per prompt chunk and reuses them across layers. After the attention or DeltaNet mixer consumes the split array, the output and down projections reuse that same storage. Every numerical operation, reduction order, kernel and chunk size stays unchanged. This is maintenance of the existing host adapter; it adds no foreign runtime or dependency. |
| 4 | |
| 5 | This addresses repeated allocation, zeroing and release work observed in the prompt reader. The largest live scratch set remains bounded by the previous DeltaNet mix/split/side stage. The new buffers are released after each chunk; they do not accumulate across requests or increase with total context length beyond the existing chunk bound. |
| 6 | |
| 7 | The initial same-model comparison preserved every output-score bit on six cases: 30, 513, 941, 5,017, 30 and 5,017 tokens. The repeated 5,017-token reading took 23.512 seconds before and 18.632 seconds after, a 20.75% wall-time reduction in this shared-machine screen. Host work fell from 3.766 to 2.260 seconds. Peak process memory was slightly lower. These observations are not controlled performance qualification, and reading time is not the complete user-visible first-token delay. |
| 8 | |
| 9 | [The receipt](q38-reading-scratch-validation.json) contains source and binary identities, raw timing fields, full-score vector digests and the recorded calculation. [The external measurement instrument](q38-prefill-profile.rs.txt) loads one model, resets between cases, saves every score bit and compares the candidate against the preserved baseline. It is standalone Rust test tooling, not a production component. A repeated original/candidate pair measured 23.371 and 18.692 seconds on the final 5,017-token case. Across both runs of each binary, the 18 later cases match their corresponding six initial baseline score vectors exactly; every score is finite. The native library passed Clippy with warnings denied. The scratch-only version passed full serving, streaming, repeated responses, coding/prose checks and the seeded 32-token sampling reference. |
| 10 | |
| 11 | This is part of the Ribbon and 27B work tracked in Core#710. It changes the resident 27B engine. Ribbon's existing storage-fed expert adapter remains the separate 30B-A3B path. No deployment or dense 27B storage attachment is claimed. |
| 12 | |
| 13 | The final integration candidate combines this change with the checked Omega checkpoint policy in PR#896. Its source identities are recorded separately from the earlier scratch-only measurements. The combined binary passed those full serving checks too, including live/snapshot/ABA behavior and the seeded sampling reference. With the model loaded, its three short-prompt first-visible observations were 0.289, 0.285 and 0.289 seconds. These are shared-machine observations. The final complete-score check also passed all six cases, with its repeated 5,017-token reading at 18.661 seconds. The 32,768-token test retrieved the buried passphrase correctly, and its resumed answer matched a fresh cold reading in both IDs and text. The initial long read and answer took 137.255 seconds; the follow-up completed in 1.783 seconds using the saved context. These are complete response times, not first-token measurements. Final isolated repository preflight passed. All required local workspace jobs pass. The same binary also passed the 65,536-token retrieval and continuation check: all three answers matched the frozen passphrase, and saved-context and fresh-read follow-ups were identical in IDs and text. The first full response took 310.327 seconds, the saved-context follow-up 2.161 seconds, and the fresh full follow-up 311.596 seconds. These remain shared-machine complete-response observations. The 128,000-token check also passed with the same immutable binary. Initial first-visible time was 742.889 seconds and full response time was 745.002 seconds. The saved-context follow-up began in 0.832 seconds and completed in 2.935 seconds. A fresh read of the same follow-up began in 744.424 seconds and completed in 746.546 seconds. Both follow-ups matched exactly in token IDs and text, all three answers matched the frozen passphrase, and the private server exited cleanly. These are shared-machine observations. Five alternating quiet-machine pairs remain incomplete. |
| 14 | |
| 15 | The subsequent matrix reading screen combines [128-row support](https://github.com/aien-dev/CUDApp/pull/257) with [checked Omega work ordering](https://github.com/aien-dev/CUDApp/pull/258). All six full-model cases preserved finite, bit-identical scores and the next-token choice. For the repeated 5,017-token read, the 64-row/group0 comparison took 18.817 seconds; 128-row/group0 took 14.759 seconds; and 128-row/group4 took 14.348 seconds. The selected combination used about 24% less reading time in this shared-machine screen. These are model reading times, not server first-visible measurements or quiet qualification. The full comparison and other tested settings are in `q38-matrix-reading-screens.json`. The subsequent [adaptive integration](ADAPTIVE-READING.md) has now passed per-model serving isolation, full native and Core host checks, complete-score comparisons, and serving correctness through 128,000 tokens. Its final receipt distinguishes these completed checks from quiet performance qualification, which remains NOT_RUN. Published production defaults are unchanged. |