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/omega-mv/issues/4440f565b7494db9 # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers # GB10 persistent tile experiment: retain useful data across bounded compute steps Open · #604 · open 2026-10-20 18:06 UTC Imported from GitHub aien-dev/omega-mv#604, by drakestapleton drakestapleton wrote on 2026-10-20 18:06 UTC ## Governing correction: measure the existing 35B cached-scratch baseline first Drake's correction, 2026-10-24. The serving target is Qwen3.6-35B-A3B: 40 layers, 256 routed experts, and vocabulary 248,320. Pin the actual serving source, binary/archive, checkpoint, row count, sampling mode and runtime flags before deriving bytes or launch counts. The inspected 35B ship graph already splits CPU-visible `buf` from GPU-owned `dbuf`, with cached allocation by default and `AIEN_OMEGA_Q36_BUF_CACHED=0` selecting uncached scratch. Actual Q36 split and switch . The first task is to measure/qualify the selected behavior and preserve it in the seeded `.om` successor, not to reimplement a supposedly missing 35B allocation split. Serving-speed order: (1) measure and qualify cached scratch on the live 35B path, (2) measure fusion against that qualified baseline, (3) implement and qualify the 8-bit output head. Omega #704/#705 are a parallel planning-tool lane and do not block these direct measurements. The cached-scratch measurement arm in this issue precedes #603/CUDApp#18 fusion. Its qualified baseline receipt is the dependency; closing this entire later persistent-execution experiment is not. This avoids a dependency cycle with the later persistent-versus-fused comparison. Capture the actual cache flag and ownership/visibility behavior, and compare identical model/mode/workload settings. The older 30B single-uncached-allocation example below is historical evidence only. It does not establish that the live 35B lacks cached GPU scratch. Persistent execution remains a later bounded experiment justified by measured reuse. ## Hypothesis A persistent computation can reduce repeated loads when a reusable working set fits on-chip and dependencies permit reuse. A kernel that merely stays alive or polls a queue does not establish this benefit. ## Current code and dependencies Depends on #602; compare against the qualified fusion candidate (#603) when available. src/runtime/rx_resident_gpu.c implements a persistent worker with lease/shutdown handling, but its current body is an integer-add operation, not a resident transformer. Reuse its lessons and existing engine/session infrastructure rather than replacing it. #580 owns general pipelining/concurrency; #555 owns attention-specific tile reuse. ## Deliver - Select one measured, bounded workload with genuine data reuse across steps. Specify weights/state retained, storage location, ownership, synchronization and the dependency proof that permits the schedule. If no worthwhile working set fits, publish that negative result before building a mega-kernel. - Compare separate launches, fused execution and a bounded persistent variant on identical work. Keep accumulators and reusable tiles in registers/shared memory where feasible; write required outputs at explicit boundaries. - Sweep working-set sizes below and above the residency limit, iteration counts and legal tile shapes. Account for per-SM capacity and distributed state; aggregate chip SRAM is not one freely addressable pool. - Report registers, shared memory, spill loads/stores, occupancy or its evidence-backed estimate, synchronization, external bytes and end-to-end timing. Distinguish latency hiding from traffic reduction. - Keep cancellation/lease handling bounded and preserve required visibility/completion semantics. Do not remove coherence operations merely because they appear costly; prove ownership and ordering for any altered boundary. ## Acceptance - Identical computation and numerical gate across arms, with explicit failure/timeout behavior. - Evidence shows retained data and avoided transfers, not just reduced launch count. - At least one control that exceeds the on-chip budget demonstrates or bounds the loss of benefit. - Report throughput and interactive latency separately; use measured energy only if an adequate instrument exists. - Conclude beneficial regime, no benefit, or inconclusive with receipts; no automatic replacement of the serving path. ## Scope and evidence Use Omega's existing native GB10 codegen/session/engine; no replacement executor or CUDA dependency is implied. Recheck current source, active PRs, repository instructions and execution plan before implementation. Coordinate shared-file ownership. Existing model precision, arithmetic contracts and qualification thresholds remain fixed for the comparison; any changed numerical contract is a separately qualified candidate. Use the existing GPU lock and scheduling protocol; do not interrupt live workloads. Pin source, model, hardware, workload and commands in receipts. Hardware results remain NOT_RUN until actually measured. ## Data placement and store-versus-recompute comparison (2026-10-20) Use systolic/dataflow locality as a scheduling principle on the existing GB10, not as a claim of new hardware. For the selected workload, document which legal schedule retains weight tiles, output accumulators or activation tiles, and what must move. Select feasible alternatives from the #602 dependency/capacity ledger; do not blindly permute dependent recurrence steps. For one cheap pure intermediate, compare retaining it, storing/reloading it and recomputing it at its next use. Preserve arithmetic semantics and account for extra instructions, cache effects, synchronization and spills. Never recompute side effects, state updates or random draws as if they were pure nodes. - At least two feasible placement/scheduling alternatives are compared, or infeasibility is documented from capacities/dependencies. - Store/recompute experiment reports the crossover across working-set sizes; a negative result is valid. - Cold and warm trials separate cache effects; label all estimated transfer counts. - Feed the measured options and uncertainty to #583; runtime promotion remains with existing owners and gates. Background: H. T. Kung, Why Systolic Architectures? (1982), https://www.eecs.harvard.edu/~htk/publication/1982-kung-why-systolic-architecture.pdf . ## TURING integration Feed qualified candidates and measurements into #522's numerical execution-method selection and #583's cost ledger. No LLM deliberation is required for ranking the finite eligible set. Include selection/preparation/transfer/validation overhead and uncertainty; compare CPU or cached selection with GPU scoring only when worthwhile. Preserve #522's offline-first qualification gate. This changes execution strategy, not the model's underlying semantic inference. ## Historical 30B placement example only (2026-10-24) The inspected decode layout at CUDApp `22e9d9bad9b9238996b05b68dfd73e4036ed354f` puts CPU-touched embedding/token/table regions and GPU-only `qkv/attn/o/gu/act/dn/hidden` regions into one allocation. The contract makes that allocation GPU-uncached. One submitted graph therefore avoids per-operation host round trips but does not establish register or L2 residency. For that historical 30B path, the proposed placement-only comparison was: a bounded CPU-visible input/output region and a GPU-owned cached interior using existing platform allocation and visibility contracts. Prefill already distinguishes cached device allocations from uncached host-visible buffers . Reuse that ownership pattern and the existing allocator; the experiment may have a separately accounted allocation count and must not be misreported as #521's no-extra-allocation aliasing experiment. Compare: current uncached graph; cached-interior placement only; qualified narrow fusion from CUDApp#18/#603; and only then a justified persistent-tile candidate. This separates cache placement savings from actual intermediate elimination. Do not flip the cache flag on the entire mixed-ownership buffer: host writes to cached memory require the established pending L2-invalidation protocol, and host reads require completion/visibility. ### Additional completion evidence - Annotate every region with writer, readers, last use, cross-token lifetime, alias permissions and visibility boundary; coordinate #521/#569 and CUDApp#19. Cover optional logits/hidden readback, prefetch, null embedding, session failure and stale handles. - Show which accesses can hit L2 and which remain mandatory memory traffic. Measure short/long contexts and competing weights/KV pressure; include a working set large enough to invalidate the claimed reuse regime. A cacheable allocation does not prove a cache hit. - Report boundary copies, cache-maintenance events, allocation/resident bytes, physical traffic where available and full-token latency separately. Preserve exact computation and include cold preparation in break-even accounting. The Linux sync implementation performs ordering/cache bookkeeping rather than a whole-buffer copy; do not claim the allocation split saves the nominal sync range in DRAM bytes. Implement and qualify the owned successor and its project-owned tests in seeded `.om`, migrate consumers, and remove superseded first-party C/Rust implementations and dependencies from the active tree under omega-mv#599 and aien-architecture#300. A retained comparison algorithm must also be qualified `.om`; historical source/evidence remains in Git history. New findings here are source-derived hypotheses, with GB10 performance NOT_RUN. ### Active-branch reconciliation On 2026-10-24, Omega PR #696 remains open at `cdc613f9cfa81daf0a47c9aa95182f40c177c44c`; its seeded compiler includes AArch64 f32/f64 and native device/mapping operations. The selected graph/FP8/prefill/platform implementations inspected here are unchanged on that branch. CUDApp PR #67 is merged and current main contains handwritten `.om` device/policy/vector-kernel work; its evidence does not establish the complete 27B/FP8 successor. Reconcile with these existing owners and current branch heads before implementation; this source audit does not label all unmerged work absent. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:15 UTC Recovered GitHub comment. Original comment `6392673971` ## Cached-scratch baseline arm: measured (step 1 of the governing order) Receipt: `~/workspace/mission-fusion/receipts/baseline-20261025T021219Z/` on the Spark (RESULT.md addendum, results.csv, cached/). Same binary `bin-186b4c4e` / omega lib `7079f95e`, model `qwen3.6-35b-a3b-fp8-95a723d0`, same flags and 1-row workload; only `AIEN_OMEGA_Q36_BUF_CACHED` differs; runtime lines `interior buffers GPU-cached (default)` / `GPU-uncached (AIEN_OMEGA_Q36_BUF_CACHED=0)` captured. cached (default) uncached (`=0`) delta server, 1 row, 3×64 greedy 19.823 ms/tok, 50.45 tok/s 20.365 ms/tok, 49.10 tok/s +0.542 ms (+2.73 %) harness step, 15 stamps 20.3094 ms 21.1749 ms +0.866 ms (×1.0426) experts (gate_up + down) 6.9744 ms, 162.37 GB/s 7.1667 ms, 158.02 GB/s +0.192 ms mix / o_proj / res 4.2601 / 2.1614 / 0.5322 4.4753 / 2.2449 / 0.7052 +0.215 / +0.084 / +0.173 (router, lm_head 0.00) 8-row stroke 63.5 ms/step (~134 tok/s) 82.4 ms/step (~108 tok/s) +29.8 % The penalty lands on the GEMV kinds that re-read x′ per CTA, as the switch's rationale predicts, and it is 1.24× worse in ratio at 8 rows than at 1. Identity holds (p1–p3 identical, p4 at token 4 in both arms, the pre-existing #712 item). Ownership/visibility (source, `src/omega_gpu_q36_graph.c`): `[0, split)` = `buf`, GPU-uncached, everything the host touches, `sync_to_gpu` after host writes; `[split, bytes)` = `dbuf`, chip-only, `alloc_cached` unless the switch is exactly `0` (same expression in the prefill path); a host read of a chip-only region runs `K_COPY` into `stage` first. Sizes (Wolfram exact): `dbuf` 785,920 B at 1 head, 2,774,272 B at 8 heads = 11 % of the 24 MiB L2; the weights are 118 L2 fills per token, so this lever is about intermediate round-trips, never the weight stream. Qualified baseline: the cached default. The deployed pin carries the switch and runs it, so the live server already sits on this baseline; fusion (#603) is to be quoted against it. Conditions, stated plainly: N=1 per arm, fixed order, shared chip (SM clock 2548 MHz under load, not the "chip alone, 2405 MHz" of #712). The harness delta is 4.3× the documented within-window drift (0.2 ms): consistent and larger than drift, not replicated. The fresh cached harness arm died in its load (`RM_ALLOC class 0x3e status 0x51`, NV_ERR_NO_MEMORY), so its figure reuses the same-binary default run. Incident to know about: the uncached harness load on 2026-10-25T02:47Z drove a global OOM that killed the live 18091 server; `MemAvailable` counts mapped model pages as reclaimable, so neither `q36-extra` nor `q36_levers` admission is safe next to a resident 35B. Rule now: no extra load while 18091 serves. The live server was restored. Hardware facts used: measured DRAM read ceiling 236.9 GB/s (nominal 273.056 is derived and aggregate); byte floor for 2,972,307,456 B is 12.547 ms at the measured ceiling. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:15 UTC Recovered GitHub comment. Original comment `6393124317` Gap closed (2026-10-25T03:46Z, exclusive window): the fresh cached-default harness arm that had died on NV_ERR_NO_MEMORY now ran to completion on the same binary/stamps/goldens. Bands 19.904 / 20.150 / 20.391 / 20.843 ms per token (pos 0–64 / 64–288 / 288–800 / 800–1100) vs the reused default run's 20.025 / 20.243 / 20.498 / 20.632: within 0.2 ms everywhere. Identity p1–p3 IDENTICAL, p4 DIFFER at the known token (#712). The cached-default baseline figures above stand as measured, not reused. Receipt: `receipts/baseline-20261025T021219Z/cached/harness-cached.{json,log}` + analysis. Sign in to comment