Repository navigation
opencl: fold gqa heads for f16 decomposed FA - #32631
Merged
Merged
Conversation
Co-authored-by: Shaofei Qi <[email protected]> Co-authored-by: Hongqiang Wang <[email protected]> Assisted-by: Codex
lhez
force-pushed
the
lh/fa-f16-gqa-head-fold
branch
from
November 20, 2026 04:37
5caaba0 to
1e09da9
Compare
lhez
marked this pull request as ready for review
November 20, 2026 04:42
Contributor
|
@max-krasnyansky @wanghqc please review/ack when you get a chance |
lhez
approved these changes
Nov 20, 2026
max-krasnyansky
approved these changes
Nov 20, 2026
4 of 11 tasks
Kidplayer666
pushed a commit
to Kidplayer666/llama.cpp
that referenced
this pull request
Nov 20, 2026
Assisted-by: Codex Co-authored-by: Li He <[email protected]> Co-authored-by: Hongqiang Wang <[email protected]>
wanghqc
added a commit
to qualcomm/llama.cpp
that referenced
this pull request
Nov 22, 2026
OpenCL keeps x2ue's ggml-opencl.cpp and ports the upstream changes by hand: the A7 non-MoE binary GEMMs for q4_0, q4_K, q5_K, q6_K and q8_0 (ggml-org#30947, ggml-org#30948, ggml-org#31002, ggml-org#30949, ggml-org#31003; the bin layout stays default-on for the X2E only, and the q8_0 A7 GEMM leaves the verify band to the cooperative-K GEMM), the DIAG_MASK_INF prune (ggml-org#29801), bf16 support_op flags (ggml-org#32135, ggml-org#32202, ggml-org#32387), f16 and non-contiguous silu (ggml-org#32319), and the bf16 sigmoid and batched group_norm parts of ggml-org#32251 (its add/mul row period, f16 swiglu_oai and q4_K flat GEMV tail were already fixed here). Upstream's decomposed flash attention (ggml-org#32046, ggml-org#32522, ggml-org#32577, ggml-org#32631) is not taken: x2ue keeps its own decomposition, so those kernels are dropped. speculative.cpp keeps x2ue's driver and accepts the new draft-dflash2 and draft-lilicorr types, which route to its single DFlash implementation. qwen4exp keeps its 128-row hc down/inject padding as an override of the merge helper that moved to qwen.py.
Annieren
pushed a commit
to Annieren/llama.cpp-upstream
that referenced
this pull request
Nov 23, 2026
Assisted-by: Codex Co-authored-by: Li He <[email protected]> Co-authored-by: Hongqiang Wang <[email protected]>
1 task
Mr-J-369
pushed a commit
to Mr-J-369/llama.cpp-Android
that referenced
this pull request
Nov 25, 2026
Assisted-by: Codex Co-authored-by: Li He <[email protected]> Co-authored-by: Hongqiang Wang <[email protected]> (cherry picked from commit 7e960f4)
Nindaleth
pushed a commit
to Nindaleth/llama.cpp
that referenced
this pull request
Nov 26, 2026
Assisted-by: Codex Co-authored-by: Li He <[email protected]> Co-authored-by: Hongqiang Wang <[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.
Overview
When doing spec verification, the input tokens are usually very few, which get padded to tile boundary, making a large portion of compute in the tile to be useless.
This PR improves this for f16 KV P8 path in decomposed FA (i.e., decomposed FA with int8 output of KQ) by folding Q heads into the shared KQ tile.
Additional information
Details
gemma-4-E4B-Q4_K_M
Requirements