Repository navigation
opencl: add q4_k coop-k c8 GEMM for spec verify - #32716
Merged
Merged
Conversation
lhez
force-pushed
the
lh/coopk-q4_k-c8
branch
from
November 21, 2026 07:21
5f120ef to
eb03cbd
Compare
lhez
marked this pull request as ready for review
November 22, 2026 05:32
Contributor
Author
|
@max-krasnyansky @wanghqc please review/ack when you get a chance |
wanghqc
approved these changes
Nov 22, 2026
Co-authored-by: Hongqiang Wang <[email protected]> Assisted-by: Codex
lhez
force-pushed
the
lh/coopk-q4_k-c8
branch
from
November 22, 2026 21:46
eb03cbd to
f2ae099
Compare
max-krasnyansky
approved these changes
Nov 23, 2026
1 task
Kidplayer666
pushed a commit
to Kidplayer666/llama.cpp
that referenced
this pull request
Nov 23, 2026
* opencl: add q4_k coop-k c8 GEMM for spec verify Co-authored-by: Hongqiang Wang <[email protected]> Assisted-by: Codex * opencl: enable q4_k c8 GEMM for n >= 2 for X2 --------- Co-authored-by: Hongqiang Wang <[email protected]>
wanghqc
added a commit
to qualcomm/llama.cpp
that referenced
this pull request
Nov 26, 2026
OpenCL: x2ue's gated_delta_net kernel takes upstream's replay (ggml_gated_delta_net_ext, ggml-org#31669) as a -DREPLAY build, on top of its cache-fused state input/output and chunked prefill (which is not used with replay). xielu, compact FA bias (indexed bias declined), softplus and async input copies come from upstream. Upstream's coop-k c8 verify GEMMs (ggml-org#32716, ggml-org#32909) are not taken: x2ue keeps its cok8 GEMMs. ggml-org#33013 (E17 quirks off by default) does not apply to x2ue's E17 handling. The coopmat GEMM and MoE kernels (ggml-org#32686, ggml-org#32971) and the GDN QK offset fix (ggml-org#32747) were already in x2ue. speculative.cpp keeps x2ue's single DFlash implementation. GDN tests follow upstream (no snapshot K); x2ue's verify-width perf cases now compare replay and plain.
Mr-J-369
pushed a commit
to Mr-J-369/llama.cpp-Android
that referenced
this pull request
Nov 26, 2026
* opencl: add q4_k coop-k c8 GEMM for spec verify Co-authored-by: Hongqiang Wang <[email protected]> Assisted-by: Codex * opencl: enable q4_k c8 GEMM for n >= 2 for X2 --------- 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
This PR adds c8Q4_K coop-k GEMM that handles up to 8 tokens. This kernel is dispatched for verification with tokens of 5 ~ 8.
Additional information
The kernel name
kernel_gemm_coopk_q4_k_q8_1_dp4a_bin_c8means it uses the bin kernel layout, does not mean that it is a bin kernel.Details
gemma-4-E4B-it-Q4_K_M
with
--spec-draft-n-max 7Requirements