← News
Runtime

llama.cpp b12628 fixes Vulkan SCALE fallback: check where the operators run

Merged November 22, PR #32735 accepts non-contiguous SCALE inputs on Vulkan instead of sending those operations to the CPU. The merge is new; the author's November 21 measurements are not new tests today. AraoAI has not independently reproduced them.

Source: llama.cpp PR与发布说明

On November 22, llama.cpp merged PR #32735, and release b12628 lists the Vulkan change. Slow local inference does not always mean insufficient GPU bandwidth: some operators may be executing on the CPU. Today's event is the upstream merge, not a newly performed benchmark.

  1. Fallback can hide in strided views. The author explains that Inkling 2 applies SiTU SCALE operations to the gate and up halves of a fused gate_up output. Those halves are non-contiguous views. Vulkan's old support check rejected them, so the scheduler sent the operations to the CPU and repeatedly split the computation graph. Loading weights onto a GPU does not establish that every operator executes there.

  2. This changes operator support, not model weights. The shader now uses src0_idx()/dst_idx() to respect strides, and the corresponding contiguity restriction is removed. The author's Radeon AI PRO R9700 report identifies Unsloth's Inkling-2-Mini-UD-Q8_K_XL, before/after commits and llama-bench arguments. Those measurements were published November 21; a November 22 merge does not turn them into fresh measurements.

  3. Follow-up feedback is not AraoAI reproduction. A November 22 comment reports different graph-split counts and speeds and links issue #32785. Its trivial-prompt test is not interchangeable with the author's pp512/tg128 protocol. The author also explicitly says the fix does not address separate CUDA slowness reports.

For diagnosis, retain the actual engine build, exact weight file, backend and launch arguments. Inspect CPU operator fallback and graph splits, then repeat the same input after upgrading. We checked the current PR, comments, merge timestamp and release notes, but have not reproduced the result on our own hardware. This is a specific compatibility fix, not a general speedup promise for AMD GPUs.

Source: https://github.com/ggml-org/llama.cpp/pull/32735 Release: https://github.com/ggml-org/llama.cpp/releases/tag/b12628