Skip to content

strix-hip: build quantize_bf16_to_fp8_blockscaled (ATLAS_QWEN4EXP_FP8_GDN works on gfx1151; opt-in, decode +12..21%) - #262

Merged
AzeezIsh merged 1 commit into
mainfrom
perf/hip-fp8-gdn-quantizer
Oct 30, 2026
Merged

AzeezIsh merged 1 commit into
mainfrom
perf/hip-fp8-gdn-quantizer

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

ATLAS_QWEN4EXP_FP8_GDN=1 (+ ATLAS_GDN_FP8_DECODE=1) failed to load on gfx1151: "Kernel lookup quantize_bf16_to_fp8_blockscaled: Module ... not loaded" (framework f86), because strix-hip never built the quantizer. The gb10 source is portable (the compat layer has cuda_fp8.h), so it joins strix-hip/common by symlink. Defaults are unchanged: the env stays opt-in.

Measured on framework (desktop Strix Halo, Flash-Next NVFP4, 256-token decode):

MTP 1 draft @1.9k / @7.4k plain
default (f88) 19.2 / 19.6 tok/s 12.2
FP8 GDN (f88) 23.2 / 22.0 14.3

Accuracy: ppl dense/above-bound ratio 1.0000 + needles 12/12 (f91; ppl is prefill-only, so it cannot see this decode-only change). The decode-exercising agentic-webserver leg (50 runs, prefix cache ON, MTP) scores 48/50 (f92, default) vs 47/50 (f93, FP8 GDN), with one failure each on different runs. That is noise-level at n=50, but not enough to flip the default, which stays a separate decision.

🤖 Generated with Claude Code

…QWEN4EXP_FP8_GDN on gfx1151)

ATLAS_QWEN4EXP_FP8_GDN=1 (+ ATLAS_GDN_FP8_DECODE=1) quantizes Flash-Next's
BF16 dense GDN projections to FP8 at load for decode. On gfx1151 it failed
to load (framework f86: "Kernel lookup quantize_bf16_to_fp8_blockscaled:
Module ... not loaded"), because strix-hip never built the quantizer.
Those BF16 GEMVs are ~25% of Flash-Next decode at the bandwidth ceiling
(f84).

The gb10 source is portable C++ (the compat layer provides cuda_fp8.h). It
compiles for gfx1151 after the build's usual warp-mask widening, so it joins
strix-hip/common by symlink like the other shared kernels. Nothing changes
by default; the env stays opt-in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh
AzeezIsh merged commit b0df501 into main Oct 30, 2026
24 of 25 checks passed
@AzeezIsh
AzeezIsh deleted the perf/hip-fp8-gdn-quantizer branch October 30, 2026 05:31
vcruz305 pushed a commit to vcruz305/atlas that referenced this pull request Nov 11, 2026
…_FP8_GDN=0 opts out)

An unset ATLAS_QWEN4EXP_FP8_GDN now means Fp8Decode on atlas_hip and stays
Bf16 elsewhere. Explicit values keep their meaning: 0 is BF16, 1 is the
decode copy, full is FP8 everywhere. ATLAS_QWEN4EXP_BF16_GDN=0 (NVFP4
requantization) still wins over the default instead of conflicting with
it. The startup-parity word reads the same from_env(), so ranks agree.

Evidence on framework (desktop Strix Halo, Flash-Next NVFP4):
- decode, MTP 1 draft: 19.2 -> 23.2 tok/s @1.9k and 19.6 -> 22.0 @7.4k
  (f88); plain 12.2 -> 14.3;
- ppl dense/above-bound ratio 1.0000, needles 12/12 (f91);
- agentic-webserver 47/50 (f93) vs 48/50 BF16 (f92).

The quantizer is built for strix-hip since Atlas-Inf#262.

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