How much faster is b13017 across both tested AMD GPUs?
PR #33800 pairs two optimizations: extending Vulkan’s flash-attention flip shader to head widths divisible by 8 plus partial key-value tiles (fixing Qwen4’s head size 72 fallback), and adding a faster fp16 matrix multiply for vision shapes that previously ran roughly half as fast as ROCm.
| GPU and model (Q8_0 projector) | Before | Attention fix | b13017 (both) | ROCm | Speedup |
|---|---|---|---|---|---|
| Radeon 8060S, Qwen4-35B-A3B | 2.00 s | 1.44 s | 1.11 s | 1.08 s | 1.81x |
| Radeon AI PRO R9700, Qwen4-35B-A3B | 0.51 s | 0.29 s | 0.26 s | 0.31 s | 1.92x |
| Radeon 8060S, Qwen3.8-27B | 1.75 s | 1.44 s | 1.14 s | 1.08 s | 1.54x |
| Radeon AI PRO R9700, Qwen3.8-27B | 0.53 s | 0.31 s | 0.28 s | 0.32 s | 1.89x |
PR #33800 measures one 1120x1600 RGB image (1,750 image tokens) in microseconds on mtmd_encode_chunk (for example, 2,002,800 us before versus 1,105,712 us after on Radeon 8060S with Qwen4-35B-A3B). Values above round to two decimals, and speedups divide exact microsecond readings. Driver version and operating system were not stated in the PR.
On the Radeon 8060S, the attention fix alone removes 28.1% of encoding latency, and the fp16 matmul patch deepens the total cut to 44.8%. Vulkan ends just 2.3% slower than ROCm on Qwen4-35B-A3B and 5.4% slower on Qwen3.8-27B. On the discrete R9700, Vulkan flips the standings outright: ROCm takes 18.9% longer on Qwen4-35B-A3B and 13.3% longer on Qwen3.8-27B.
What changed inside the single attention microbenchmark?
Isolating the Qwen4-35B-A3B flash-attention kernel shows Vulkan passing ROCm on both GPUs.
| GPU (Qwen4-35B-A3B encoder shape) | Before | After (b13017) | ROCm | Speedup |
|---|---|---|---|---|
| Radeon 8060S | 33.5 ms | 19.8 ms | 22.1 ms | 1.69x |
| Radeon AI PRO R9700 | 11.8 ms | 3.7 ms | 5.7 ms | 3.16x |
Exact PR #33800 microbenchmark readings are 33,456 to 19,840 us versus 22,148 us on ROCm for the 8060S (ROCm 11.6% longer), and 11,770 to 3,727 us versus 5,744 us on ROCm for the R9700 (ROCm 54% longer).
What does the speedup save across 100 scanned pages?
Translating per-image latency into image tokens per second and 100-page batch totals shows the wall-clock impact for document OCR and screenshot pipelines.
| GPU and metric (Qwen4-35B-A3B) | Before | b13017 Vulkan | ROCm |
|---|---|---|---|
| Radeon 8060S: image tokens/sec | 873.8 | 1,582.7 | 1,618.8 |
| Radeon 8060S: 100 pages (encoder only) | 200.3 s | 110.6 s | 108.1 s |
| Radeon AI PRO R9700: image tokens/sec | 3,455.1 | 6,625.8 | 5,572.9 |
| Radeon AI PRO R9700: 100 pages (encoder only) | 50.7 s | 26.4 s | 31.4 s |
Calculated from 1,750 image tokens divided by PR #33800 per-image timings; 100-page totals multiply single-image encoding time by 100, excluding prompt prefill and text generation.
End-to-end savings depend on how heavily images weigh in the prompt. In GitHub issue #33759 (filed December 5 by sigmaSd on an RX 7600 XT under Linux Mesa 26.2.7 RADV across 7,000 patches and 27 layers), image encoding took 1.97 seconds of a 6.32-second prompt (31%), versus 1.17 seconds on HIP (ROCm). Manual attention padding cut the encoder to 1.21 seconds and total prompt latency to 5.62 to 5.85 seconds (against 5.61 seconds on HIP). Merged b13017 timings on the RX 7600 XT are not yet published.
Which AMD hardware benefits most, and how do you get b13017?
| Hardware setup | Impact of llama.cpp b13017 |
|---|---|
| Strix Halo mini PC (Radeon 8060S), Vulkan | 1.81x faster Qwen4 vision encoding, within 2.3% of ROCm |
| Radeon AI PRO R9700, Vulkan | 1.89x to 1.92x faster, beating ROCm on both tested models |
| Other RDNA3 and RDNA4 Radeon GPUs | Targeted by the shader changes; not individually timed in PR #33800 |
| NVIDIA and Intel GPUs on Vulkan | No benchmark data posted in PR #33800 |
| Text-only LLM chat | No speedup claimed |
On a 128GB Strix Halo box such as the GEEKOM A9 Mega 128GB ($3,649.99 at Best Buy, Dec 4; also check Amazon availability (paid link)), the entire 32.9GB Qwen4-35B-A3B Q4_K_M checkpoint and its 614MB vision projector stay loaded together. On desktops, the lowest-priced 16GB Radeon in Tom’s Hardware’s December 3 tracker was the RX 9060 XT 16GB at $739 (check Amazon listings (paid link)), an RDNA4 card targeted by b13017 though untimed in the PR.
Tag b13017 (commit f5e106b) shipped December 5 at 12:00 PM ET, reviewed by jeffbolznv and merged by ggerganov (author 0cc4m answered yes to llama.cpp’s AI usage disclosure). Immediately after tagging, only source archives appeared under the release; build from source or download any later prebuilt binary. Compare hardware scores on the Benchmarks Leaderboard, track live prices on Hot Deals, or plan a Strix Halo box in the PC and Local AI Builder.
The verdict
- Strix Halo and Radeon vision users: Upgrade to llama.cpp b13017 or newer immediately. A free 1.54x to 1.92x speedup on image and scanned-page encoding narrows Radeon 8060S Vulkan latency to within 2.3% of ROCm and puts the R9700 ahead of ROCm outright.
- Windows users avoiding ROCm: Vulkan now runs essentially at parity with ROCm for Qwen4 vision ingestion on Strix Halo, removing a major reason to dual-boot Linux strictly for multimodal document workloads.
The catch: These timings are self-reported by the PR author across two GPUs with no driver version or operating system listed, other RDNA3/RDNA4 cards remain untimed, and text token generation speed is unchanged.
Quick answers
How much faster is llama.cpp b13017 on Strix Halo (Radeon 8060S)?
On a 1120x1600 page with Qwen4-35B-A3B (Q8_0 projector), Vulkan encoding drops from 2.00 seconds to 1.11 seconds, a 1.81x speedup (44.8% time cut) that lands within 2.3% of ROCm’s 1.08 seconds.
Does Vulkan now beat ROCm on the Radeon AI PRO R9700?
Yes in PR #33800’s vision encoder timings: Vulkan completes Qwen4-35B-A3B in 0.26 seconds versus 0.31 seconds for ROCm (ROCm takes 18.9% longer) and Qwen3.8-27B in 0.28 seconds versus 0.32 seconds.
Why was Qwen4 vision encoding slow on AMD Vulkan before b13017?
Qwen4’s vision encoder uses an attention head width of 72, which is not divisible by 16. Vulkan’s flash-attention flip shader previously fell back to a slower kernel, compounded by an unoptimized fp16 matrix multiply for vision shapes.
Does llama.cpp b13017 speed up text-only LLM generation?
No. PR #33800 optimizes only the vision encoder’s flash-attention and fp16 matrix-multiply paths; text generation speed is unaffected.