Repository navigation
Conversation
|
I noticed the issue too where I'm making Q5_K support and testing https://huggingface.co/unsloth/Qwen3.5-4B-GGUF, the @max-krasnyansky do you agree with this PR? @w1049 need rebase again. I had already verified it using the same method before, but I found this PR and the issue, so I didn't open a new PR. |
Yeah, the current approach is probably a bit special-cased. I’m wondering if the better solution is to handle broadcasting properly. |
|
@w1049 please check out the MUL_MAT updates in the master. |
Overview
This PR allows the Hexagon backend to handle a safe subset of quantized
MUL_MATcases with broadcastedsrc1dimensions by flattening contiguous rows into a single 2D matrix. The existing HVX 2D matmul kernel already handled this layout, but the backend previously rejected these shapes, causing operations such as Qwen3.5's multi-sequencessm_outprojection to fall back to the CPU. It also updates the HMX path to support the flattened layout.Fixes #26094
Additional information
Performance
Performance results for Qwen3.5-2B-Q4_0 using
llama-batched-bench:PP512 details
TG64 details
Graph splits
By keeping more operators on the HTP, the number of graph splits is reduced:
(but still a large number)
Details
Requirements