llama-cpp-rdna-boosts
A set of AMD RDNA/HIP performance patches applied on a pinned llama.cpp commit, with prebuilt ROCm container images.
At a Glance
MIT-licensed RDNA patch set for llama.cpp, free to use, modify and distribute; includes a prebuilt ROCm container image.
Engagement
Available On
Alternatives
Listed Dec 2026
About llama-cpp-rdna-boosts
llama-cpp-rdna-boosts is a patch collection by stew675 that adds AMD RDNA-specific performance work to llama.cpp. It is the upstream llama.cpp at a pinned commit plus 19 default patches, re-cut onto each new upstream base, and it is published under the MIT license. Prebuilt ROCm container images are available for users who do not want to build from source.
What It Is
The project is not a divergent fork. It is a linear series of git am patch blocks applied to a clean llama.cpp checkout, or alternatively available as an rdna-boosts branch. The patches target RDNA3, RDNA3.5 and RDNA4 GPUs through HIP/ROCm, with RDNA2 (gfx1030) best effort and Instinct (CDNA) parts compiled but not validated. The README says RDNA4 sees the most benefit.
What the Patches Add
The README describes RDNA-tuned versions of existing llama.cpp features and a few new capabilities:
- MTP decode with adaptive draft depth
- chunked gated-delta-net prefill
- BF16 KV cache and WMMA flash attention
- fused MoE and k-quant decode paths
- a hybrid all-reduce
- qwen4exp support
- ternary (TQ1_0/TQ2_0) weights on the GPU
- an opt-in streamed KV cache
- a UMA expert store and a host-expert pool for models larger than VRAM
- a server with prompt admission policies
The README states that everything the delivery adds is default-on, so no environment variables should be needed.
Setup Path
There are three ways to get it: apply the patches with scripts/apply-all.sh, clone the rdna-boosts branch of the author's llama.cpp fork and build as usual, or run the prebuilt ROCm image from ghcr.io/stew675/llama-cpp-rdna-boosts. A third-party blog post describes running the image under Podman with /dev/kfd and /dev/dri passed through. The author of that post reported, on an AMD R9700 with an MTP-enabled Q6_K_L 27B model, prefill rising from about 700 to 1300 tokens per second and generation from about 35 to 55 tokens per second. The post notes that results may vary.
Tradeoffs to Know
Because the patches sit on a pinned base rather than upstream master, users re-apply them at each new base or follow the branch. Block 03's chunked Gated DeltaNet kernels remain Apache-2.0 while the rest follows llama.cpp's MIT license.
Collections
Popular collections
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- Black Friday 2026: Learn with AI
Collection by @evtuff
Add llama-cpp-rdna-boosts to one of your collections.
Community Discussions
Be the first to start a conversation about llama-cpp-rdna-boosts
Share your experience with llama-cpp-rdna-boosts, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
MIT-licensed RDNA patch set for llama.cpp, free to use, modify and distribute; includes a prebuilt ROCm container image.
- MIT License covers the repository
- 19 default RDNA-targeted patches on pinned llama.cpp base
- Prebuilt ROCm image: ghcr.io/stew675/llama-cpp-rdna-boosts
- Block 03 includes Apache-2.0 attribution for libr4d-derived GDN kernels (NOTICE)
Capabilities
Key Features
- 19 default patches on a pinned llama.cpp commit
- Support for RDNA3, RDNA3.5 and RDNA4 GPUs via HIP/ROCm
- WMMA flash attention and BF16 KV cache
- Chunked gated-delta-net prefill
- MTP decode with adaptive draft depth
- Fused MoE and k-quant decode paths
- Hybrid HIP all-reduce
- qwen4exp (Qwen3.8-Flash-Next) support
- Ternary TQ1_0/TQ2_0 weights on the GPU
- Opt-in streamed KV cache
- UMA expert store and host-expert pool
- Server prompt admission policy
- Prebuilt ROCm container images
- Optional patch blocks for two-lane prefill and mixed K/V cache types
