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/blob/main/docs/gpu/Q38_27B_GB10_STRESS_20261119.md # 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 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 - Model slice: Exact 1/16th slice of Qwen3.8-27B (`4` layers = `3` Gated DeltaNet + `1` full attention, `H = 5120`, `I = 17408`, `24q / 4kv` attention heads, `48` GDN value heads) with the full `vocab = 248,320` `bf16` `lm_head` (`2.54 GB`) and FP8 screen (`1.27 GB`). - Timing instrumentation: - Whole-stroke latencies: 7-rep median `OmegaGpuDecodeGraphStats.chip_ns`. - Per-kernel breakdown: GPU hardware PTIMER stamps (`omega_gpu_q38_graph_set_stamps(1)`). - System telemetry: 1 Hz `nvidia-smi` (`utilization.gpu`, `clocks.sm`, `temperature.gpu`, `power.draw`), `/proc/self/status` (`VmRSS`), and `/proc/meminfo`. - Honesty boundary: 4-layer + full `lm_head` numbers are measured on GB10 silicon; 64-layer figures are explicitly labeled as projected (`16 × 4L trunk + head`) from measured PTIMER stamps and are not a live 64-layer checkpoint run. ## 1. Correctness & Bit-Exactness (`134/134 PASS`) - Multi-head parity (`N = 1, 2, 4, 6, 8`): Every head's greedy token and all `248,320` output logits per head in both unbatched (`set_batch(0)`) and batched FP8 GEMM (`set_batch(1)`, including `down_proj` at `K = 17408`) are 100% bit-identical (`memcmp == 0`) to single-head `omega_gpu_q38_graph_token()`. - HUM L314 exact two-pass `lm_head` (`H = 5120`, `roundings = 10384`): Exact greedy token match vs plain `bf16`; Mutant 5 (MASK inverted) caught. - Sustained `64 × 8` stress (`512` tokens, `set_batch(1)` + `exact_head ON`): `64/64` steps valid, zero poison/NaN/errors. ## 2. Batch Scaling Sweep (`N = 1..8`, 7-Rep Median) Heads (`N`) Unbatched 4L+Head Batched 4L+Head 4L+Head Speedup Unbatched 4L Trunk (PTIMER) Batched 4L Trunk (PTIMER) Trunk Speedup Launches (Unb → Bat) 1 `18.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` 2 `36.222 ms` (`55.21 tok/s`) `31.976 ms` (`62.55 tok/s`) `1.13×` — — — — 4 `71.958 ms` (`55.59 tok/s`) `53.447 ms` (`74.84 tok/s`) `1.35×` `26.937 ms` `11.057 ms` `2.44×` `164 → 90` 6 `107.728 ms` (`55.70 tok/s`) `78.327 ms` (`76.60 tok/s`) `1.38×` — — — — 8 `140.547 ms` (`56.92 tok/s`) `97.239 ms` (`82.27 tok/s`) `1.45×` `57.032 ms` `11.773 ms` `4.84×` `328 → 134` - Scaling from `N = 4` → `N = 8` batched adds only `+0.716 ms` (`+6.5%`) to the 4-layer trunk (`11.057 → 11.773 ms`) for 2× the conversations, because `omega_gpu_fp8gemm_record` (`mt = 8`) streams all 4 dense FP8 weight matrices (`mix`, `o`, `gate_up`, `down`) once across all 8 heads. - Projected full 64-layer 27B (`16 × 4L trunk + head`, derived from measured PTIMER, not yet run at 64L): - `N = 1` plain `bf16`: `106.70 + 10.96 = 117.66 ms` (`8.50 tok/s`) - `N = 1` exact two-pass: `109.25 + 7.62 = 116.87 ms` (`8.56 tok/s`, `-3.36 ms` on `lm_head`) - `N = 8` batched + exact two-pass: `188.37 + 8 × 7.62 = 249.33 ms` (`32.1 tok/s` aggregate across 8 concurrent conversations — `3.8×` single-stream throughput). ## 3. Per-Kernel GPU PTIMER Breakdown (4 Layers + Full `vocab = 248,320`) Kernel `N=1` Unbatched `N=1` BW `N=8` Unbatched `N=8` Batched Notes `gate_up` (`34816×5120`) `2,845.9 us` `250.6 GB/s` `23,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 us` `225.6 GB/s` `13,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 us` `235.9 GB/s` `11,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 us` `210.5 GB/s` `5,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 us` `939.6 us` `~26–39 us`/layer `attn` (1 layer, `pos=1`) `54.4 us` — `664.8 us` `494.8 us` per-head `res` / `norm` / `swiglu` `126.1 us` — `1,400.4 us` `262.8 us` `ROWS` fused at `N=8` `perm` (x' lane permute) `0` — `0` `151.7 us` (`37` launches) `1.3%` of batched trunk `lm_head` (`bf16`, `248320×5120`) `10,946.7 us` `232.3 GB/s` `89,139.0 us` (`228.2 GB/s`) `85,335.6 us` (`238.4 GB/s`) 98% of DRAM ceiling `argmax` `17.0 us` — `175.2 us` `138.2 us` on-device, 0 logit readback ## 4. Output Head Comparison (`H = 5120`, `vocab = 248,320`, `N = 1`, 7-Rep Median) Output Head Mode 4L + Head (`chip_ns`) Head-Only (PTIMER) Saved vs Plain `bf16` Greedy Parity Plain `bf16` `17.611 ms` `10.947 ms` (`232.3 GB/s`) baseline reference Exact Two-Pass (`set_exact_head`) `14.982 ms` `7.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 ms` Approximate (quantized) ## 5. Sustained Stress Stability & GB10 Hardware Telemetry - Sustained `64 steps × 8 heads = 512 tokens` (`set_batch(1)` + `exact_head ON`): - `64/64` steps valid - min: `77.114 ms` | p50: `79.738 ms` | p95: `83.572 ms` | p99/max: `84.923 ms` | mean: `79.990 ms` (`100.01 tok/s` aggregate on 4L+head) - Memory: - Peak process `VmRSS`: `5.12 GiB` (4L FP8 + `bf16 lm_head` + FP8 screen + 8-head GDN/KV state) - `MemAvailable`: `113.18 GB` pre-run → `113.35 GB` post-run (`0` leak) - GB10 Telemetry (`nvidia-smi` @ 1 Hz, `26` samples, `10` active): - GPU Utilization: `96.0%` active avg / `96%` max - SM Clock: `208 MHz` idle → `2,548 MHz` peak - Temperature: `40°C` idle → `50°C` peak - Power Draw: `4.51 W` idle / `15.17 W` avg / `40.90 W` peak (well under the `85 W` Spark limit) ## 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) - `om/gpu/bw_qmd.om` replaced C QMD0/QMD1 packing and verification in `src/omega_blackwell_qmd.c` (hosted + freestanding `-nostdlib`), raising `OMEGA_BW_QMD_MAX_SHARED_BYTES` from `32 KiB` → `96 KiB` (`98,304 B`) via dynamic QMD word 36 `MIN_`/`TARGET_SM_CONFIG_SHARED_MEM_SIZE` (`9` / `17` / `26`). - `om/gpu/bw_sched.om` replaced C `fp8_schedule_stalls` and now schedules `omega_blackwell_codegen_gemm.c` (paired with 4-way interleaved `decode_word4` and bit-exact `i`-outer/`q`-inner FFMA). - `om/gpu/q38_plan.om` drives batched `exact_head` (1× FP8 screen GEMM across all `N` heads), `XB = 4` `bf16` `lm_head` at `H = 5120` (`81,920 B` SMEM, 76 GPRs), `mark_independent` overlap across disjoint per-head `GDN`/`PERM`/`ATTN`/`GATE`/`ARGMAX` launches, `K = 17408` `down_proj` deep SMEM staging (`69.6 KiB`, `depth = 2`), and L2-cached `attn256` `part`/`rope`/`norms`/`mpart`. ### Batch Scaling Comparison (`799adb6d8` C Baseline vs. `eb8918dcf` Pure OM-2, 4L + Full `248,320` Vocab) Metric Before (`799adb6d8`) After (`eb8918dcf` Pure OM-2) Improvement `N = 2` Batched `plain bf16` `31.976 ms` (`1.13×`) `20.940 ms` (`1.72×`) `1.53×` faster `N = 4` Batched `plain bf16` `53.447 ms` (`1.35×`) `21.638 ms` (`3.30×`) `2.47×` faster `N = 6` Batched `plain bf16` `78.327 ms` (`1.38×`) `33.279 ms` (`3.24×`) `2.35×` faster `N = 8` Batched `plain bf16` `97.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`) Kernel Before (`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 us` `37.3 us` `13.3×` faster (`mark_independent` + L2 cache) `argmax` (`8` heads) `138.2 us` `57.1 us` `2.42×` faster (per-head `am_v`/`am_i` + overlap) `gdn` (`3L`, `8` heads) `939.6 us` `783.6 us` `1.20×` faster (`mark_independent` overlap) `mix` (`4L`) `2,494.6 us` `2,335.7 us` `-6.4%` (`decode_word4` + `bw_sched.om`) `o_proj` (`4L`) `768.6 us` `737.9 us` `-4.0%` `gate_up` (`4L`) `4,282.7 us` `4,162.0 us` `-2.8%` 4L Trunk Total (`N = 8`) `11.773 ms` `10.708 ms` `-1.065 ms`/4L (`-17.0 ms` projected at 64L) ### Single-Head (`N = 1`) PTIMER & 64-Layer Projection - `down_proj` (`K = 17408`): `1,580.2 us` → `1,508.0 us` (`-4.6%`, deep SMEM-staged in `69.6 KiB`) - `attn` (`pos = 1`): `54.4 us` → `30.8 us` (`1.77×` faster, L2-cached `part`/`rope`/`norms`) - 4L Trunk Total (`N = 1`): `6,669.0 us` → `6,565.2 us` (`-103.8 us`/4L) - Projected full 64-layer 27B (`16 × 4L trunk + head`, derived from measured PTIMER, not yet run at 64L): - `N = 8` batched `plain bf16` (`XB = 4`): `16 × 10.708 + 22.744 = 194.07 ms` (`~41.2 tok/s` aggregate across 8 concurrent conversations, up from `32.1 tok/s` projected before).