AMD-specific llama.cpp patches boost inference speeds
A new repository providing AMD-specific patches for llama.cpp significantly improves token generation and prefill rates for users with RDNA hardware.
Source: Hacker News — front pageNew software patches tailored for AMD hardware are demonstrating significant performance gains for local large language model (LLM) inference. By applying specific optimizations to the widely used llama.cpp engine, developers can achieve much higher token generation and prefill speeds on RDNA-based graphics cards.
What are the llama-cpp-rdna-boosts?
According to a report from devnull.land, the llama-cpp-rdna-boosts repository offers a specialized way to run LLMs on AMD hardware. Rather than being a completely separate, standalone engine, it functions as a set of minimal patches designed to be applied against specific commits of the original llama.cpp project.
This approach aims to maintain the stability and vetted contribution model of the base llama.cpp project while providing the performance benefits of hardware-specific tuning. The developer of the patches notes that this method results in fewer moving parts to maintain compared to entirely new inference engines. The implementation can be managed via containerized environments, such as Podman, using pre-built images that include the necessary ROCm libraries.
How much faster is the performance increase?
In practical testing, the performance improvements are substantial. Using an AMD R9700 connected via an eGPU interface to run a Qwen 3.8 27B model (quantized as Q6_K_L), the differences in speed were measurable across two key metrics: prefill and token generation.
According to the testing data provided by the source, the prefill rate—the speed at which the model processes the initial input prompt—increased from approximately 700 tokens per second (t/s) to roughly 1300 t/s.
For token generation—the speed at which the model produces new text—the rate rose from about 35 t/s to 55 t/s. These jumps represent a significant reduction in latency for users running models locally on AMD consumer or enthusiast hardware.
Why are bespoke inference engines appearing?
As of late 2026, the landscape of AI inference has seen a surge in specialized engines like Strata, Basalt, and RustingStrata. According to the devnull.land report, these engines often diverge from generalist tools like vLLM or llama.cpp because they focus on specific hardware subsets or particular model architectures to chase maximum speed.
However, the report highlights a growing concern within the community regarding how these speed gains are achieved. Some newer engines appear to prioritize speed by altering how a model "thinks" rather than purely optimizing hardware utilization. For example, the Strata engine has been noted for preferring to poll experts already loaded in VRAM, even if a different expert residing in system RAM or on disk would have been the mathematically correct choice for the task. This trade-off between raw speed and model accuracy is a central tension in the development of bespoke inference software.
How does this compare to other AMD optimizations?
While there are other attempts to optimize for AMD, such as vllm-radiance, they may not suit every user. The source mentions that vllm-radiance, a fork of vLLM with AMD-specific patches, was found to have onerous build steps and an overly complex architecture for individual developers working on a single machine.
In contrast, the rdna-boosts approach seeks a middle ground: providing the speed of a specialized fork while maintaining the lightweight, modular philosophy of applying small, transparent changes to a stable, general-purpose base. This makes it a more accessible option for developers who want to avoid the overhead of heavy, overbuilt frameworks.
Applying these concepts in Grafy
While Grafy provides access to many cloud-hosted models through various providers, developers looking to build or experiment with local inference workflows can find relevant tools in Grafy Code. For researchers and developers testing the limits of local hardware or building custom deployment pipelines, understanding how specialized kernels and patches affect throughput is essential for optimizing the performance of the applications they create.
Source: Hacker News — front page — AMD Specific Patches for Llama.cpp


