Skip to content

qwen4_exp: FP8 GDN decode copy is the gfx1151 default (Flash-Next decode +16..18% MTP, +17% plain; =0 opts out) - #275

Merged
AzeezIsh merged 1 commit into
mainfrom
perf/hip-fnext-fp8gdn-default
Oct 30, 2026
Merged

AzeezIsh merged 1 commit into
mainfrom
perf/hip-fnext-fp8gdn-default

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

On gfx1151 (atlas_hip), an unset ATLAS_QWEN4EXP_FP8_GDN now means the decode-only FP8 copy of Flash-Next's BF16 GDN projections. BF16 stays the default elsewhere. =0 opts out, explicit values keep their meaning, ATLAS_QWEN4EXP_BF16_GDN=0 still wins, and the startup-parity word reads the same from_env(). The quantizer is built for strix-hip since #262.

Speed (framework, desktop Strix Halo, Flash-Next NVFP4, 256-token decode, this branch: unset vs =0, f102):

MTP @1.9k MTP @7.4k plain
=0 (BF16) 19.4 tok/s 18.8 12.2
default (FP8 copy) 22.6 22.2 14.3

Accuracy:

  • ppl dense/above-bound ratio 1.0000 and needles 12/12 (f91; ppl is prefill-only, so it cannot see this decode-only change).
  • The decode-exercising leg, agentic-webserver (50 runs, prefix cache ON, MTP), on this exact build: default FP8 46/50 (f103) vs =0 BF16 46/50 (f109). That is a paired control, no difference.
  • Earlier unpaired samples: 47/50 FP8 (f93) vs 48/50 BF16 (f92), on a different build.

Cost: the FP8 copy's memory on top of the BF16 projections kept for prefill. DevLab build of the branch: 41018532375 (success).

🤖 Generated with Claude Code

…_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 #262.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh
AzeezIsh merged commit d90b228 into main Oct 30, 2026
25 of 26 checks passed
AzeezIsh added a commit that referenced this pull request Oct 30, 2026
serve-amd.sh: keep Flash-Next's GDN projections BF16 above MAX_BATCH 1 (restores C>1 KV room after #275)
data-angel pushed a commit to Enntity/atlas that referenced this pull request Oct 31, 2026
Atlas-Inf#275 made the FP8 GDN decode copy the gfx1151 default: +17% single-user
decode, but ~1.9 GB on top of the BF16 projections prefill keeps. At
MAX_BATCH 8 (SSM slots raised to 10 for Marconi) that took pre-KV from
89.2 to 91.1 GB of a 91.2 GB budget on the 96 GB framework GPU. 0.1 GB
of KV (203 blocks) was left, and C4/C8 requests ran one at a time: max
TTFT 85 s / 195 s, aggregate equal to C1 (f114 vs f110).

Above MAX_BATCH 1 the recipe now defaults ATLAS_QWEN4EXP_FP8_GDN=0. An
explicit setting still wins, and MAX_BATCH 1 (the recipe default) keeps
the FP8 copy. The variable is read only by qwen4_exp, so other models
are unaffected.

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