Skip to content

strix-hip: register dequant_nvfp4_bf16 + w4a16 variant/hipBLASLt bench - #169

Merged
AzeezIsh merged 3 commits into
mainfrom
perf/strix-w4a16-lt-bench
Oct 18, 2026
Merged

AzeezIsh merged 3 commits into
mainfrom
perf/strix-w4a16-lt-bench

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • dequant_nvfp4_bf16 registered for strix-hip via the standard
    common/ symlink idiom (same as argmax_bf16, kv_cache_append, …).
    The kernel existed only under kernels/gb10/common/; the lookup
    gpu.kernel("dequant_nvfp4_bf16", …) therefore failed on gfx1151
    targets.
  • w4a16_lt_bench example — measures the candidate dispatch change
    (NVFP4→BF16 dequant into a transient scratch + hipBLASLt BF16 GEMM)
    against the fused w4a16_gemm_t_m128 on the exact 27B dense-FFN
    shapes, including the real dequant-pass cost (~2.2–3.0 ms per weight
    chunk at ~100 GB/s measured, not estimated).
  • w4a16_variants_bench example — same-run shootout across every
    w4a16_gemm_t_m128_* shadow (w256/w256s/w256r/w256g/dq/pipe/k16).

Measured findings on gfx1151 (AzeezStrix, wt-gemm2 + wt-163chk)

  • The fused w4a16_gemm_t_m128 is already the best in-tree arm —
    every shadow variant ties or loses on the profiled FFN shapes.
  • dequant→BF16 scratch + hipBLASLt wins only on deep-K / large-M
    shapes
    (down-proj K=17408 @ M=2048: ~1.4× net; gate/up M=4096:
    ~1.7×; ~wash at M≤1024).
  • fp8_fp8_gemm_t_m128 measures ~1.0 TF/s on gfx1151 — appears to take
    a scalar path; looks broken for this target (noted for follow-up).

This is evidence tooling, not a dispatch change — no production path is
touched.

Generated with Devin

…ample

The NVFP4->BF16 weight-dequant kernel exists only under kernels/gb10/common;
strix-hip models never compiled it. Add the standard common/ symlink (same
idiom as argmax_bf16/kv_cache_append/etc.) so the module resolves on gfx1151.

Motivation: the 27B prefill profile (rocprof, job 186) puts ~63% of device
time in w4a16_gemm_t_m128 + w8a16_gemm_n_m128. The fused kernel walls at
~20-24 TF/s while hipBLASLt bf16 hits ~30 on the same silicon (Oct-4 oracle
bench). The bench example measures the candidate dispatch change — dequant
into a transient bf16 scratch + cublasLt bf16 GEMM — against the fused
kernel on the exact FFN shapes, including the real dequant-pass cost.
AzeezIsh added a commit that referenced this pull request Oct 18, 2026
…arries it

#169 linked dequant_nvfp4_bf16.cu into strix-hip/common/; the Nemotron 3.5
target's own link to the same gb10 file became a dead override
(check_kernel_shadows RULE1). Same file either way, so the build is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh
AzeezIsh merged commit 50c6124 into main Oct 18, 2026
25 of 26 checks passed
AzeezIsh added a commit that referenced this pull request Oct 18, 2026
#167 and #169 merged to main directly; the train already carried their heads,
so this records the shared history. #185 (serve-amd.sh THINKING switch) and
#173 (qwen4_exp compressed-tensors probe) come along.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
maplepaladin73 referenced this pull request in maplepaladin73/atlas Oct 29, 2026
…arries it

#169 (50c6124) linked dequant_nvfp4_bf16.cu into strix-hip/common/; the
Nemotron 3.5 target's own link to the same gb10 file became a dead override,
and check_kernel_shadows (RULE1) now fails on main and on every open PR.
Same file either way, so the build is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant