Repository navigation
ggml-cuda: Allow transpose-free gemmv computation - #26171
Merged
am17an merged 1 commit intoJul 30, 2026
Merged
Conversation
Contributor
|
Plus post end to end results for a particular model using |
Contributor
Author
This is a fairly small optimization. Qwen3.6-35B-A3B contains
Run command: |
am17an
approved these changes
Jul 30, 2026
am17an
reviewed
Jul 30, 2026
IMbackK
approved these changes
Jul 30, 2026
roberteg16
force-pushed
the
rogarcia.cuda-mmvf-single-col-swap-pr
branch
from
July 30, 2026 12:44
bf7b90e to
3a14277
Compare
Contributor
Author
am17an
reviewed
Jul 30, 2026
am17an
reviewed
Jul 30, 2026
am17an
reviewed
Jul 30, 2026
roberteg16
force-pushed
the
rogarcia.cuda-mmvf-single-col-swap-pr
branch
from
July 30, 2026 13:13
3a14277 to
a3dbdde
Compare
am17an
reviewed
Jul 30, 2026
When matrix's weights are shaped 1xK is leverage a transpose-free computation to use mat_mul_vec_f.
roberteg16
force-pushed
the
rogarcia.cuda-mmvf-single-col-swap-pr
branch
from
July 30, 2026 13:25
a3dbdde to
dcc71fd
Compare
am17an
approved these changes
Jul 30, 2026
huaxel
pushed a commit
to huaxel/strix-llama.cpp
that referenced
this pull request
Aug 2, 2026
When matrix's weights are shaped 1xK is leverage a transpose-free computation to use mat_mul_vec_f.
satindergrewal
pushed a commit
to satindergrewal/llama.cpp
that referenced
this pull request
Aug 12, 2026
When matrix's weights are shaped 1xK is leverage a transpose-free computation to use mat_mul_vec_f.
thecodacus
pushed a commit
to thecodacus/llama.cpp
that referenced
this pull request
Sep 7, 2026
When matrix's weights are shaped 1xK is leverage a transpose-free computation to use mat_mul_vec_f.
zbrad
pushed a commit
to zbrad/llama.cpp
that referenced
this pull request
Sep 10, 2026
When matrix's weights are shaped 1xK is leverage a transpose-free computation to use mat_mul_vec_f.
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
A mul_mat of a single-column f32 weight (ne01 == 1) against a wide activation (ne11 > MMVF_MAX_BATCH_SIZE) currently misses the in-house mmvf vector kernel and falls back to an f32 cuBLAS/rocBLAS GEMM.
This opportunity was found in model Qwen3.6-35B-A3B (also applicable to Qwen3.5, since they share same arch) with quantization scheme Q4_K_M. It can be found in the shared-expert gate of the model.
Measured improvement on GFX1151 (Qwen3.6-35B-A3B, prefill pp128)
Cijk_…MT32x32x8Sgemmmul_mat_vec_f(mmvf)Requirements