AMD Specific Patches for Llama.cpp devnull.land · 113 points · 31 comments · HN ...
HN Best 200 @best
AMD Specific Patches for Llama.cpp devnull.land · 113 points · 31 comments · HN thread
The article could not be read, so this summary is based on the title and the discussion.
TL;DR The article could not be read, so this digest relies on the title, URL and comments. The thread is about AMD-specific optimizations of llama.cpp for local LLM inference, including forks and kernel work for older MI50/MI100 datacenter cards and RDNA consumer GPUs, along with worries that some fast forks trade output quality for speed.
- The article itself could not be read; the points below come only from the comment thread.
- Commenters report large speedups from AMD-focused kernel work: one cites a 27B Q8 model going from about 250 pp / 25 tg to 600 pp / 40 tg before speculative decoding.
- Older MI50 and MI100 cards are cheap sources of 32GB VRAM with high memory bandwidth, but lack matrix units and ROCm support is fading, leaving Vulkan.
- Several forks (Strata, HaloPFX, Hipfire, Maya, Halogen, GUFO) were mentioned as faster than vanilla llama.cpp.
- Critics say some speed-focused forks change how the model selects experts, which can degrade output quality.
- Commenters also debated whether llama.cpp would accept such patches now that its core team has joined Hugging Face, which is being acquired by NVIDIA.
Discussion The thread is mostly enthusiasts sharing their own AMD llama.cpp setups and forks, with reported speed numbers on MI50, MI100, 7900 XTX, Strix Halo and M1 Max hardware. The mood is upbeat about the speedups but skeptical about quality. A recurring argument is whether fast forks that were largely vibe-coded with frontier models can be trusted, and whether such work should be upstreamed. A side dispute corrected a claim that NVIDIA owns llama.cpp: the core team joined Hugging Face, which NVIDIA is acquiring, so ownership is indirect.
- Hardware-specific speedups for AMD cards are valuable and welcome (many): Owners of MI50, MI100 and 7900 XTX cards report large gains in prompt processing and token generation from custom kernels. They see this as making cheap used datacenter GPUs competitive for local inference.
- Fast forks can silently degrade model quality (some): Commenters argue that some speed projects change expert routing or the computation itself, so results may differ from the original model. They prefer mainline llama.cpp and want output validated, for example with fixed seeds.
- Upstream llama.cpp should accept AMD optimizations (some): Some ask why these patches are not merged as PRs. Replies suggest cross-architecture regressions are the likely obstacle, and that the NVIDIA ownership claim does not block contributions.
- NVIDIA owns llama.cpp (a few): One claim was corrected: the core team joined Hugging Face, which NVIDIA is acquiring, so the link to NVIDIA is indirect and the deal was not closed when first discussed.
- Older AMD datacenter cards are a bargain but aging (some): Buyers report paying around $200 to $300 for 32GB MI50s, but note poor prefill, loud blower coolers and dropped ROCm support.
Links from the comments
- Personal llama.cpp optimization repo for gfx906 (Vega/MI50) cards
- Fork with AMD kernel optimizations and ported Nvidia kernels for MI100
- llama.cpp improvements for Inkling 2 Mini on a 7900 XTX
- Official llama.cpp discussion about the Hugging Face team move
- NVIDIA announcement of the Hugging Face acquisition