Repository navigation
serve-amd.sh: keep Flash-Next's GDN projections BF16 above MAX_BATCH 1 (restores C>1 KV room after #275) - #277
Merged
Merged
Conversation
#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]>
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.
#275 made the FP8 GDN decode copy the gfx1151 default: +17% single-user decode, but ~1.9 GB on top of the BF16 projections kept for prefill. At
MAX_BATCH=8that left 0.1 GB of KV (203 blocks) on the 96 GB framework GPU, and C4/C8 requests ran one at a time (f114: max TTFT 85 s / 195 s).The recipe now defaults
ATLAS_QWEN4EXP_FP8_GDN=0whenMAX_BATCH > 1. An explicit setting wins, and the recipe default (MAX_BATCH=1) keeps the FP8 copy. The variable is read only by qwen4_exp.Verified (framework f117, main-276 binary with this recipe):
MAX_BATCH=8MAX_BATCH=1Shell-only change to the AMD serve recipe.
🤖 Generated with Claude Code