AMD RDNA llama.cpp Fork: 1,300 tok/s Prefill & ROCm Container Serving

llama-cpp-rdna-boosts (`ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1`) applies a focused AMD RDNA optimization patchset onto a pinned upstream `llama.cpp` commit. On an AMD R9700 eGPU running Qwen3.8-27B (`Q6_K_L`) with MTP enabled, it lifts prefill from 700 to 1,300 tok/s and decode from 35 to 55 tok/s without altering MoE routing accuracy.
AMD RDNA llama.cpp Fork: 1,300 tok/s Prefill & ROCm Container Serving: llama-cpp-rdna-boosts (`ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1`) applies a focused AMD RDNA optimization patchset onto a pinned upstream `llama.cpp` commit. On an AMD R9700 eGPU running Qwen3.8-27B (`Q6_K_L`) with MTP enabled, it lifts prefill from 700 to 1,300 tok/s and decode from 35 to 55 tok/s without altering MoE routing accuracy. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- 1.86x Prefill & 1.57x Decode Speedup: Raises `ukisai/Swift-1.5-Qwen3.8-27B-GGUF` (`Q6_K_L` + MTP) from ~700 to ~1,300 t/s prefill and ~35 to ~55 t/s generation on an AMD R9700 eGPU.
- Zero Quality-Degrading Routing Tricks: Unlike aggressive custom engines that bias toward VRAM-resident MoE experts, `rdna-boosts` improves hardware kernel efficiency without altering model math.
- Minimal Patchset Rebased on Upstream: Tracks pinned `llama.cpp` commits cleanly, avoiding the multi-gigabyte build complexity of `vllm-radiance` on single-GPU developer boxes.
- Rootless Podman ROCm Container: Ships pre-built `server-rocm-10.1` images requiring only `/dev/kfd` and `/dev/dri` passthrough.
import { createAgent } from '@smoke-monkey/harness';const amdLocalAgent = createAgent({agentId: 'amd-rdna-local-coder',provider: 'custom',baseUrl: 'http://127.0.0.1:8080/v1',model: 'ukisai/Swift-1.5-Qwen3.8-27B-GGUF',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},sampling: {temperature: 0.2,maxTokens: 4096,},});async function runLocalRefactor() {const res = await amdLocalAgent.run('Profile src/inference/tokenizer.ts and optimize the hot loop without adding external npm dependencies.');console.log('AMD Local Inference Result:', res.summary);}runLocalRefactor().catch(console.error);
Watch: Related Video Guides
The easiest way to run LLMs locally on your GPU - llama.cpp Vulkan
Episode 4: llama.cpp With Vulkan on Old AMD GPUs (No ROCm Needed)
What Is llama-cpp-rdna-boosts? Hardware-Targeted Patches Over Generalist Engines
llama-cpp-rdna-boosts is an AMD-optimized patchset applied against a pinned upstream llama.cpp commit and distributed as ready-to-run ROCm 10.1 container images (ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1). It accelerates prompt prefill and autoregressive token generation on AMD RDNA GPUs while preserving exact upstream quantization and MoE routing semantics.
In November 2026, specialized inference forks such as Strata, Basalt, RustingStrata, and vllm-radiance proliferated to bypass generalist bottlenecks. However, several speed-focused forks achieved headline tokens/sec on 16GB cards by quietly changing routing behavior—preferring MoE experts already resident in VRAM instead of swapping spilled experts from system RAM. llama-cpp-rdna-boosts avoids algorithmic shortcuts and keeps changes isolated to an auditable patch series.
R9700 eGPU Benchmarks & Engine Tradeoff Matrix
Benchmarked on an AMD Radeon R9700 connected over eGPU running ukisai/Swift-1.5-Qwen3.8-27B-GGUF (Q6_K_L quantization) with Multi-Token Prediction (MTP) enabled, llama-cpp-rdna-boosts nearly doubles prefill throughput—the primary bottleneck in long-context coding agents.
| Metric / Engine | Baseline llama.cpp | llama-cpp-rdna-boosts | vllm-radiance | Strata / Custom Forks |
|---|---|---|---|---|
| Prefill Throughput (27B Q6_K_L) | ~700 tok/s | ~1,300 tok/s (+86%) | High (multi-GPU focus) | Fast (model-specific) |
| Decode Speed (27B Q6_K_L + MTP) | ~35 tok/s | ~55 tok/s (+57%) | Heavy single-node overhead | Biases VRAM experts |
| Routing Fidelity | Exact upstream | Exact upstream | Exact vLLM | Altered expert selection |
| Single-Machine Setup | Simple | Single Podman image | Onerous ROCm build | Bespoke binaries |
For coding agents that re-send 20K–60K tokens of repository context and tool outputs every turn, jumping from 700 to 1,300 tok/s prefill cuts inter-turn wait time roughly in half.
Watch Out for Expert-Bias Speed Hacks
When evaluating unofficial inference forks, verify whether the engine forces MoE routers to favor VRAM-cached experts over system-RAM experts—a shortcut that inflates tokens/sec at the expense of reasoning accuracy.
Running the Pre-Built ROCm 10.1 Container via Podman
Using the published OCI image avoids compiling ROCm HIP toolchains on your host workstation. Mount your GGUF directory and pass /dev/kfd and /dev/dri directly into a sandboxed Podman container.
# Pull pre-built ROCm 10.1 server image
podman pull ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1
# Launch OpenAI-compatible server on AMD GPU
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 \
-m /models/Swift-1.5-Qwen3.8-27B-Q6_K_L.gguf \
--port 8080 -ngl 99 -c 32768Connecting AMD ROCm Local Endpoints to Smoke Monkey Harness
Pointing Smoke Monkey Harness at http://127.0.0.1:8080/v1 with provider: 'custom' lets AMD RDNA workstation developers run autonomous AST editing, test execution, and git verification loops locally with zero API spend and zero cloud data egress.
Frequently Asked Questions
Q:How much faster is llama-cpp-rdna-boosts compared to upstream llama.cpp?
In benchmark testing on an AMD R9700 eGPU running Qwen3.8-27B (`Q6_K_L`) with MTP enabled, prefill speed rose from ~700 tok/s to ~1,300 tok/s and token generation rose from ~35 tok/s to ~55 tok/s.
Q:Does llama-cpp-rdna-boosts alter MoE expert routing like Strata?
No. Unlike custom engines that prioritize experts resident in VRAM to boost raw tokens/sec, `llama-cpp-rdna-boosts` applies hardware-targeted patches onto a pinned `llama.cpp` commit while preserving exact model math.
Q:Do I need to install the full ROCm SDK on my host OS to run it?
No. You can pull `ghcr.io/stew675/llama-cpp-rdna-boosts:server-rocm-10.1` with Podman and pass `--device /dev/kfd --device /dev/dri --group-add video` from a standard Linux kernel with amdgpu.
Q:Why choose llama-cpp-rdna-boosts over vllm-radiance on a single machine?
`vllm-radiance` requires complex custom ROCm builds and carries datacenter serving overhead designed for multi-user clusters, whereas `llama-cpp-rdna-boosts` ships as a lean single-user Podman container.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.