Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/issues/9191b621befda125 # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # FORTRAN idea 4, families of programs: pinned resident layout shared across every tool reading a checkpoint Open · #676 · open 2026-10-19 01:31 UTC Imported from GitHub aien-dev/aien-sovereign-core-mv#676, by drakestapleton drakestapleton wrote on 2026-10-19 01:31 UTC Part of https://github.com/aien-dev/aien-architecture-mv/issues/274 (idea 4). 1956 manual: two programs with identical DIMENSION and EQUIVALENCE statements "will have this region allocated identically. This fact makes it possible to write families of programs which deal with the same data." Task: define a pinned, content-addressed resident layout for a checkpoint (fused FP8 tensors, scales, norms, lm_head, exactly as the Omega engine wants them on the device) so every tool that touches the same model (aien-serve-http, qwen38_omega_full, qwen38_prefill, the timeline/speed benches, future spec-decode draft) maps the same bytes instead of re-uploading. Measure load time and resident bytes before/after when two tools run back to back; prove with a hash that the layout is identical across tools and that a tool refuses a layout whose hash does not match its expectations (negative control). Start with Qwen3.8-27B. drakestapleton wrote on 2026-10-24 17:47 UTC ## Source evidence: generic resident load duplicates five projections Read-only audit at core main `9204c6f99c9b7e8a1b488e109f8010e51a8c4c86`. No model or benchmark ran. The generic BF16 resident loader uploads q, k, v, gate and up separately, then uploads those same values again in q|k|v and gate|up. Each upload also reads, concatenates, transposes and uploads its input . The CLI daemon can select this loader . Actual attention and MLP forward branches prefer fused weights when present. This is not a claim that fusion is missing: #464 merged fused projection execution. It is a duplicate-backing issue. The specialized dense loader already stores fused projections only ; its existence does not establish every consumer has cut over. PR #636 is still open/unmerged at audit time. Coordinate its owner rather than introduce another loader. ### Byte and reuse model For L layers, hidden width h, query width q, KV width k and intermediate width i, the duplicate BF16 backing is: `D = 2 L h (q + 2k + 2i) bytes`. The pinned Qwen3-8B shape has L=36, h=4096, q=4096, k=1024, i=12288. Therefore D=9,059,696,640 bytes = 8.4375 GiB. This is allocated weight representation, not an additional 8.4375 GiB streamed on every token; the hot paths normally use the fused copy. Eliminating one complete redundant copy removes at least its source read plus destination write, with additional checkpoint/staging passes to account separately. Its 2D/273 GB/s ideal shared-memory traffic scale is 66.4 ms, not a measured load-time gain or a C2C bandwidth claim. For n same-model jobs, measure `T_separate=n(P+E)` versus `T_reuse=P+n(E+H)+V`, where P is load/packing, H is attach/lookup, V is validation/invalidation cost and E is useful execution. Reuse wins only when `(n-1)P > nH+V`. Count the first preparation and any reclaim/rebuild costs, especially for short jobs. ### Focused acceptance under this existing owner - Inventory every reader before removing split allocations. Where a split projection is still needed, use an explicitly strided/column-window view of one immutable backing, or a verified fused-only consumer. A fused [k][q+2k] tensor is not a tightly packed split tensor. - Register each physical backing once in #678's storage map. Prove the generic path's physical allocation decreases by the formula, rather than merely hiding an allocation from accounting. - Preserve BF16 bit treatment (including signaling-NaN quieting), transpose order, row selection, tied-head behavior and the incumbent numerical gate. Wrong offset, stride, model digest and stale layout must fail. - Retain #676's cross-tool/cross-job goal: use the existing single-owner service or a qualified shareable immutable allocation. A matching content hash alone does not make another process's device handle valid. - Run cold-load, warm same-model sequential jobs and distinct-model invalidation arms. Report wall time, checkpoint reads, packing/copy bytes, peak and retained physical memory, plus identical outputs. Do not claim an inference speedup from capacity savings alone. - Implement in the existing seeded .om migration/loader owners, qualify consumers, then remove superseded code. This addendum is not a request for another permanent Rust loader or to override #676's initial Qwen3.8-27B priority. Status: source-confirmed opportunity, hardware performance NOT_RUN. Reuse #676/#678 and the existing loader integration; no duplicate cross-job residency project is needed. Sign in to comment