What is llama-cpp-rdna-boosts?
llama-cpp-rdna-boosts is a collection of patches that adds AMD-specific performance work to llama.cpp. It sits in the Local Runtimes category of the Models & Inference tools and is open-source, written in Shell and licensed MIT. To get started: apply the patches to llama.cpp.
Overview
llama-cpp-rdna-boosts is a collection of patches that adds AMD-specific performance work to llama.cpp. It is not a separate engine: each release is a linear series of git am commits that you apply to a clean llama.cpp checkout at a pinned upstream commit, the fork point, which is re-based onto newer upstream code over time. Everything in the default set is on without setting any environment variable.
The patches add MTP decode, chunked gated-delta-net prefill, BF16 KV and WMMA flash attention, fused MoE and k-quant decode paths, a hybrid all-reduce for multi-GPU setups, and memory savings in attention that free several GiB of VRAM. Later blocks add a prompt admission policy for llama-server and, on integrated GPUs such as Ryzen AI APUs, a memory tier that lets MoE models larger than RAM stream their experts. Arch selection happens at runtime, so one multi-arch build picks the right path on each card.
The set targets RDNA3 (RX 7900 class), RDNA3.5 (Strix Point and Strix Halo APUs) and RDNA4 (RX 9060 and 9070 class) GPUs; RDNA2 is best-effort and externally validated on a Radeon Pro V620. The README says RDNA4 sees the most benefit. Prebuilt ROCm server, light and full container images are published to GitHub Container Registry for each release, and the project is MIT-licensed.
What it does
- A linear series of default patches for a clean llama.cpp checkout at a pinned fork point, applied with one script
- MTP decode, chunked gated-delta-net prefill, and BF16 KV plus WMMA flash attention
- Fused MoE and k-quant decode paths, plus an expert cache for running MoE models bigger than VRAM on one card
- Attention memory savings that free several GiB of VRAM
- Runtime arch selection across RDNA2, RDNA3, RDNA3.5 and RDNA4 in one build
- Prebuilt ROCm containers on ghcr.io for server, light and full builds
Getting started
You need an AMD RDNA GPU with ROCm. The current fork point and release identity are in the repo's release.json.
Apply the patches to llama.cpp
Clone upstream llama.cpp, check out the fork point the release names, and run the repo's apply script. It creates a branch called rdna-boosts; then build llama.cpp as usual.
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout 919794500
bash <path-to-this-repo>/scripts/apply-all.sh .Or use a prebuilt container
Each release publishes ROCm images such as ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-<version>, plus light and full variants and a latest tag. CONTAINERS.md lists the tags and run options.
Opt in to extras only if needed
Optional and beta artifacts are not part of the default delivery. Add them with --include-optional or --include-beta when you run apply-all.sh.
Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Get faster prefill and token generation from llama.cpp on a Radeon RX 7000 or 9000 series card
- Run large MoE GGUF models on a Strix Halo APU or a single card with less VRAM than the model needs
- Serve local models with llama-server from a ready-made ROCm container
- Skip it on NVIDIA or Apple hardware — the work is specific to AMD RDNA GPUs
How llama-cpp-rdna-boosts compares
llama-cpp-rdna-boosts alongside other open-source local runtimes tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Ollama | ★ 188k | A developer-friendly tool that downloads and runs local LLMs from the terminal with a built-in OpenAI-compatible API. |
| llama.cpp | ★ 136k | A C/C++ inference engine that runs LLMs in the GGUF format on CPUs, Apple Silicon, and GPUs with low memory use. |
| GPT4All | ★ 77.3k | GPT4All is a free desktop app and Python client that runs large language models locally on your own computer, with no API calls or GPU required. |
| Colibrì | ★ 53.6k | A pure-C inference engine that keeps a Mixture-of-Experts model's dense trunk resident in RAM and streams its routed experts from disk, so 744B-2.8T models run on consumer hardware. |
| LocalAI | ★ 50.6k | A self-hosted server that exposes an OpenAI-compatible API for running text, vision, voice, and image models on local hardware. |
| Strata | ★ 48.4k | A one-click Windows and Linux engine that splits the 125B Qwen3.8-Flash-Next across GPU, RAM, CPU and SSD so it runs on a 12 GB gaming card, with OpenAI and Anthropic APIs on localhost. |
| Jan | ★ 46.2k | An open-source desktop app that runs LLMs fully offline as a ChatGPT-style assistant on your own computer. |
| llama-cpp-rdna-boosts | ★ 341 | AMD RDNA speed patches for llama.cpp, applied to a pinned upstream commit |
