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/40da4155c746d370 # 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 locality baseline: account for memory traffic across a complete inference step Open · #602 · open 2026-10-20 18:06 UTC Imported from GitHub aien-dev/omega-mv#602, by drakestapleton drakestapleton wrote on 2026-10-20 18:06 UTC ## Governing correction: live 35B baseline and serving-speed order 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. 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 earlier 30B/48-layer graph examples are historical pattern evidence only. Their 4.5 MiB/token estimate and 436-to-388 launch calculation are not 35B measurements or acceptance targets. Recompute every eliminated intermediate and boundary for the selected Q36 path. Keep single-row greedy, sampled/full-logit, and batched execution as distinct evidence cells. 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. The inspected 35B loader explicitly rejects `Matrix::Fp8` for `lm_head.weight`: `lm_head: FP8 (the graph takes a bf16 head)`. Admission guard . Native construction also requires the BF16 head. A smaller weight file alone is not supported: the qualified `.om` loader, graph admission/wiring and execution path must change. Existing FP8 screening with BF16 refinement is a separate mechanism. Preserve batching/reuse and qualify the chosen numerical contract. Direct hardware receipts and independently checked calculations establish the baseline while the planning-tool fixes proceed separately. Do not use affected uncorrected model outputs as qualification evidence. ## Governing correction: replace and remove, no retained legacy code Drake clarified: there will be no legacy code; it will be replaced with .om. The final state is .om throughout the project's first-party implementations, including runtime, compiler, services, build/release tools, automation and project-owned tests. This supersedes any older wording permitting a permanent legacy/reference implementation, wrapper, foreign fallback or dual production path. For each component: implement and qualify its .om replacement, cut its consumers over, then delete the superseded implementation and obsolete build/runtime dependencies from the active tree. Old source may be consulted in Git history during replacement; do not keep it in an active legacy/reference directory. Existing code present during unfinished migration is an outstanding replacement task, never an accepted end state. Preserve historical Git commits and immutable evidence; do not rewrite history. Missing .om capabilities are implementation dependencies for the existing seed/compiler owners, not exemptions. Independent third-party qualification oracles may run outside the delivered source/build/runtime closure; replace project-owned legacy test implementations too. Generated machine code, non-executable data/documentation, external protocol formats and device firmware are separately inventoried and cannot disguise retained first-party logic. Interoperation with users' external software does not make that software part of the .om implementation. Acceptance includes an active-tree/dependency audit showing the old implementation and fallback are gone, .om consumer tests pass, and exact source/seed/binary/evidence identities are recorded. Coordinate existing owners and release gates; replacement is complete only after deletion and consumer qualification. ## Problem We want more useful arithmetic per byte fetched from external memory. The conversation's “97% moving data” is an unverified hypothesis, not a measurement. Host spin-wait time is not itself a measurement of GPU memory stalls. ## Existing work to reuse - #328 owns BF16 decode performance and whole-task profiling; this issue supplies a memory-hierarchy ledger for that work. - #575 owns submit/complete overhead; #580 owns engine pipelining and dependency scheduling. - #521 and #569 own buffer lifetimes/reuse; #583 owns offline cost simulation. - src/omega_gpu_matmul_api.c already has resident weights, shared-session execution, staging buffers and stage timing. Do not assume every call uploads the model. ## Deliver - Select the current qualified inference path and pin it. Capture one complete decode step and representative prefill chunks, including short and long context. Record batch size and distinguish startup from steady state. - Account separately for host staging/packing/copy-out, external-memory reads/writes, cache behavior where observable, shared-memory traffic, register spills, launches, synchronization and arithmetic. Explicitly distinguish device-addressable unified memory from on-chip storage. - Reuse existing timings and profiler support. Label each byte count MEASURED, ANALYTICALLY_ESTIMATED or UNKNOWN; never equate requested bytes with actual DRAM transactions. Report instrumentation overhead and overlapping intervals without double-counting. - Produce a per-operation table and whole-step critical-path view. Identify intermediates written then immediately reread, weight reuse opportunities, coherence boundaries and capacity/dependency constraints. - Rank one concrete fusion candidate and one persistent-reuse candidate by plausible end-to-end impact. Reference #555 for attention tile reuse rather than starting another attention optimization lane. ## Acceptance - Reproducible baseline receipts with repeated timings and variability; correctness matches the incumbent. - Allocation/lifetime ledger reconciles with #521/#569; unified memory is counted once. - Report explains what fraction of runtime can actually be attributed to each bottleneck, leaving unresolved time explicit. - Separate decode/prefill findings and a bounded experiment recommendation; no fabricated speedup or 97% claim. - Export useful fields to #583 without introducing a parallel cost model. ## 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. ## Mathematical traffic bounds and reuse ledger (2026-10-20) Extend the baseline with a small dependency DAG for the selected computation. Mark inputs, outputs, recomputable pure nodes, required persistent state, and legal storage levels. State the fast-memory capacity per participating SM/block, precision, initial/final residency and whether recomputation is allowed. Use the red-blue pebble framework to derive a defensible I/O lower bound for a tractable subgraph. Keep proven lower bounds, feasible schedule upper bounds and heuristic estimates separate. Classical two-level bounds do not automatically model distributed registers, bank conflicts, caches, finite transfer granularity or cross-SM communication. Explain that mapping explicitly; no claim of global optimality from a heuristic. - Report observed/estimated traffic versus the applicable lower bound with identical accounting boundaries, plus residual avoidable traffic where justified. - Deliver one tiny DAG with an independently checkable legal schedule and capacity accounting; verify required predecessors are available before each computation. - Provide #583 a per-intermediate ledger: size, consumers, lifetime, recomputation operations, transfer cost, lookup/validation cost and invalidation dependencies. Reuse its minimum-work extension rather than building another optimizer. - Identify exact reusable artifacts with matching input/model/layout/contract identities. Include cold preparation and lookup costs; no semantic-similarity substitution for exact activations. Reference: Hong and Kung, I/O Complexity: The Red-Blue Pebble Game (1981), https://doi.org/10.1145/800076.802486 . ## 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. ## Computerphile memory hierarchy follow-through Use CPU Memory & Caches and Memory Mapping as teaching context; research method: FlashAttention, https://doi.org/10.52202/068431-1189 . Extend the existing ledger, not a new profiler. - Distinguish cache-capacity, translation/TLB, coherence, layout, copies, synchronization and storage stalls where measurable. Large mappings/contiguous tiles are hypotheses, not guaranteed improvements; report unknown counters explicitly. - Select one concrete locality transformation after attribution; compare whole-task behavior and full preparation cost with the same model/numerical contract. Include adverse pressure/shape controls. - Feed expert-streaming #534 and selection #522; resident weights must not be counted as repeated SSD uploads. - New owned instrumentation and optimized implementation follow .om replacement under architecture#300; preserve historical evidence outside active legacy-source copies. ## Pin the movement counters to what the code actually observes (2026-10-24) Source audit: CUDApp `22e9d9bad9b9238996b05b68dfd73e4036ed354f`, Omega `046cc9d2369951f484930be7a28f35fa9ab3b20b`. The existing ledger requirements are sound; the following concrete implementations must be represented accurately. - Warp simulator counters are per-lane logical payload loads/stores. LDG/STG accounting increments 2/4/8/16 bytes per executed lane. It does not model coalesced memory transactions, cache hits/misses, controller traffic or time. - Linux `ref_sync` validates ranges, records pending L2 invalidation for CPU writes into GPU-cached buffers, and issues an ordering barrier. A full-allocation sync range is not a full-allocation memcpy. - Session marker polling performs a bounded spin followed by platform polling; prefill explicitly supplies a 200,000-us maximum spin window . The window is a maximum wait policy and exits on completion, not a fixed delay. - The separate persistent GPU seat invalidates private cache, reads ring/lease state and writes heartbeat/live counters per pass. Its presence does not prove that the selected inference path runs it. ### Additional completion evidence - Export counter kind, hierarchy level, units, source identity, collection method and assumptions. Keep tensor payload, executed lane accesses, estimated sectors/transactions, measured external-memory bytes, and visibility/submit events as distinct fields; an unavailable physical counter remains UNKNOWN. - Include a tiny alias/cache-reuse fixture where logical access count differs from unique payload and estimated physical traffic, plus a sync-only fixture that performs ordering with zero explicit memcpy. These guard the model against counter-category mistakes. - Send marker poll counts, CPU wait time, configured spin window and persistent-seat idle/busy activity to the existing submit-cost owner #575. Compare policies at fixed arrival/load conditions; retain lease, cancellation, timeout and visibility invariants. Attribute these as control-plane work rather than tensor bytes, and do not add a second profiler/scheduler. Pin the actual consumer/backend flag, dependency locks and model precision in the exported ledger. The graph's hardcoded Qwen3-30B shapes do not establish the current 27B/35B serving path. Use #583's finite-model work to validate schedules against the correctly typed counters. 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. No comments. Sign in to comment