Repository navigation
strix-hip: build quantize_bf16_to_fp8_blockscaled (ATLAS_QWEN4EXP_FP8_GDN works on gfx1151; opt-in, decode +12..21%) - #262
Merged
Conversation
…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]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 hascuda_fp8.h), so it joinsstrix-hip/commonby symlink. Defaults are unchanged: the env stays opt-in.Measured on framework (desktop Strix Halo, Flash-Next NVFP4, 256-token decode):
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