AMD Specific Patches for Llama.cpp

Hacker News by 4 min read 47x views
AMD Specific Patches for Llama.cpp

Share Post

tl;dr — I propose using llama-cpp-rdna-boosts if you have an AMD graphics card. It’s lean, and risen my token generation from 35 to 55 tokens/second, and my prefill from 700 to 1300 tokens per second. YMMV.


As of November 2026, an detonation in the figure of bespoke conclusion engines has taken place. Many of them obtain inspiration from the engines that enabled much of the LLM conclusion up 'til now: llama.cpp, SGLang, vLLM, etc.

The rationale isn’t that those options are bad, but merely that they are generalist engines, optimized for no particular hardware and alongside a concentration on broad compatibility. Others awareness the betterment gait of those engines have slowed down, and alongside the assistance of LLMs, they can move faster on their own.

Some examples of these new conclusion engines* are Strata, Basalt, RustingStrata, etc…

These new forks mostly all have a few things in common:

  1. They concentration on a particular subset of models and/or hardware
  2. They use a frontier example to vibe-code the complete thing
  3. They chase ever-higher token generation speeds

… and the results are stunning! Strata is capable to run a heavily-quantized example of Qwen 3.8 Flash Next, a 180B indicator model, on a 16GB VRAM graphics card, and 16GB scheme RAM, and have it create tokens at a amazingly elevated rate.

In and of itself those three things are not red flags (the second is concerning, of course, but it may be SOP in a year’s period — who knows!), but as these projects have evolved, that relentless chase toward higher token generation speeds has taken an unlucky turn, in that the optimizations are small concerning hardware-specific changes, but additional concerning changing how the example thinks so that it goes brrr faster.

Strata specifically has taken to preferring to study experts loaded in VRAM equal if another experts (pushed to scheme RAM/disk) would have been normally chosen. This is fair one example, but certainly not the last.


That said, I was fortunate to stumble upon yet another project that promised improvements, delivered, and was additional aligned alongside my application betterment philosophy.

Enter llama-cpp-rdna-boosts. It is a repository that contains a minimal set of changes that you use against a pinned commit of llama.cpp. It is in regulation a fork, but one whose changeset is continually re-applied to newer versions of llama.cpp. It contains AMD-specific improvements that drastically enhance prefill and token-generation speeds.

  1. I value llama.cpp’s method to application development. They are a stable basis to branch off from. Contributions are vetted throughly and applied judiciously. ✅
  2. The rdna-boosts repo is a set of small patches that are applied to basis llama.cpp. Fewer moving parts average small things to keep ✅
  3. The changes are (somewhat opaquely, it’s all direct Claudish 😬) outlined in the documentation, ensuring several flat of transparency. ✅

The setup

If you have ROCm libraries installed on your system, you can build the depiction yourself. I didn’t desire to disorder alongside that, so I used the pre-built images published.

podman drag ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1

This sets up an depiction that you can run sandboxed via podman to initiate the conclusion server:

podman run --rm -it \ --network=host \ --device /dev/kfd \ --device /dev/dri \ --group-add video \ -v "$HOME/models:/models" \ "ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1" \ 

My genuine initiate manuscript passes a few additional flags, but those are the crucial lines.

I ideate upgrading would be pulling a new depiction down, although I have not tried this yet.

The numbers

On my setup, an AMD R9700 connected to my laptop via an eGPU interface, this improved prefill and token generation rates whenever operating ukisai/Swift-1.5-Qwen3.8-27B-GGUF (Q6_K_L) alongside MTP enabled:

Before After
Prefill ~700 t/s ~1300 t/s
Token Generation ~35 t/s ~55 t/s

Strata and its ilk were continually promising the moon and it was never apparent what steps they took to create that happen. I’m extremely much looking onward to what the rdna-boosts community arrive up alongside next.

* It’s value noting that between these two groups, vllm-radiance made an appearance, which was a fork of vLLM alongside AMD-specific patches. I tried this too, but the build steps were so onerous and vLLM so overbuilt for my particular use case (1 machine, 1 developer), that I abandoned it and went rear to vanilla llama.cpp

← Back to all posts

Other Article Hacker News
↑
Close Right Ads
Close Left Ads