Early in 2025 a bunch of folks realized that AMD made a bunch of cards with mediocre compute but incredibly fast HBM2 memory in their circa 2018 gfx906 datacenter series, so you could get 32GB VRAM capable of incredible 1 TB / s bandwidth for $200 (the closest in today’s cards is north of $3000)
There has been a rich little ecosystem of folks optimizing llama.cpp for these odd cards (no tensor cores, no native bf16 etc.) including my little personal repo https://github.com/kinchahoy/llama-of-vega.cpp. Stuff like this focused on more modern RDNA doesn’t help us at all.
It’s been interesting to see how much each new frontier model can figure out in terms of optimizing for these GPUs and what they can’t!
Fable and Astra will regularly run out of ideas until I point them to someone’s actually thoughtful repo and then they’ll diligently incorporate ideas.
The optimization wins are huge (I was initially skeptical that per model kernel optimizations would be worth much). 27B at a pristine Q8 quant goes from base llama.cpp at some 250 pp / 25 tg to 600 pp / 40 tg even before speculative decoding.
Yeah these cards are great, I have one too. There's the Radeon VII Pro 16GB and the Instinct MI50 with 16 or 32GB. For the latter you need to come up with your own cooling though.
Unfortunately they lack the right matrix processor to accelerate prefill so time to first token can be slow. And software support is getting bad. ROCm dropped them already so there's only Vulkan
Ps I don't think this architecture is supported by the port in this link. It seems to be specific to RDNA.
In case you're not aware, you might be interested to know that TheRock builds have picked gfx906 back up, kinda [0]. It's not tehcnically 'supported', but they've done some work to fix the broken bits, and it builds. It's in the list.
I gave up on my mi60 a year or two ago too (got a strix halo now), so I missed most of this. Was a pleasant surprise to find out they'd decided to do the work to at least kinda bring them back to life.
> ROCm dropped them already...
I think this kind of thing matters less nowadays. The codebase contains enough information that if you throw these things at AI they can do the backporting. It works well because there's a straightforward feedback loop ("does it work?" and "measure performance of <X> and <Y>").
[dead]
ROCm supports gfx906 (MI50/Radeon VII) in their nightly builds, just not official stable releases.
They even support the older gfx900 (MI25/WX9100).
llama.cpp compiled against ROCm 10.x works well on my 2 MI25s.
Ah ok I didn't know. But I heard Vulkan works better anyway in terms of performance.
Personally I don't really want to mess around with builds, I'm not a software dev. I'd just like to deploy a docker and run the AI for other stuff.
Checkout the repo - you can get surprisingly good prefill with kernel optimization (not the 3K / s that a 5090 will do but competitive with a modern 9700 XTX or Intel Arc etc)
Hm I'll try it thanks! If I can manage to wrap it into a docker.
I used to have a dockerized build of an older version - will add one to the repo over the weekend
I actually have a fun franken-build with a Radeon VII Pro hooked up to a Raspberry Pi 5 and a mini gallium-nitride power supply. It's mostly GPU by volume. I have titled it "The Modern Computer".
I just ran it for 5 days straight computing embeddings for all of English Wikipedia. But what I really want is to get it running a nice LLM. The card is overclockable thanks to being a gaming card, so the memory bandwidth is now 1.1 TB/s. But the PCIe gen 3x1 interface to the Pi 5 means MoE offloading/streaming is not viable.
alignment and introspection call for standardization, homogenization. science calls for evolution: iteration, exploration, divergence.
also biology (and business, and technology, and every other type of replicator)
(both mutation and standardization, oddly enough)
2 MI50 32 GBs in my rig I got for $300 a piece about 6 months ago. There is also a great discord for people tinkering and optimizing with these cards. I get like 70 t/s with my setup right now running QFN using Strata.
Woah 70 t/s on IQ3 on long context?? Need to test again. I find strata tricky because it’s super willing to degrade quality for tps - I really want as close to the OG model as possible for agentic work.
On my benchmarks it performs equally as well quality wise as q8 3.8 27B, tool calls are marginally worse though. It also runs way way cooler on my cards which is important to me because the blowers for the cards are super loud at high speed. Max context is 200k right now for ref.
I discovered my minisforum with 32gb RAM and only IGPU because it is AMD I could just allow the IGPU to use up 24GB RAM for the model, which both improved performance, but also caused way less electricity usage and heat development compared to CPU. Quite underrated. I guess getting a 64GB version you would actually have a large enough context window to do proper coding tasks as background tasks. Because it is still not fast, but with latest QWEN 27B the quality is very good.
What kind of token rates do you get?
The same just happened with nvidia’s crypto mining cards
Turns out they are 80gb A100s but were advertised as 8gb with only 8gb addressable until a mod
They were a couple hundred just 6 months ago, now $5000 and getting closer in parity to normal A100s
Did people just not notice the extra order of magnitude of chips literally soldered onto the board?
Its HBM so its on the chip itself
More so that the specific mod was agentically coded and there were two series of mods
I think the timeline is rational
They’re just getting nv link reenabled
All this does is feed the GPU lord's unearned increment.
Do you think Fable and Astra are acting dumb on purpose as some anti-competitive measure?
I’ve yet to see a gfx906 card that can actually saturate 1 TB/s with ECC active
I saw some blurb a while ago that described llama.cpp as a “model zoo”, which is a great description of its utility and generality.
In the last couple of days I have been playing with Erik Paperniuk’s M1 port of Inco’s Splash, which has completely transformed the speed of Qwen 3.8 27B and Inkling 2 Mini; it has essentially tripled the speed of the former and more than doubled the speed of the latter.
This means the Qwen model is fully viable on an M1 Max, where before I had found it a bit of a waiting game. And it arguably transforms the utility of Inkling 2 Mini; extra speed means it can be left to reason for longer, the downside of needing to do more tool use for search to patch its knowledge is reduced, and it provides a good rough chat model (though this is not its area of greatest strength).
I have not yet found anything that can boost Muse Glimmer to the same extent; I would still prefer that.
But for me I now find that only the rather slow prefill speed really holds the M1 Max back; I suspect these new custom kernels have made the M5 Pro Mac Mini a really cost-effective option if you want to tinker with local AI.
This might deserve a standalone post, but MTPLX is worth checking out.
Youssof's goal is squeezing the most performance out of apple hardware, but not at the expense of model quality. I was testing all of the different projects, all different configs, and I could get some impressive tps numbers, but wasn't actually usable over longer sessions. MTPLX has been the most stable results for me, with acceptable speed/performance and not feeling like the model's capability was chopped.
Definitely worth checking out for anyone that has apple hardware, and might be using llama.cpp, oMLX, lmstudio, mlx-serve, etc.
It is good, but it is still a generalist, model-zoo isn't it?
It does seem to have good general advantages over llama.cpp for more modern Apple Silicon (M3 and up, when they tweaked the neural engine architecture I think?)
For my own situation, I think MLX-plus-MTP does't generally do better on the M1 Max than llama.cpp does with GGUFs. In fact it is usually worse (same on the M2 Max AFAIR) because the bandwidth overhead outweighs the draft prediction advantage.
The bespoke kernels are worth it once you have toured the zoo a few times and know which animal you are really interested in.
I think your "model zoo" terminology is pretty non-standard.
Do you just mean that it can serve any model?
That's true, but the model-specific serving frameworks are constantly being overtaken by generalist frameworks because the generalists aggregate improvements from across all models.
Yes, at an specific point in time you can probably find a specific framework that outperforms for your chosen model. It's very rare that lasts.
> I think your "model zoo" terminology is pretty non-standard.
Ehh? Turns of phrase have to be standards now? I didn't claim it was a standard. I just saw someone use this expression somewhere and shared it because it seemed apt.
So I don't mean much by it.
Except that it is kind of apt, because you can wander through and observe all the different animals, all of them well-looked after but none of them in the optimal conditions to keep them and all of them suboptimal in different ways. It's not shade, just an observation.
When llama.cpp can beat the improvement that Splash (specifically the Paperniuk port for M1) provides for Q4 quants of Qwen 3.8 27B I can switch back, can't I?
In the meantime I've chosen an animal and given it an optimised enclosure.
Over shorter prompts up to 64K it is outperforming by 3x, which is huge on the M1 Max, which usually does not benefit from separate MTP drafters, or really from MLX.
It really is radically faster, as is Inkling 2 Mini.
I have a r9700 card and I highly recommend the radiance engine. With a single card it processes (prefill) at 2400 tok/s and decodes at 150 tok/s. With a 4-bit model that is intelligently quantised to have a KLD of 0.006 and top-1 of 0.972 I have been working this engine for a month, throwing a lot of agentic and coding work and it has been doing great! I can run 3 concurrent agent streams all with a 200k context, entirely in vram. EDIT: model: Qwen3.8-27b - https://codeberg.org/StillDeadcode/radiance
As someone who had a Radeon 9700 (cannot remember if it was "Pro") about... 20? years ago. I had to look this up...
R9700: https://www.amd.com/en/products/graphics/workstations/radeon...
Ooh... 24 years ago.
Radeon 9700 Pro: https://www.tomshardware.com/reviews/ati-radeon-9700-pro,505...
Cool project, I'll check it out. Word of warning though: Codeberg might nuke your repo any second (or reach out to complain, if they're semi-decent people) because you seem to be letting your AI agent commit to your repo: https://blog.codeberg.org/protecting-our-floss-commons-from-...
I did try that too, along with some of the forks recommended by the launch80 discord for single r9700 users.
I did end up getting it running, but vLLM takes a long time to start, which makes it better for long running servers. I was also (and still am) very green at tuning vLLM, though I can stumble my way around llama.cpp's flags.
Of course, neither are reasons to discount vLLM, so as the article suggests, YMMV! Perhaps one day I will try again.
End of the day I didn't end up seeing much difference, but it could very well be that I compiled it wrong.
Parent is talking about the standalone radiance inference engine, which is _not_ vllm based, is much simpler, and is excellent. For 1 - 4 card R9700 hosts it is basically turn-key. It’s from the same author who was working on vllm-radiance and dumped the vllm part. Check out the link to the codeberg repo they posted.
Oh very interesting! Thank you for sharing. I did not realize the project had evolved further.
On my computer, the slow startup of radiance it because of my motherboard. So maybe you will not be able to solve this.
isnt qwen38-flash-next just plain better and faster?
Yes, supposedly. I can fit 27B q6 on my card and I found it was more succinct and a better writer (read: less claude-ish) in its responses.
I prefer it over the q3 GSQ-RCO quant of flash-next.
yeah, if you have enough memory.
It is. Also supported by Radiance. Using it daily.
I have a MI100, and I managed to get Claude to double or triple the performance of Qwen3.8 by aggressively optimizing the AMD code and porting some of the Nvidia kernels to ROCm: https://github.com/fwoar-greenhouse/vicuna.cpp
I've been running this for a while and it seems pretty stable, plus I had Claude validate the ported kernels against the originals to make sure they were reasonably close numerically to the validated implementations.
Interesting! I have had Claude improve llama.cpp the last few days to get Inkling 2 Mini to fly on my 7900XTX, the improvement has been dramatic both for decode and prefill!
Oh it's ruben! Thank you for publishing your work. I was randomly running "ruben llama" for a couple days :D And the article does a great job describing my situation lately -- I think I was earlier in your speed curves, and ended up finding a little more speed from Maya https://github.com/mw00/project-maya
I've been wondering what I can reasonably run on a 7800x3d with 6GB and a 7900xtx with I believe 12 or 24GB vram. Looks like AMD stuff might be back in the races?
7900xtx 24gb vram, on a 128gb ddr4 10-core Xeon 10+yrs old Linux box, I run Strata + Qwen3.8-flash-next (QFN) at 80 tok/s most of the time. Sometimes (when I need the ram) switch over to Hipfire + Qwen3.8-27B, that runs 80 tok/s to 120 tok/s (with MTP now; used to be tops 45 tok/s). Usually I run the QFN as I have ram to spare, and QFN's AAII index is 29, versus 20 for the 27B dense. So I consider QFN more intelligent all other things being equal.
The 7900xtx is a beast! But 6 GB of system RAM is not enough I think.
Oh I meant 64GB
That makes more sense, haha! Then you could clone my repo and be up and running in notime with Inkling 2 Mini.
Cloning now!
Ihave this machine mainly for helldivers2 but it's idle 99.9% of the time, id love to get some more value out of it :p
i have a watchdog start strata when my lockscreen is up
[dead]
I heard that if Anthropic recognizes that it's machine learning jobs, they might deliberately poison the output.
Incidentally, llama.cpp is now owned by NVIDIA (via their Huggingface acquisition).
I'm a llama.cpp maintainer (who does not work for NVIDIA).
There's lots of work being done to support non-NVIDIA hardware in llama.cpp, including AMD hardware, and a lot of that work is being done by Hugging Face / NVIDIA employees. I haven't noticed any changes since the NVIDIA acquisition.
Historically the threat was self-sabotage from AMD not sabotage from Nvidia.
Back in the day, Nvidia won my business when their OpenCL reliably ran my code so much better than AMD's OpenCL (more speed on a "worse" card, fewer bugs, better error messages, no crashes) that I eventually gave in, sold my red cards, and payed the green tax so that I could have that experience all of the time.
The fact that 3rd parties can now work around AMD's best efforts to duck up the software makes me genuinely bullish on the prospect of using an AMD card for the first time in a long time.
Which is interesting because Nvidia’s Hyperflare server for Q38FN is going down the “optimised for a few models and one bit of hardware” path
~False~
Edit: Looks like I missed an announcement. This is actually now true.
The core llama.cpp team joined Hugging Face in February this year. Thus Hugging Face "owns" llama.cpp.
Nvidia will soon own Hugging Face, this is well known and the deal was finalized in August. Thus, Nvidia owns Hugging Face.
It follows to me that one could say Nvidia now owns llama.cpp. They likely do not own the brand or exert any specific control over it, and hopefully whatever deals gregory signed allows him to walk away with the project if he wants.
Completely true. Please read the following links:
https://github.com/ggml-org/llama.cpp/discussions/19759
https://blogs.nvidia.com/blog/nvidia-to-acquire-hugging-face...
Please check Strix Halo AI Toolboxes for GenAI on AMD Ryzen AI MAX+:
And also check out the various engines and experiments going on at: https://old.reddit.com/r/StrixHalo/
Why won’t llama.cpp take these as PRs?
LLama.cpp is now the stable product that moves with intent and doesn't break things and largely isn't just taking anything the AI kicks out as a patch. They also have a tonne of legacy having been around for so long compared to the new engines that can throw a lot of the older models away and make software designed for the new architectures.
Any number of reasons, but likely they are not cross-compatible with their entire list of supported architectures, which means regressions for some.
That in and of itself could be a dealbreaker.
llama.cpp maintainer here.
We're happy to take high-quality patches. :)
Thank you so much for your work :)
llama.cpp has al limit of 2 open PRs per user, but reviews can take months — even for relatively trivial bug fixes. I can imagine that trying to upstream extensive work would be excruciatingly slow.
llama.cpp is now an Nvidia project (as in, they own it)
As a llama.cpp maintainer who does not work for NVIDIA, I can assure you that there is lots of work being done to support non-NVIDIA hardware, including AMD hardware. I haven't noticed any changes since the NVIDIA acquisition of Hugging Face.
So? That doesn't mean they're denying AMD optimization contributions and the deal isn't even closed. You only have a public agreement so far.
but the andy hung told us they are all a big family!
it's meant to be the stable option.
does anyone maintains patches like this for intel? intel's xmx engine is strong on paper but lags behind due to improper utilization of hardware especially on linux. Even on llama.cpp coopmat for vulkan is only enabled on windows for arrow lake.
Post them if you find them, I'm in the same boat. I know it wouldn't change the world for me, but seeing my A770's XMX cores go unused is a constant needling. It's also the exact kind of shit I knew would happen when I bought it at launch, sigh, but for some reason I always go underdog.
I have ~enough of the dev experience to guide some clankers through the process but I don't really have the bandwidth right now. And I refuse to get a subscription. I'm sure one of us will get around to it sooner or later but of course the big gains will likely be model-specific.
(and apologies for piggybacking your handle, it was the only way I could lower my activation energy for replying)
>These new forks generally all have a few things in common:
>They focus on a specific subset of models and/or hardware
Do one thing and do it well!
Reminded me of antirez's ds4, which supports precisely one model.
https://github.com/osahum/llama.cpp-rdna3 is great if you have a 7900XTX (or rdna3 card) - more than doubled vs stock llama what I got with my 7900XTX
it's sad that optimizations like this are spread across many forks. it would be nice to have them upstreamed to llama.cpp repo
If I'm not mistaken there was/is an lm studio for strix halo. seems like it quit working but it was able to punch Qwen 3.6 as fast as the 8060s when it worked.
There is also a llama fork for Ryzen AI and Radeon cards but I'm on mobile.
Strix Halo has Halogen dedicated to Qwen Flash Next, which is substantially better than anything else for that model on Strix.
GUFO for Strix runs Qwen 3.8 27B faster than llama.cpp and also runs Qwen Flash Next.
Lemonade can let you call all of these on Strix Halo.
Has Halogen been open-sourced?
Halogen for Qwen Flash Next is here:
Doesn't that GitHub just download a binary blob container? That's not really open-source. Plus the Halogen license[0] doesn't seem to allow derivative software.
From the open-source perspective, it's probably better to stick with Gufo or one of the various Llama forks mentioned in this discussion.
[0] https://github.com/peonist-ai/halogen-flash-server/blob/main...
So, still not open source (not even source-available).
Julian, are you also able to benchmark Strata, HaloPFX and Hipfire please? All of these are optimised for AMD and perform much better than vanilla llama.cpp.
I haven't tried Strata on 27B specifically, so I can't say.
It did well with the GSQ-RCO IQ3 quant of Qwen Flash Next (80tps decode), but the concerns re: sacrificing quality for speed were a yellow flag for me.
I've only tried Hipfire of the lot, and as far as I can tell, it doesn't sacrifice quality. But then again, I haven't run a proper SWE bench or the likes so can't say for sure. But it is fairly popular amongst AMD users who use retail GPUs and Strix Halo iGPUs.
But the point of choosing this is that these other projects don't just make inference go fast but they also change how the results are calculated:
> as these projects have evolved, that relentless chase toward higher token generation speeds has taken an unfortunate turn, in that the optimizations are less about hardware-specific changes, but more about changing how the model thinks so that it goes brrr faster.
> Strata specifically has taken to preferring to poll experts loaded in VRAM even if other experts (pushed to system RAM/disk) would have been normally chosen. This is just one example, but certainly not the last.
Changes like the one in Strata can degrade the model's performance.
And TBH it seems to be so common all these videcoded "make stuff go faster" do changes like that that personally i have a hard time trusting anything other than llama.cpp (and TBHv2, that includes the linked repository - i'd rather wait for all those improvements reach the mainline llama.cpp).
I know it's not completely trivial to do this given how stochastic they are with normal (non-0-temperature) settings, but is anyone actually checking the output quality of the tokens with some of these optimisations, or just chasing pure speed like some of the projects at least appear to be doing?
I think you can set the rng seed and that should make the output reproducable.
Reproducible on the same inference engine. Most of the attention optimizations rely on "-Ofast-math" optimization, i.e. the results are different, hopefully not by much. I think pixelesque is right that this deserves more attention, there have definitely been cases of significant regression of output quality. Most likely even in Anthropic/OpenAI APIs, not just in vibe-coded llama.cpp forks.
This guy benchmarked this for vLLM attention backends with its-not-great results: https://forum.level1techs.com/t/why-your-local-llm-feels-dum.... It is not necessarily easy to measure the quality loss. It often matters way more at larger context size - on agentic runs, not Q/A; and agentic benchmarks are more difficult to run than the Q/A ones.
[flagged]
You can also, you know, check logits/perplexity which covers much more ground
It's sort of astonishing seeing the contrast of what last bit of performance people are squeezing out of all kinds of GPUs, old & new & weird, because there's a shortage vs. how the apparently abundant resources are being used in an "electron app" (the disk space, the RAM, the compute!).
I know it's apples to oranges but the difference I'm talking about is in the attitude and approach.
For the life of me, I can't understand why it's not AMD doing these forks, or, better, contributing to this and other projects.
AMD has great GPU hardware that's marred by poor software integration. For years, they know this, and for years they don't anything actually useful about it.
Are they happy to be the eternal 2nd place to NVIDIA, or they just don't see it as even worth to try? This really baffles me.
culture > logic
> Are they happy to be the eternal 2nd place to NVIDIA
Given everything going on with NVIDIA, this has been an actual thought that crossed my mind recently as a reasonable strategy for AMD. Does AMD have to deal with international spies? Maybe, but they're surely a much smaller target, while still being very successful.
>For the life of me, I can't understand why it's not AMD doing these forks, or, better, contributing to this and other projects.
AMD is fixated on not being a software company. They seem to absolutely hate the fact that they even have to write a driver for their products.
Running a test of this on my aGPU. I know it's not the target hardware but early results show an improvement for some models.
Got some results in. The optimized build works for APUs as well. Might post details in the morning if I remember.
I have tried to use it with RPC server and it did not work. Waste of time.
>"Some examples of these new inference engines* are Strata, Basalt, RustingStrata, etc…
These new forks generally all have a few things in common:
o They focus on a specific subset of models and/or hardware
o They use a frontier model to vibe-code the entire thing
o They chase ever-higher token generation speeds
… and the results are stunning! Strata is able to run a heavily-quantized model of Qwen 3.8 Flash Next, a 180B parameter model, on a 16GB VRAM graphics card, and 16GB system RAM, and have it generate tokens at a surprisingly high rate.
Nice!
Hardware specific optimizations are definitely one key to faster local tokens, algorithmic optimizations (i.e., all of the academic papers published about different Matrix/Tensor algorithm optimizations as pertains to LLMs) are another...
Anyway, great article!
I've tried patches like this for my gfx1103, and I got a 15% boost to pp, 3% boost to tg... but it also couldn't use all my VRAM (unified memory), only the BIOS GART reserved mem - so I couldn't load larger models anymore, and had to go back to Vulkan.
Awesome, I need this!
Hello, this is great, thank you for making this. I would have preferred a branch with an environment variable instead of a new fork with a pinned commit. I actively avoid Intel because of their ties to Israel and AMD is slightly better in this regard.
[dead]
[dead]
[dead]
[dead]