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

Qwen3.8 stack follow-ups from desk review: recorded-list scratch safety, NaN checks, tighter tolerances

Closed · #562 · open 2026-10-18 17:29 UTC · closed 2026-11-06 23:58 UTC (reason not_planned)

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

Labels: retired

drakestapleton wrote on 2026-10-18 17:29 UTC

This was generated by AI during PR review (desk review of #547, #548, #549, #550, #553, #559, 2026-10-18).

Three independent read-only reviews found no blocking bug in the Qwen3.8-27B stack; these are the follow-ups, each traced to a line at the reviewed heads. Refs #541-#545, aien-sovereign-core-mv#641.

Safety (recorded launch lists)

  • #553 src/omega_gpu_prefill_attn256_api.c:124-130 (MEDIUM): the shared q' scratch is freed and reallocated when a later host/dev call needs more tokens; the record path only checks size at record time (:164). Record at m=512, then a host call at m=4096, then submit: every launch uses a freed address. Pin the scratch like GDN does (omega_gpu_gdn_api.h:81-82). No caller records this path yet.
  • #549 src/omega_gpu_gdn_api.c:380: record path checks scratch size, not that it is reserved (matmul requires reserved, omega_gpu_matmul_api.c:478); same freed-memory scenario via the realloc at :384.
  • #550 omega_gpu_decode_attn256_api.c:253: record path and layers above 0 never run on chip; split counters rely on the previous kernel's reset with no check.

Wrong answers reported as OK

  • #548 src/omega_gpu_gdn_api.c:150 set_layer accepts NaN/inf parameters; the output check (:280) only looks for the poison value, so NaN output returns OK and stays in state until reset.
  • #559 src/omega_gpu_q38_graph.c:105-112 never checks the attention cache uses rotary 64 (gather table hard-codes 64, :65).
  • #559 record_layer (:286) says "out of order" but never checks; a repeated or skipped layer advances GDN state twice; a failed token leaves GDN state partly advanced with no rollback (:296-301, :350-365).
  • #548 src/omega_gpu_gdn_api.c:228 no alignment check for z_va (16 B) / ab_va (8 B) on the record path (would fault, not silently corrupt).

Tests that could miss a bug

  • #550 tests/gpu_decode_attn256_test.c:138: fixed 3e-3 x max|v| while outputs at ctx 4096-32768 are ~0.004-0.009 RMS; a dropped split at 32768 (~3e-4 shift) passes. Measured error is <5e-4 of tolerance: tighten ~100x; print more digits than %.3f.
  • #553 tests/gpu_prefill_attn256_test.c:54,157: fixed 5e-3; worst measured error at 30720+2048 is 0.007 of it.
  • #559 tests/gpu_q38_graph_test.c:83,289: capped at 8 layers; the 64-layer 596-launch list never runs in this test (whole-model parity ran through sovereign-core).
  • #549 chip output checked only at T<=41 (tests/gpu_gdn_test.c:484-489,576); no prefill-then-prefill test (the documented long-prompt path).
  • #559 explain token 0 being ~50x worse than tokens 1-2 in evidence/q38-graph-chip-20261018T1547Z/main.log (logits diff 3.27e-4 vs 6.7e-6).

Smaller

  • #547 omega_gblackwell_codegen_gemm.c:137 older CUDA-core GEMM still refuses k>16384 (loud CODEGEN_FAIL; prefill down_proj must use tcgemm). Comment at omega_gpu_fp8_api.h:20 still says 16384.
  • #553 ISETP_GE/IADD3/EXIT now take the emitter's control word (src/omega_blackwell_codegen.c:375,379,418,681); IADD3 no longer always waits on scoreboard 4. The 19-test chip sweep passed; kernels outside it are unverified.

🤖 Generated with Claude Code

drakestapleton wrote on 2026-10-30 11:37 UTC

Parked: waiting on #924 and #905. #924 changes every GPU API file this issue names (gdn_api, prefill/decode_attn256_api, q38_graph, matmul_api, fp8_api.h). #905 changes q38_graph and its test. The host-checkable follow-ups (NaN/inf and alignment checks in gdn set_layer, q38 rotary == 64, record_layer order and rollback, the fp8_api.h comment) will start after those land, so the work doesn't conflict with them. The rest of the list needs the GB10 chip.

— Grokbot

drakestapleton wrote on 2026-11-06 23:58 UTC

35B retired (Drake 2026-11-06): Omega LLM only. Follow-ups for the Qwen3.8 stack (recorded-list scratch safety, NaN checks, tighter tolerances). The recorded-list scratch safety and NaN checks carry over as serving-door checks for the Omega LLM (lead, P-DRA-7). — issuecov/I1 (Hermes worker subagent of lead issuecov, claude-opus-5-5, anthropic)

Sign in to comment