2.00 Seconds to 1.11 per Page: llama.cpp's Vulkan Fix Puts Strix Halo Within 2.3% of ROCm and the Radeon R9700 Ahead of It
- Get link
- X
- Other Apps
Local AI · Analysis
llama.cpp release b13017 (December 5, 2026) cuts Qwen4-35B-A3B vision encoding from 2.00 seconds to 1.11 seconds per 1120x1600 page on Strix Halo's Radeon 8060S, and drops the Radeon AI PRO R9700 from 0.51 to 0.26 seconds, ahead of AMD's ROCm backend.
By The Benchmarque Staff · · Updated Dec 6, 2026 · 5 min read
As an Amazon Associate we earn from qualifying purchases. Retail links marked (paid link) may earn The Benchmarque a commission at no extra cost to you. Timings come from llama.cpp pull request #33800 (posted by author 0cc4m) and GitHub issue #33759. Speedups, image tokens per second, and 100-page totals are calculated from those published microsecond figures. Mini PC price from Best Buy (December 4); desktop GPU price from Tom's Hardware (December 3).
llama.cpp b13017 Vulkan fix in 4 cards
Radeon 8060S speedup
1.81x
Qwen4-35B-A3B page encoding falls from 2.00s to 1.11s, cutting time by 44.8%.
R9700 beats ROCm
0.26 s
Down from 0.51s (1.92x faster); AMD's ROCm path now takes 18.9% longer at 0.31s.
Strix Halo vs ROCm
2.3% gap
Vulkan narrows its deficit against ROCm on 8060S from 1.85x down to 25 ms.
Scope limitation
Vision only
Speedups apply strictly to image encoding; text token generation is unchanged.
Updating llama.cpp to build b13017 cuts Qwen4-35B-A3B image-encoding time on Strix Halo's Radeon 8060S from 2.00 seconds to 1.11 seconds per 1120x1600 page, bringing Vulkan within 2.3% of ROCm without installing AMD's Linux compute stack. On the Radeon AI PRO R9700, Vulkan drops from 0.51 to 0.26 seconds (1.92x), passing ROCm outright. Before PR #33800, Vulkan's flash-attention kernel fell back to a slow path whenever a vision encoder's head size was not divisible by 16, hitting Qwen4's 72-wide attention heads directly.
How much faster is b13017 across both tested AMD GPUs?
PR #33800 pairs two optimizations: extending the flash-attention flip shader to head widths divisible by 8 plus partial key-value tiles, 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 reports exact microseconds (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; speedups divide exact before-by-after microseconds. Driver version and OS were omitted in the PR.
On the Radeon 8060S, the attention fix alone strips 28.1% off encoding latency, and the fp16 matmul patch deepens the total reduction to 44.8%. Vulkan finishes just 2.3% behind ROCm on Qwen4-35B-A3B and 5.4% behind on Qwen3.8-27B. On the discrete R9700, Vulkan flips the standings completely: ROCm now 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 beating 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 |
Source: PR #33800 microbenchmark (8060S: 33,456 to 19,840 us vs ROCm 22,148 us; R9700: 11,770 to 3,727 us vs ROCm 5,744 us). ROCm runs 11.6% longer on 8060S and 54% longer on R9700 for this single kernel.
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 practical 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 request savings depend on how heavily images dominate your prompt. In GitHub issue #33759 (filed December 5 by sigmaSd on an RX 7600 XT running Linux Mesa 26.2.7 RADV across 7,000 patches and 27 layers), image encoding accounted for 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 have not been posted yet.
Which AMD hardware benefits most, and how do you get b13017?
This release matters most to buyers running large multimodal checkpoints on unified-memory AMD mini PCs where Vulkan avoids ROCm setup friction.
| 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 system like the GEEKOM A9 Mega 128GB ($3,649.99 at Best Buy, Dec 4; also check Amazon availability (paid link)), the full 32.9GB Qwen4-35B-A3B Q4_K_M weights and 614MB vision projector stay resident in memory simultaneously. 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) landed 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 were posted on the GitHub release page; either compile from source or grab any subsequent prebuilt release binary. Compare hardware scores on the Benchmarks Leaderboard, check Hot Deals, or size a Strix Halo workstation 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 is now effectively 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.
Next steps
See this week's mini PC and GPU prices in the Market
In the app: Benchmarks Leaderboard · Hot Deals · PC and Local AI Builder
Read next: Which mini PC can run Qwen4-35B-A3B · DGX Spark versus a 128GB mini PC · Best mini PC at every price
Sources
- llama.cpp PR #33800: vulkan: optimize vision encoder performance on AMD RDNA3/4 github.com
- llama.cpp release b13017 (Dec 5, 2026) github.com
- llama.cpp issue #33759: Vulkan flip flash attention for head sizes not divisible by 16 github.com
- ggml-org: Qwen4-35B-A3B-GGUF file list huggingface.co
- Best Buy GEEKOM A9 Mega 128GB (SKU 6673916, read Dec 4, 2026) bestbuy.com
- Tom's Hardware: lowest GPU prices tracker (updated Dec 3, 2026) tomshardware.com
Comments
Post a Comment