# llama.cpp patches took one AMD R9700 from 35 to 55 tokens a second

**Summary:** On one AMD R9700, llama.cpp patches raised text generation from about 35 to 55 tokens per second and nearly doubled prompt processing. The gains depend on the setup.

- Canonical: https://markhuang.ai/news/amd-r9700-llama-cpp-rdna-boosts
- Language: en
- Author: [Mark Huang](https://markhuang.ai/about)
- Published: 2026-11-26
- Section: News
- Tags: llama.cpp, AMD Radeon, Local AI, Inference Benchmarks
- Source: [devnull.land](https://devnull.land/amd-specific-llama-cpp)
- License: https://creativecommons.org/licenses/by-nc/4.0/

---

![An open external graphics card enclosure connected by a short cable to a laptop](https://cdn.markhuang.ai/news/amd-r9700-llama-cpp-rdna-boosts/hero.webp)

*The devnull.land test used an AMD R9700 connected externally to a laptop. This imagegen illustration depicts that kind of setup, not the actual test hardware.*

In a [devnull.land test](https://devnull.land/amd-specific-llama-cpp), an AMD R9700 plugged into a laptop went from writing about 35 tokens a second to about 55. It also went from processing about 700 tokens of input a second to about 1,300. Tokens are the chunks of text a language model reads and writes. The author got both gains on the same card by running a patched build of llama.cpp, the software that runs the model locally.

I'd pay more attention to the input speed if I were feeding a local model a long document. Before there's any answer to stream, the model has to process the text you gave it. In this test, the patched build sped up that part by more than it sped up writing the reply. If your usual prompt is a couple of sentences and you ask for a long answer, the generation gain is more likely to be the one you feel.

## The wait before the first word

[llama.cpp's own benchmark documentation](https://github.com/ggml-org/llama.cpp/tree/master/tools/llama-bench) separates prompt processing, also called prefill, from text generation. At the rates devnull.land reported, a fresh 7,000-token input would take about 10 seconds to process at the old rate and a little over five at the new one, if those rates held. That's arithmetic, not a measured time to first token. It also assumes the software has to process the whole input from scratch.

That last condition matters in a chat. In [a separate set of local inference tests](https://www.damiansromek.pl/en/tech/blog/local-llm-benchmarks-r9700/), Damian Sromek saw a much shorter wait for the first token on a follow-up when the engine could reuse most of the work from the previous request. If your own setup already does that, a fresh-document benchmark tells you more about the first turn than the fifth.

## Why the build matters

[llama-cpp-rdna-boosts](https://github.com/stew675/llama-cpp-rdna-boosts) publishes a set of changes for a specific revision of llama.cpp. The project documents which AMD graphics chip families it targets and which code changes each release carries. The model in the devnull.land test was [Swift 1.5 Qwen3.8-27B](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-27B-GGUF) in its Q6\_K\_L variant, with multi-token prediction enabled. The write-up measures the patched build as a package. It doesn't show which individual changes earned the speedup or compare answer quality.

There's a useful comparison in the [project's issue tracker](https://github.com/stew675/llama-cpp-rdna-boosts/issues/367). An RX 6700 XT owner initially reported slower results with the patches. After a fix and some settings changes, the owner reported that generation on one Qwen test roughly matched unpatched llama.cpp. That's a different card and setup, not a retest of the R9700 result. It does show why I'd keep a working build around while trying the patched one.

If you already run llama.cpp on a supported AMD card, try the two builds with the same model file and a prompt you use often. Keep the model settings comparable and note how long it takes for the reply to begin as well as how long it takes to finish. The R9700 result is a reason to test the card you have before shopping for a new one.
