Valve Developer Contributes Major Improvement To RADV Vulkan For Llama.cpp AI

Written by Michael Larabel in AI on 16 October 2025 at 08:42 PM EDT. 20 Comments
AI
Valve's Linux graphics driver team contributions aren't limited to just enhancing the rasterization and ray-tracing graphics performance of the open-source Linux GPU drivers for gaming. Beyond other interesting contributions from that talented group of open-source Linux graphics developers over the years and for other areas like enhancing old GPU hardware support, merged this week for the Radeon Vulkan "RADV" driver is a massive improvement to benefit the Llama.cpp AI performance.

Rhys Perry of Valve's Linux graphics team who specializes on the RADV Radeon Vulkan driver and ACO compiler has contributed a significant improvement to further enhance the Vulkan-backend performance of Llama.cpp AI inferencing on AMD Radeon hardware.

Opened last week was the merge request radv: use CU mode when LDS is used. While that alone isn't enough to excite end-user interest, the merge request message was simply:
"This improves performance of llama.cpp."

Okay... But no additional context to the performance improvement for Llama.cpp.

Fortunately, thanks to Adriano Martins, is some additional insight and ends up making this merge extremely interesting. Adriano commented:
"this makes radv now fly past amdvlk and rocm with llama.cpp, albeit for prompt processing only"

Not only is the RADV for Llama.cpp past processing faster than the official (former) AMDVLK Vulkan driver but also ROCm.

Faster Llama.cpp on RADV


Pretty great results going from around 3586 tokens/s with Llama 7B Q4 to around 4046 tokens/s with these patches for pp512. Or around a 13% improvement from these three patches at least for Llama 7B.

LLama.cpp with Vulkan was already performing well on Radeon GPUs while now should be even better.

This merge happened just in time for making it into next month's Mesa 25.3 stable release.

Valve's open-source developers/contractors do amazing work for the Linux software ecosystem beyond just gaming as we've shown many times over the past few years.

New Llama.cpp benchmarks on Phoronix soon.
Related News
About The Author

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week