Skip to content

Eval bug: Running Qwen3.5-35B-A3B on CUDA backend is 35% slower than Qwen3-30B-A3B. #19894

Description

@lingyezhixing

Name and Version

ggml_cuda_init: found 2 CUDA devices:
Device 0: NVIDIA GeForce RTX 4060 Laptop GPU, compute capability 8.9, VMM: yes
Device 1: Tesla V100-SXM2-32GB, compute capability 7.0, VMM: yes
load_backend: loaded CUDA backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-cuda.dll
load_backend: loaded RPC backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-rpc.dll
load_backend: loaded CPU backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-cpu-zen4.dll
version: 8149 (a96a112)
built with Clang 19.1.5 for Windows x86_64

Operating systems

Windows

GGML backends

CUDA

Hardware

AMD R9 7940H
RTX4060 Laptop
V100-32G-SXM2 <- by setting CUDA_VISIBLE_DEVICES=1 to run the model here

Models

Qwen3-30B-A3B-Thinking-2507-UD-Q5_K_XL.gguf
Qwen3.5-35B-A3B-UD-Q5_K_XL.gguf

Problem description & steps to reproduce

Shouldn't the linear attention of Qwen3.5 run faster? Why is it slower now? Moreover, it has been observed during use that generation involves at least two CPU cores approaching full load, which indicates that llama.cpp's support for this architecture is still insufficient, requiring a fallback to the CPU path?

First Bad Commit

No response

Relevant log output

Logs
E:\models\LLM\GGUF>"D:\LLM\LLM-Manager\backend\llama.cpp\llama-bench.exe" -m Qwen3-30B-A3B-Thinking-2507-UD-Q5_K_XL.gguf
ggml_cuda_init: found 1 CUDA devices:
  Device 0: Tesla V100-SXM2-32GB, compute capability 7.0, VMM: yes
load_backend: loaded CUDA backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-cuda.dll
load_backend: loaded RPC backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-rpc.dll
load_backend: loaded CPU backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-cpu-zen4.dll
| model                          |       size |     params | backend    | ngl |            test |                  t/s |
| ------------------------------ | ---------: | ---------: | ---------- | --: | --------------: | -------------------: |
| qwen3moe 30B.A3B Q5_K - Medium |  20.27 GiB |    30.53 B | CUDA       |  99 |           pp512 |       735.81 ± 13.51 |
| qwen3moe 30B.A3B Q5_K - Medium |  20.27 GiB |    30.53 B | CUDA       |  99 |           tg128 |         59.02 ± 0.36 |

build: a96a1120b (8149)

E:\models\LLM\GGUF>"D:\LLM\LLM-Manager\backend\llama.cpp\llama-bench.exe" -m Qwen3.5-35B-A3B-UD-Q5_K_XL.gguf
ggml_cuda_init: found 1 CUDA devices:
  Device 0: Tesla V100-SXM2-32GB, compute capability 7.0, VMM: yes
load_backend: loaded CUDA backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-cuda.dll
load_backend: loaded RPC backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-rpc.dll
load_backend: loaded CPU backend from D:\LLM\LLM-Manager\backend\llama.cpp\ggml-cpu-zen4.dll
| model                          |       size |     params | backend    | ngl |            test |                  t/s |
| ------------------------------ | ---------: | ---------: | ---------- | --: | --------------: | -------------------: |
| qwen35moe ?B Q5_K - Medium     |  23.02 GiB |    34.66 B | CUDA       |  99 |           pp512 |        570.31 ± 5.38 |
| qwen35moe ?B Q5_K - Medium     |  23.02 GiB |    34.66 B | CUDA       |  99 |           tg128 |         38.36 ± 0.13 |

build: a96a1120b (8149)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions