| I've tried to get better performance out of ROCm on llama.cpp over and over again this year and keep finding that Vulkan is faster. I do run ROCm for qwen 3.8 flash next via strata, but that's the only place I use it. I actually re-tested ROCm vs. vulkan for 7900xtx today when testing out Inkling, making sure the ROCm performance hadn't gotten better since my last update a few weeks ago. Testd via llama.cpp latest as of earlier today, b12600, before applying the patch from parent commenter: - Qwen3.8-27B (Swift-1.5-Qwen3.8-27B-Q4_K_M, MTP on): prefill 762 t/s on Vulkan vs 761 on ROCm, decode 63 vs 52 - Qwen3.6-35B-A3B (Qwen3.6-35B-A3B-MTP-UD-Q4_K_XL): prefill ~2800 on Vulkan vs ~2300 on ROCm, decode 129 vs 115 Also, on many models that I run, ROCm regularly uses .75-1.5 GB more VRAM, which is VRAM I'd gladly spend on more context space instead of burning on overhead. Inkling itself (IQ4_NL) was actually slightly faster on ROCm with llama.cpp main. ~27 on Vulkan vs. ~30 on ROCm. I'm not sure how much of that can be explained by the bug the parent commenter's patch fixes, no clue if ROCm does the non-contiguous SCALE thing correctly or not. But what I can say is that with post-patch Vulkan does ~41 tok/s and ROCm stays ~30, so I think it's a Vulkan specific bug, and that spread does more or less align with what I've seen with other models ROCM vs. Vulkan on this specific card. As a long suffering AMD/ATI GPU owner through all the bad dark years up through today, I'd be very happy to run all of this stuff on ROCm if the numbers were there, but they ain't. If you've got tips for something I'm missing, I'm all ears. |
I found this too, but it's because the default CUDA batch sizes aren't suited to AMD cards. I'm not sure if this will apply to your RDNA3 card, but I wrote this two-line patch which changes only the batch sizes, and that fixed it for my RDNA4 card such that ROCm is faster than Vulkan across the board:
https://github.com/ggml-org/llama.cpp/issues/29820
That said, llama.cpp is not the best option here. The radiance server is amazingly fast, like 50% faster than llama.cpp on my card at least:
https://codeberg.org/StillDeadcode/radiance
Stick with the pre-2.2.0 release, it supports more quantized KV cache types so you can run it in smaller memory footprints.