### Name and Version . ### Operating systems Linux ### Which llama.cpp modules do you know to be affected? _No response_ ### Command line ```shell ``` ### Problem description & steps to reproduce Regression point a5251ca11d2317d93a7b6da4217483f4e83beb3d (#17996). before: ``` ./build/bin/llama-bench --threads 12 --device none --model qwen3_next_80b_a3b_instruct-iq4_nl.gguf | model | size | params | backend | ngl | dev | test | t/s | | ------------------------------ | ---------: | ---------: | ---------- | --: | ------------ | --------------: | -------------------: | | qwen3next 80B.A3B IQ4_NL - 4.5 bpw | 41.98 GiB | 79.67 B | CUDA | 99 | none | pp512 | 64.40 ± 3.75 | | qwen3next 80B.A3B IQ4_NL - 4.5 bpw | 41.98 GiB | 79.67 B | CUDA | 99 | none | tg128 | 6.65 ± 0.01 | build: fb644247d (7431) ``` after: ``` ./build/bin/llama-bench --threads 12 --device none --model qwen3_next_80b_a3b_instruct-iq4_nl.gguf | model | size | params | backend | ngl | dev | test | t/s | | ------------------------------ | ---------: | ---------: | ---------- | --: | ------------ | --------------: | -------------------: | | qwen3next 80B.A3B IQ4_NL - 4.5 bpw | 41.98 GiB | 79.67 B | CUDA | 99 | none | pp512 | 67.14 ± 0.92 | | qwen3next 80B.A3B IQ4_NL - 4.5 bpw | 41.98 GiB | 79.67 B | CUDA | 99 | none | tg128 | 5.02 ± 0.00 | build: a5251ca11 (7432) ``` AMD Ryzen 9 5900X, RAM clocked at 2133 MHz ### First Bad Commit _No response_ ### Relevant log output ```shell ```
Activity
kkontny commentedon Dec 17, 2025
Refactor in #17996 introduced a lot of
GGML_OP_SUM_ROWSops with large sizes,GGML_OP_SUM_ROWSis executed on 1 thread only in GGML.nifgraup commentedon Dec 17, 2025
tg128 speed with
--threads 12is 75% of pre-regression speed as shown above. With--threads 1it is 92%.beginor commentedon Dec 18, 2025
I have tried qwen3-next-80b-a3b-thinking on mac m1 max with both mlx_lm (version: 0.29.1) and llama.cpp (version: 7445), the results are:
With mlx engine, the output speed is about
40 tok/sec, the command I use is:But with llama.cpp engine, the output speed is only about
18 tok/sec, the command I use is:So, I think the generation speed of llama.cpp should still can be optimized.
I have tried qwen3-30b-a3b models before with mlx and llama.cpp, both can get about
40 tok/secoutput.nifgraup commentedon Jan 24, 2026
tg speed is regained with the work in #18792 :