Home / use case

Faster local Qwen on an AMD eGPU with the llama-cpp-rdna-boosts patches

At a glance
Hardware
AMD R9700 graphics card over an eGPU interface on a laptop
Models & engines
ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1 image, run with Podman
ukisai/Swift-1.5-Qwen3.8-27B-GGUF (Q6_K_L) with MTP enabled
Key gotcha
Results vary by setup

What they built

The author runs local models on an AMD R9700 connected to a laptop through an eGPU interface, as one machine for one developer. After looking at the wave of new, speed-chasing inference engines, they settled on llama-cpp-rdna-boosts: a minimal set of AMD-specific patches that is re-applied to newer pinned commits of llama.cpp.

They liked that it keeps llama.cpp as a stable, carefully vetted base, has few moving parts to maintain, and documents its changes. Rather than install ROCm libraries themselves, they used the project's pre-built image and run the inference server sandboxed with Podman.

Setup

  • AMD R9700 graphics card over an eGPU interface on a laptop
  • ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1 image, run with Podman
  • ukisai/Swift-1.5-Qwen3.8-27B-GGUF (Q6_K_L) with MTP enabled

How it works

  1. The image runs llama.cpp's inference server with host networking
  2. The container gets the GPU through /dev/kfd and /dev/dri and the video group
  3. Models are mounted from $HOME/models into /models

Results & numbers

  • Prefill went from about 700 to about 1,300 tokens per second
  • Token generation went from about 35 to about 55 tokens per second

Gotchas

  • Results vary by setup
  • The patches' changes are documented, but somewhat opaquely, since they were written with an AI model
  • Upgrading should mean pulling a new image, but the author hasn't tried it yet
  • They also tried vllm-radiance, an AMD-patched vLLM fork, but the build was too onerous and vLLM too heavy for one machine and one developer
“It’s lean, and increased my token generation from 35 to 55 tokens/second, and my prefill from 700 to 1300 tokens per second.”— devnull.land

Do it yourself

  1. Pull the pre-built image with podman pull
  2. Put your GGUF models in ~/models
  3. Run the container with --network=host, --device /dev/kfd, --device /dev/dri and --group-add video, mounting ~/models to /models
  4. Compare prefill and generation speed against your vanilla llama.cpp build
podman pull ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1

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"
Source: devnull.land · Published 2026-11-26 · Added 2026-11-27. This write-up summarizes the original source; see it for full details.

Similar setups

Letting a coding agent tune llama.cpp on an 8 GB AMD GPU: 3x faster prompt reading for OpenCode

Cliff K had his coding agent benchmark llama.cpp backends and flags for a Qwen3.6 35B MoE on a Radeon RX 6600 XT, at the context depths OpenCode really uses, and turned the process into an open-source skill.

Cliff K (DEV Community) · 2026-11-01

Running Inkling 2 Mini on a 12 GB AMD card for a Twitch AI moderator

An applied AI engineer tuned llama.cpp to run Inkling 2 Mini on an RX 6750 XT for his home Twitch moderator project, and found that a shared-KV loop setting was quietly hurting the model's quality.

Reddit r/LocalLLaMA (u/Izento) · 2026-11-29

A local eve agent on a 4B model that keeps its pending approval through kill -9

@VarunChopr17597 ran Vercel's open-source eve 1.1 agent framework against Qwen3.5-4B on llama.cpp on a CPU-only Linux box, with no Vercel account, and tested whether a tool waiting for human approval survives the server being killed.

X (@VarunChopr17597) · 2026-11-20

Two Qwen Code sessions on one Ollama slot waited 46 seconds; a slot each waited one

Tensward ran two Qwen Code sessions against Qwen3.8-27B on a 24 GB L4 and found that sharing one Ollama slot raised the median wait for a response to start from about one second to 46.

Tensward · 2026-11-19