interplane.Get Omega
Read in your language

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

[STREAM-OVERLAP] Compare lightweight weight prefetch against scratch GEMV using full-token cost

Open · #640 · open 2026-10-23 10:53 UTC

Imported from GitHub aien-dev/omega-mv#640, by drakestapleton

drakestapleton wrote on 2026-10-23 10:53 UTC

Evidence and question

At a8ffd2b912c84197d08f963b05f9c7d8b30a3f8a, src/omega_gpu_decode_graph.c records a scratch o_proj GEMV and marks it independent to overlap weight reads with attention. tools/run_gpu_l2d_prefetch_chip.sh runs a two-layer synthetic A/B test.

Historical evidence in evidence/OWN30B-REQUAL-MAIN-710d438c-20261015/gates/l2d_prefetch.out:

  • Total token 3954.9 -> 4055.2 us and 3979.7 -> 4075.9 us with prefetch, despite faster o_proj.
  • These are historical synthetic results, not current-model qualification.
  • Existing receipt work #507 states chip_ns is host-clock submit/wait time, and the attention stamp combines attention plus prefetch. Those counters cannot independently quantify overlap.

Question: can useful next-weight preparation cost less than the scratch GEMV and improve complete-token latency?

Scope and ownership

Reconcile canonical CUDApp/kernel ownership and active branches before changing historical Omega copies. Coordinate #519 (visibility), #521 (scratch lifetimes), #522 (selection), #507 (receipts), and CUDApp #16/#17/#48. Reuse current command lists, synchronization and correctness gates; this experiment must not create another scheduler.

Experiment and acceptance

  • Freeze current deployed/qualified consumer and source pins. Establish baseline, existing scratch-GEMV prefetch, and one bounded lightweight prefetch candidate; vary one factor at a time.
  • Preserve readiness dependencies and CPU/GPU visibility. Dependency/ordering mutants must fail named correctness assertions, not merely crash.
  • Account for launch count, register/shared-memory pressure, residency, scratch bytes, base/weight traffic, cache policy and synchronization. Report inferred bytes separately from hardware-measured traffic.
  • Interleaved repeated runs report full-token median/p95 and variation, host timings and device timestamps labeled correctly. Add only the instrumentation needed to distinguish overlapping phases; assess instrumentation overhead.
  • Evaluate representative shapes/cache-pressure cases and, when available, the current real consumer. Bit-exact outputs and existing invariants must hold for exact variants.
  • Existing prefetch-red harness accepts any nonzero exit: tighten experiment mutation reporting so build failure/crash/timeout is INVALID, not proof that the dependency mutant was caught.
  • Default remains incumbent until qualified total-cost benefit. Publish a reproducible NO-GO if preparation/contending traffic outweighs the gain.
  • Host implementation and harness work can complete independently; unavailable hardware gates stay NOT_RUN. Use the established Spark reservation/lock and do not interrupt running GPU work.

Related security gates: https://github.com/aien-dev/omega-mv/issues/639; shared reporting conventions may be reused, but no security result is a speed claim.

drakestapleton wrote on 2026-10-24 00:29 UTC

Implemented the host mutation-classification acceptance item on branch fix/native-prefetch-verdict-640 at aaee8c4f793df4336e07f1942ca1e59dcaf029de; draft publication is routed through the existing review desk.

  • Reproduced the existing false positive: model setup failure with exit 1 was accepted. The actual runner now calls a seeded Omega classifier that distinguishes expected numerical failure, uncaught control, and invalid execution/evidence.
  • Independent qualification passed 53 host cases, including incomplete/malformed receipts, unrelated failures, status mismatches and contradictory comparison flags. The runner checks exact classifier/source identity before device work, refuses stale evidence, bounds child runs and propagates hashing failures.
  • Evidence and reproduction: evidence/prefetch-640. No GPU experiment or speed claim; this issue remains open for candidate integration and full-token hardware acceptance.

Authored and verified with Codex at Drake's request.

drakestapleton wrote on 2026-10-24 01:01 UTC

PR #677 now includes actual native verification coverage at 0f53e6be82e569500d0fbb8ea3af996b27287cfc.

  • OMEGA-PREFETCH-NATIVE builds the classifier and existing native fixtures, runs all 53 cases, and checks exact exits and verdict text. Independent controls reject compilation failure, wrong exit, signal, deadline, incorrect verdict bytes and reused scratch.
  • The existing verification runner passes the gate in an isolated candidate containing the exact corrected compiler from #676. Its receipt explicitly records the unmerged dependency overlay; this is not clean release evidence. The same gate on the main-based branch correctly fails when that compiler is absent.
  • Committed planning now has no unmapped paths. Pipeline configuration approval and compiler integration remain required; no allow-list exemption or gate waiver was added. Evidence: native gate and runner results.

GPU/full-token performance acceptance remains unrun. This issue stays open. Authored and verified with Codex at Drake's request.

Sign in to comment