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

Gated DeltaNet decode step kernel (Qwen3.8-27B)

Closed · #542 · open 2026-10-18 11:49 UTC · closed 2026-10-24 17:56 UTC (reason completed)

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

Labels: enhancement

drakestapleton wrote on 2026-10-18 11:49 UTC

Gated DeltaNet decode step on the GB10 (48 of the 27B's 64 layers). One token, per layer:

  • causal depthwise conv1d (kernel 4, 10240 channels, no bias) over [3-token tail | new], SiLU; tail update
  • q, k (16 heads x 128) l2-normalised (eps 1e-6), q / sqrt(128); value heads 48 (v head h reads k head h/3)
  • beta = sigmoid(b), g = -exp(A_log) * softplus(a + dt_bias)
  • f32 state S[48][128][128]: S *= exp(g); kv = S^T k; delta = (v - kv) * beta; S += k delta^T; o = S^T q
  • gated RMSNorm per head (weight as is) times silu(z)

State traffic: 3 MiB per layer read + written per token. Also the state snapshot / restore that next-turn resume needs.

Part of the Qwen3.8-27B swap (tracking issue in aien-sovereign-core-mv; plan ~/handoffs/2026-10-18-qwen38-27b-on-omega.md). Golden: the host reference crates/aien-inference-abi/src/qwen38.rs (sc branch feat/qwen38-27b; perplexity 1.091 / next-token accuracy 0.988 on 256 tokens of the Apache LICENSE). Chip-proven = parity vs a double oracle on the GB10 plus a negative control, receipt under evidence/.

drakestapleton wrote on 2026-10-18 12:28 UTC

Progress 2026-10-18 12:20Z (worktree omega-gdn, branch feat/gdn-decode, not pushed yet):

  • Kernel src/omega_blackwell_codegen_gdn.{h,c}: one launch per layer, grid 3 x 16 (one CTA per value head), 256 threads, 665 instructions, peak 116 registers. Conv + SiLU, l2norm, softplus/decay/beta, the delta-rule state update in registers (16 x LDG.128 per thread, held-scoreboard prefetch), gated RMSNorm. Branch-free except lane-0 shared stores.
  • API src/omega_gpu_gdn_api.{h,c}: alloc / set_layer / set_state / get_state (reference layouts, checks the per-head tail copies agree) / reset / step / record (command list) / read_out.
  • New op: MUFU.LG2 (sub-op 0x0c00, nvdisasm 13.0 -b SM121 decodes "MUFU.LG2 R2, R4").
  • Simulator fix: bw_warp_sim_k.h ignored the STG.E immediate offset that the encoder writes (nvdisasm decodes our word as STG.E desc[UR4][R4.64+0x1e0c], R9). The six other simulator suites still pass (fp8gemm, bf16_gemv, cmdlist, tern, router, decode_attn).
  • Bug found by the simulator and fixed: a missing CTA barrier between the q/k shared stores and the state phase. A zero initial state hid it (0 x poison = 0); the test now always starts from a random state.
  • Host-only 13/13 PASS. Simulator 12/12 PASS: 3 chained steps vs the double oracle, worst normalised error out 2.3e-7, state 2.7e-7, tail exact; both fragment orders bit-identical; mutants 1-4 caught (errors 0.56 to 1.8 vs tolerance 2e-4).
  • Chip run queued behind the GB10 lock (the judge holds it): parity over 5 chained steps on two layers, rerun bit-identical, reset, mutants, the record path, timing against the bandwidth ceiling.

drakestapleton wrote on 2026-10-18 15:43 UTC

Implementation and chip evidence: PR #548 (open; merging paused per Drake's MERGE-PAUSE).

Sign in to comment