llama.cpp on AMD Radeon in 2026: The Three Routes That Actually Work
Almost every local-LLM guide on the internet assumes you own an NVIDIA card. If you would rather run models on a Radeon — because you already own one, because of the VRAM-per-dollar, or because you have been building your own machines since the days of choosing between S3 and Matrox — you find out quickly that the guide's first line, pip install and a CUDA check, does not describe your machine.
This is the route map I built for my own hardware in mid-2026, recorded as dated notes at the time: what worked, what needed a workaround, and which two Windows settings decide whether the box survives a long inference run. Each route now has its own detail page — this page is the map. It is the companion to the two-PC build article: that article describes the two-box shape, this one covers the AMD-specific plumbing underneath it.
Same rule as every article here: machines are described by class and spec only. No machine names, no addresses — where a command needs one, I use 192.0.2.10, the IETF's documentation address.
The support reality, dated
My notes are dated May and June 2026, on an RX 9060 XT (16 GB, RDNA 4) and an integrated Radeon 760M, plus an RX 9070 on a second box. The state at that time, in one table:
| Route | OS | What it is | State in my notes |
|---|---|---|---|
| A | Windows 11 native | Prebuilt llama.cpp with ROCm 7 acceleration (lemonade-sdk builds) | Works — official AMD ROCm on Windows did not fully support the card; a community build did |
| B | WSL2 (Ubuntu 24.04) | ROCm inside WSL2, bridged to the Windows driver via librocdxg | Works — needs one hand-built bridge library and a port-forwarding decision |
| C | Bare Linux (Ubuntu 26.04) | ROCm 7.2.2 installed from AMD's repos, llama.cpp compiled for your GPU | Works — the cleanest route, and the one where the flags matter |
Update as of November 2026: the picture moved in my favor. AMD's own docs now publish AMD-validated llama.cpp Windows binaries (a package built against ROCm 7.2.1 covering gfx110X, gfx115X and gfx120X), and the lemonade nightly pipeline was at build b1373 (2026-11-11). Check AMD's llama.cpp binaries doc and lemonade before copying anything dated here.
Support status moves monthly; everything in the "state" column was true of my machines on those dates. Verify against AMD's current ROCm support matrix before you rely on the framing — the routes below are what I did, not promises about your May-2027 machine.
Route A — Windows native, via someone else's build
May 2026, condensed: AMD's ROCm on Windows was not fully supporting the RX 9060 XT, but lemonade-sdk published llama.cpp builds with ROCm 7 acceleration for the RDNA 4 family (their gfx120X Windows build, release b1264 then). You unzip the archive into a folder, download a GGUF model, and start the server with every layer on the GPU. It ran — and a mixture-of-experts model fit the 16 GB card by keeping most experts in system RAM with --n-cpu-moe: hot set on the fast device, cold set on the slow one, the same paging logic as a 1990s buffer pool.
Detail page: Route A — the exact dense/MoE commands, the AMD-validated binaries as of November 2026, and the TDR + firewall settings.
Route B — WSL2, with one hand-built bridge
By June 2026 the official position was still "RX 9060 XT on Windows ROCm: unsupported" — but ROCm inside WSL2 Ubuntu 24.04 worked against the Windows AMD driver through AMD's librocdxg, built inside WSL against the Windows SDK headers mounted at /mnt/c. The proof before debugging llama.cpp: /dev/dxg exists and rocminfo lists the card. Two gotchas, both network-shaped: a customized .wslconfig (mirrored networking) broke outbound access, and plain NAT then hides the server from your LAN unless you add a netsh port-forward.
Detail page: Route B — the bridge build, the detection switches, the .wslconfig trap and the portproxy fix.
Route C — bare Ubuntu, where the flags matter
The second box runs Ubuntu 26.04 directly. On a fresh or previously-broken ROCm install, order matters: purge until dkms status prints nothing, install ROCm 7.2.2 with amdgpu-install, pin AMD's repos at priority 600, then compile llama.cpp for your exact cards (gfx1103 for the 760M iGPU, gfx1200 for the RX 9070). No third-party binaries, no overrides — and two traps: a libxml2 SONAME symlink, and never set HSA_OVERRIDE_GFX_VERSION on a card you compiled natively.
Detail page: Route C — the purge checklist, the cmake flags, the three notes from the trenches.
What I actually run today: Strata + Hermes on three machines
Routes A, B and C answer "how do I get llama.cpp running on AMD." What runs on my desks now is one level up: Strata — a free, open-source inference engine for the Qwen3.8-Flash-Next family on consumer NVIDIA/AMD cards (RTX 20-series and up, RX 7000/9000 and up; its docs state 12 GB+ VRAM, 32 GB+ system RAM), with a one-click Windows/Linux installer and an OpenAI- and Anthropic-compatible API on http://127.0.0.1:8080/v1. The honest summary of the install: if you follow the installer correctly it is genuinely one step, and the only settings work was a firewall rule so the LAN could reach port 8080 on the private profile. The honest caveat: these models are RAM-hungry — the boxes carry more system RAM than a typical desktop.
The shape I settled on (notes dated 2026-11-11):
| Machine | Hardware (class only) | Runs | Job |
|---|---|---|---|
| PC1 | desktop · RX 9070 XT | Strata server — main model | chat + coding inference |
| PC2 | desktop · RX 9060 XT | Strata server — compression model | context compression only |
| PC3 | NUC-class mini PC (integrated graphics) | Hermes Desktop + agent, MCP, tools | never runs inference |
Why split inference from the agent — and split compression onto its own GPU: a long session's context-compression step no longer steals the main model's card mid-conversation, and the little agent box stays responsive no matter how hard inference works. The detail page covers the install, the firewall rule, the Hermes provider YAML (two custom providers, API keys in .env, auxiliary.compression routed to PC2), the hermes doctor verification — and the time I deleted a provider by mistake during a config edit and got it back.
Detail page: The three-machine Strata + Hermes setup — from installer to verification.
Which route for which job
- Windows daily driver, want the least setup: Route A — least setup, but a third-party binary unless you use AMD's validated builds.
- The box must stay a Windows desktop and serve models to the LAN: Route B, with the port-forward decision made consciously.
- A dedicated box, or you can run Linux: Route C — most stable, auditable, easiest to debug.
- You want a managed agent stack instead of raw llama.cpp: the Strata + Hermes setup above. It replaced raw llama.cpp serving on my boxes; the three routes stay useful for models Strata does not package.
Summary
- AMD ROCm on Windows for RDNA 4 was not officially complete in mid-2026; three routes actually ran on my machines: prebuilt community Windows builds, WSL2 with a hand-built librocdxg bridge, bare Ubuntu 26.04 with ROCm 7.2.2.
- By November 2026 AMD itself published validated llama.cpp Windows binaries for gfx110X/gfx115X/gfx120X — re-check before building anything.
- MoE models fit 16 GB VRAM via
--n-cpu-moe— hot experts in VRAM, cold experts in RAM. - Windows needs the TDR delay raised (
TdrDelay/TdrDdiDelay= 60) or the driver resets mid-inference; scope the server's firewall rule to the local subnet. - What runs today is Strata — one installer, one firewall rule — serving Hermes across three machines: two big-RAM inference boxes and one small agent box.
Do this today: on whatever box serves (or will serve) your models — llama.cpp or Strata — set the inbound firewall scope to the local subnet. It takes two minutes, and it is the difference between a private API and a public one.
Related reading
- A 125-Billion-Parameter Model on Two Ordinary PCs: The Build, the Numbers, and the Failure
- What I actually run today: Strata + Hermes on three machines
- I Let Three Local LLMs Read 116 Lines of Legacy VBA: Every Rule Found, None of the Reasons
Honesty notes. The route procedures are from my own dated notes (May–June 2026) on the hardware described: RX 9060 XT (16 GB), RX 9070, Radeon 760M iGPU, Windows 11 / WSL2 Ubuntu 24.04 / Ubuntu 26.04. The Strata + Hermes section is from notes dated 2026-11-11. The ~4× relative speed is my observation, not a benchmark; there are no tok/s claims anywhere in this series. External facts — the Strata repo, lemonade build b1373, AMD's validated-binaries page — were checked on 2026-11-12 and move. Machine names, addresses and locations do not appear in this series; 192.0.2.x is the IETF documentation range. There are no affiliate links in this article.