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

branch main Branches Tags History

omega-mv / docs / gpu / Q38_27B_GB10_STRESS_20261119.md

131 lines · 10984 bytes Raw Blame History Source

Qwen3.8-27B Multi-Head Batched FP8 GEMM & Exact Two-Pass lm_head: GB10 Silicon Stress Report

Date: 2026-11-19
Commit tested: omega-mv main @ 799adb6d8ada0f1ca9a2611d2762d85f5235dfe8 (built against pinned physics.lock)
Hardware: NVIDIA DGX Spark GB10 (sm_121, GB20B die, driver 580.173.02, stock clocks, 121.69 GiB unified LPDDR5x)
Measurement window: spark-window 20261119T213918Z-f0467d (--gb10 exclusive --quiet exclusive)
Hardware reference ceiling: 273 GB/s nominal LPDDR5x / 236.9 GB/s measured GB10 DRAM read ceiling
Verdict: PASS (gpu_q38_stress_bench: 134/134, gpu_q38_stroke_exact_test: 71/71, gpu_q38_graph_test: 24/24)


Scope & Methodology


1. Correctness & Bit-Exactness (134/134 PASS)


2. Batch Scaling Sweep (N = 1..8, 7-Rep Median)

Heads (N)Unbatched 4L+HeadBatched 4L+Head4L+Head SpeedupUnbatched 4L Trunk (PTIMER)Batched 4L Trunk (PTIMER)Trunk SpeedupLaunches (Unb → Bat)
118.337 ms (54.53 tok/s)20.371 ms (49.09 tok/s)0.90× (use unbatched for N=1)6.669 ms—1.00×41
236.222 ms (55.21 tok/s)31.976 ms (62.55 tok/s)1.13×————
471.958 ms (55.59 tok/s)53.447 ms (74.84 tok/s)1.35×26.937 ms11.057 ms2.44×164 → 90
6107.728 ms (55.70 tok/s)78.327 ms (76.60 tok/s)1.38×————
8140.547 ms (56.92 tok/s)97.239 ms (82.27 tok/s)1.45×57.032 ms11.773 ms4.84×328 → 134

3. Per-Kernel GPU PTIMER Breakdown (4 Layers + Full vocab = 248,320)

KernelN=1 UnbatchedN=1 BWN=8 UnbatchedN=8 BatchedNotes
gate_up (34816×5120)2,845.9 us250.6 GB/s23,914.1 us (238.5 GB/s)4,282.7 us (166.5 GB/s / 1× wt)5.58× faster at N=8
down (5120×17408)1,580.2 us225.6 GB/s13,097.7 us (217.8 GB/s)2,224.1 us (160.3 GB/s / 1× wt)5.89× faster at N=8
mix (16384/14336×5120)1,377.7 us235.9 GB/s11,530.9 us (225.5 GB/s)2,494.6 us (130.3 GB/s / 1× wt)4.62× faster at N=8
o_proj (5120×6144)597.7 us210.5 GB/s5,162.8 us (195.0 GB/s)768.6 us (163.7 GB/s / 1× wt)6.72× faster at N=8
gdn (3 layers)79.0 us—1,109.4 us939.6 us~26–39 us/layer
attn (1 layer, pos=1)54.4 us—664.8 us494.8 usper-head
res / norm / swiglu126.1 us—1,400.4 us262.8 usROWS fused at N=8
perm (x' lane permute)0—0151.7 us (37 launches)1.3% of batched trunk
lm_head (bf16, 248320×5120)10,946.7 us232.3 GB/s89,139.0 us (228.2 GB/s)85,335.6 us (238.4 GB/s)98% of DRAM ceiling
argmax17.0 us—175.2 us138.2 uson-device, 0 logit readback

4. Output Head Comparison (H = 5120, vocab = 248,320, N = 1, 7-Rep Median)

Output Head Mode4L + Head (chip_ns)Head-Only (PTIMER)Saved vs Plain bf16Greedy Parity
Plain bf1617.611 ms10.947 ms (232.3 GB/s)baselinereference
Exact Two-Pass (set_exact_head)14.982 ms7.583 ms (335.3 GB/s eff.)-2.63 ms (-3.36 ms PTIMER)Bit-exact (mutant 5 caught)
FP8 Head (set_lm_head_fp8)12.030 ms~5.37 ms-5.58 msApproximate (quantized)

5. Sustained Stress Stability & GB10 Hardware Telemetry


6. Follow-Up: Pure-OM-2 GPU Rewrite (eb8918dcf) Before vs. After on GB10 Silicon

Commit tested: omega-mv main @ eb8918dcf05fb287ba27fc2bbdf226b03ebc1409 (om/gpu/bw_qmd.om, om/gpu/bw_sched.om, om/gpu/q38_plan.om compiled by pinned seed/out/omc b6129ed5… and bound via om/units.sh)
Measurement window: spark-window 20261119T222213Z-28c3e0 (--gb10 exclusive --quiet exclusive)
Verdict: PASS (gpu_q38_graph_test: 22/22, gpu_q38_stroke_exact_test: 71/71, q38_stress_bench: PASS, 8/8 exact token parity on both N = 8 batched plain bf16 (XB=4) and N = 8 batched exact_head)

What Changed (Pure OM-2)

Batch Scaling Comparison (799adb6d8 C Baseline vs. eb8918dcf Pure OM-2, 4L + Full 248,320 Vocab)

MetricBefore (799adb6d8)After (eb8918dcf Pure OM-2)Improvement
N = 2 Batched plain bf1631.976 ms (1.13×)20.940 ms (1.72×)1.53× faster
N = 4 Batched plain bf1653.447 ms (1.35×)21.638 ms (3.30×)2.47× faster
N = 6 Batched plain bf1678.327 ms (1.38×)33.279 ms (3.24×)2.35× faster
N = 8 Batched plain bf1697.239 ms (1.45×, 82.3 tok/s)33.830 ms (4.21×, 236.5 tok/s)2.87× faster (-63.4 ms)
N = 8 Sustained 64×8 (exact_head)79.990 ms mean (100.01 tok/s)41.844 ms mean (191.18 tok/s)1.91× faster (-38.1 ms)

Per-Kernel PTIMER Comparison (N = 8 Batched, 4L + Full vocab = 248,320)

KernelBefore (799adb6d8)After (eb8918dcf Pure OM-2)Change
lm_head (bf16)85,335.6 us (8 launches)22,744.0 us (2 launches)3.75× faster (XB = 4, 96 KiB SMEM)
attn (1L, 8 heads)494.8 us37.3 us13.3× faster (mark_independent + L2 cache)
argmax (8 heads)138.2 us57.1 us2.42× faster (per-head am_v/am_i + overlap)
gdn (3L, 8 heads)939.6 us783.6 us1.20× faster (mark_independent overlap)
mix (4L)2,494.6 us2,335.7 us-6.4% (decode_word4 + bw_sched.om)
o_proj (4L)768.6 us737.9 us-4.0%
gate_up (4L)4,282.7 us4,162.0 us-2.8%
4L Trunk Total (N = 8)11.773 ms10.708 ms-1.065 ms/4L (-17.0 ms projected at 64L)

Single-Head (N = 1) PTIMER & 64-Layer Projection