Repository navigation
Pin ROCmFPX f3238de: WMMA attention for 256-wide heads, 32K prompts 260 -> 310 tok/s - #267
Conversation
…60 -> 310 tok/s ROCmFPX #8 adds a prompt-processing FlashAttention kernel for 256-wide heads on gfx1151 (the Qwen3.5/3.8 full-attention layers), which fell through to the scalar tile kernel before. Qwen3.8-27B UD-Q4_K_XL, llama-bench -b 512 -ub 512: pp8192 329 -> 348, pp16384 302 -> 334, pp32768 260 -> 310 tok/s. test-backend-ops FLASH_ATTN_EXT hsk=256 122/122. It also carries an opt-in sparse prefill after FlashPrefill V2 (GGML_ONEBIT_FLASH_PREFILL=<alpha>, off by default): llama-server mean prompt speed on 14-28K-token wikitext prompts 325 -> 347 tok/s at alpha 0.1, passkey retrieval 20/20 at ~16K and ~30K, but outputs change (greedy agreement with dense 93/871), so it stays off. docs/lean.md has the numbers; README status gets one line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Docs7 for 1bit-monster/engine
Commit |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
KLD check for the 256-wide-head WMMA attention (ROCmFPX #8, pinned here by #267). Setup:
Verdict: the two kernels are equivalent within noise. Both have a few large outliers against the non-FA path, and both are well under 1% PPL from the reference. The earlier 2-chunk wikitext PPL gap (5.45 vs 5.59) doesn't show up here. A 4-chunk run had suggested a heavier dense tail (99.9% 2.63 vs 1.40), but it shrank with more data. So the default stays as #267 set it, with no change to The sparse prefill stays opt-in; its PPL cost (5.45 -> 5.93) is already stated in docs/lean.md. |
Moves
third_party/llama.cpp-rocmfpxfromfc664batof3238de, which is ROCmFPX #8.On gfx1151, prompt attention for 256-wide heads used the scalar tile kernel. Those are the Qwen3.5/3.8 full-attention layers. ROCmFPX #8 adds a WMMA kernel of ours for that case.
GGML_ONEBIT_FA256=0turns it off.Through this branch's own build (
ONEBIT_LEAN=ON -DONEBIT_LEAN_ROCM=ON),1bit serve --device rocmon a 14,435-token prompt runs at 339.3 tok/s with the WMMA kernel and 307.0 tok/s with the tile kernel. Both continuations are coherent.The pin also brings an opt-in sparse prefill after FlashPrefill V2 (
GGML_ONEBIT_FLASH_PREFILL=<alpha>, off by default). At alpha 0.1, prompt speed on 14-28K-token prompts goes 325 -> 347 tok/s and passkey retrieval scores 20/20, but outputs change. The numbers are indocs/lean.mdunder "Long prompts: 256-wide attention heads". The README status gets one line.🤖 Generated with Claude Code