{"id":25690,"date":"2026-11-27T06:08:57","date_gmt":"2026-11-26T21:08:57","guid":{"rendered":"https:\/\/localmodelwatch.tsuchitsuchi.com\/2026\/11\/27\/amd-gpu-patches-llama-cpp-boost-speeds\/"},"modified":"2026-11-27T06:08:57","modified_gmt":"2026-11-26T21:08:57","slug":"amd-gpu-patches-llama-cpp-boost-speeds","status":"publish","type":"post","link":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/27\/amd-gpu-patches-llama-cpp-boost-speeds\/","title":{"rendered":"AMD GPU Patches for llama.cpp Boost Speeds in User Report"},"content":{"rendered":"<p><!-- lmw:facts --><\/p>\n<h2>At a Glance<\/h2>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Published<\/td>\n<td>2026-11-27<\/td>\n<\/tr>\n<tr>\n<td>Source type<\/td>\n<td>Unverified (not confirmed by a primary source)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><em>Values determined by this site&#8217;s code when the information was collected. Dates are JST.<\/em><\/p>\n<p><!-- \/lmw:facts --><\/p>\n<h2>Overview<\/h2>\n<p>This article is based on a usage report posted on the personal blog &#8220;devnull.land&#8221;. It is not officially confirmed information, and the figures are values measured by the poster in their own environment. The poster, julianlam, tried &#8220;llama-cpp-rdna-boosts&#8221;, which applies a small set of patches for AMD GPUs to llama.cpp. They reported that both prefill and token generation became faster on an AMD R9700 as a result.<\/p>\n<h2>Claims and Rationale<\/h2>\n<h3>Position of llama-cpp-rdna-boosts<\/h3>\n<p>According to the poster, llama-cpp-rdna-boosts is a repository that gathers minimal changes to be applied to a fixed commit of llama.cpp. It is effectively a fork, but it is described as a method of continually reapplying the same changes to newer versions of llama.cpp. The contents are improvements for AMD, explained to significantly improve prefill and token generation speeds.<\/p>\n<p>To support recommending this project, the poster lists the following points:<\/p>\n<ul>\n<li>It branches from llama.cpp, which is a stable foundation<\/li>\n<li>Because it is a collection of small patches, there are fewer parts to maintain<\/li>\n<li>The changes are documented. However, the poster also writes that the explanation is &#8220;somewhat opaquely&#8221; written and reads like text generated by an LLM<\/li>\n<\/ul>\n<h3>Presenter&#8217;s Measurement Results<\/h3>\n<p>The poster&#8217;s environment is an AMD R9700 connected to a laptop via eGPU. The model used is <code>ukisai\/Swift-1.5-Qwen3.8-27B-GGUF<\/code> (Q6_K_L), measured with MTP enabled. The reported figures are as follows:<\/p>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th><\/th>\n<th>Before<\/th>\n<th>After<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Prefill<\/td>\n<td>~700 t\/s<\/td>\n<td>~1300 t\/s<\/td>\n<\/tr>\n<tr>\n<td>Token Generation<\/td>\n<td>~35 t\/s<\/td>\n<td>~55 t\/s<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>From the context, the comparison baseline (Before) can be read as standard llama.cpp. However, the version of the comparison baseline and the startup flags are not written. The poster themselves also adds the disclaimer &#8220;YMMV&#8221; (Your Mileage May Vary). In addition, the above figures have not been verified by a third party.<\/p>\n<h3>Evaluation of Other Inference Engines<\/h3>\n<p>Stating that inference engines focused on specific models and hardware are increasing, the poster gives Strata, Basalt, and RustingStrata as examples. Regarding Strata among them, they point out that it attempts to prioritize calling experts residing in VRAM. This means that even in situations where another expert placed in system RAM or disk would normally be chosen, one on the VRAM is used instead. The poster criticizes this not as optimization for hardware, but as optimization that &#8220;changes the way the model thinks.&#8221; Note that this behavior is the poster&#8217;s report and has not been confirmed with the Strata side.<\/p>\n<p>They also tried vllm-radiance, which applies AMD-specific patches to vLLM. However, they wrote that they stopped using it due to reasons such as heavy build procedures.<\/p>\n<h3>Reactions on Hacker News (Unverified)<\/h3>\n<p>In the Hacker News discussion, there were comments such as the following. All are individual comments and have not been verified:<\/p>\n<ul>\n<li>A report that with the same R9700, using the radiance engine yields 2400 tok\/s for prefill and 150 tok\/s for decode (4-bit quantized Qwen3.8-27b)<\/li>\n<li>A question asking whether anyone is checking the output quality with optimizations that prioritize speed<\/li>\n<li>A report that it did not work when combined with an RPC server<\/li>\n<\/ul>\n<h2>Prerequisites<\/h2>\n<p>The conditions written in the poster&#8217;s report are as follows:<\/p>\n<ul>\n<li><strong>Hardware<\/strong>: AMD R9700. Connected to a laptop via eGPU<\/li>\n<li><strong>Model<\/strong>: <code>ukisai\/Swift-1.5-Qwen3.8-27B-GGUF<\/code> (Q6_K_L)<\/li>\n<li><strong>Settings<\/strong>: MTP enabled<\/li>\n<li><strong>Software<\/strong>: Published container image for llama-cpp-rdna-boosts <code>ghcr.io\/stew675\/llama-cpp-rdna-boosts:server-rocm-10.1<\/code> (from the image name, it can be read as being for ROCm 10.1)<\/li>\n<li><strong>Execution Environment<\/strong>: podman<\/li>\n<li><strong>Patch Application Target<\/strong>: A fixed commit of llama.cpp<\/li>\n<\/ul>\n<p>Context length, batch size, and the version of the comparison baseline llama.cpp are not written.<\/p>\n<h2>Scope of Reproducibility at Hand<\/h2>\n<p>The poster writes that they used a published image instead of building it themselves. They state that if ROCm libraries are installed on the system, one can also build the image themselves. The fetch command listed in the article is as follows:<\/p>\n<pre><code>podman pull ghcr.io\/stew675\/llama-cpp-rdna-boosts:server-rocm-10.1\n<\/code><\/pre>\n<p>The following example is shown as the command to start the inference server:<\/p>\n<pre><code>podman run --rm -it \\\n--network=host \\\n--device \/dev\/kfd \\\n--device \/dev\/dri \\\n--group-add video \\\n-v &quot;$HOME\/models:\/models&quot; \\\n&quot;ghcr.io\/stew675\/llama-cpp-rdna-boosts:server-rocm-10.1&quot; \\\n<\/code><\/pre>\n<p>This command ends with a backslash at the end of the line, and the subsequent arguments are not written in the article. The poster explains that additional flags are also passed in the actual startup script, and what is posted here is only the important lines. Therefore, the arguments for starting with the same settings as during measurement (such as model specification and MTP settings) cannot be known from the article.<\/p>\n<p>The poster writes that they think updating can be done by fetching a new image. However, they state they have not tried it yet.<\/p>\n<p>The target of the patches is AMD GPUs. Operation is reported for only a single configuration of the R9700 in the article. On Hacker News, there were also comments from people using older datacenter-class cards such as the gfx906 generation stating that these optimizations for RDNA are of no use to them.<\/p>\n<h2>What the Material Does Not Touch Upon<\/h2>\n<ul>\n<li>The version, build method, and startup flags of the comparison baseline (Before) llama.cpp<\/li>\n<li>Measurement conditions (prompt length, context length, number of trials, variance in figures)<\/li>\n<li>Whether output quality changes after applying the patches. While this point is also raised by voices on Hacker News, it is not verified in the article<\/li>\n<li>Results on AMD GPUs other than the R9700, or connections other than eGPU<\/li>\n<li>Results with quantizations other than Q6_K_L, or when MTP is disabled<\/li>\n<li>What individual patches specifically change. The article only explains that it is written in the documentation<\/li>\n<li>Whether there are plans to merge these changes into upstream llama.cpp. While comments on Hacker News ask for the reason, no answer is found in the material<\/li>\n<\/ul>\n<p><!-- lmw:related --><\/p>\n<h2>Related Articles<\/h2>\n<ul>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/21\/localai-v5-0-1-release-2\/\">LocalAI v5.0.1 Released: Native Windows Support and ROCm Enhancements<\/a><\/li>\n<li><a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/09\/19\/unsloth-v0-1-811-beta-released\/\">Unsloth v0.1.811-beta Released with AMD &amp; NVIDIA Docker Images<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:related --><\/p>\n<p><!-- lmw:next-steps --><\/p>\n<h2>What to Read Next<\/h2>\n<ul>\n<li><strong>Engines mentioned in this article<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-llama-cpp-en\/\">llama.cpp<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:next-steps --><\/p>\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/devnull.land\/amd-specific-llama-cpp\">AMD Specific Patches for Llama.cpp (devnull.land)<\/a><\/li>\n<li><a href=\"https:\/\/news.ycombinator.com\/item?id=50657265\">Hacker News Discussion<\/a><\/li>\n<\/ul>\n<blockquote>\n<p><strong>This article contains unverified information.<\/strong> We will append an update note once it is confirmed by a primary source.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A user report on devnull.land explores llama-cpp-rdna-boosts, showing speedups on AMD R9700. Details, commands, and limitations included.<\/p>\n","protected":false},"author":1,"featured_media":25689,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[503,163,1073,1573,1565],"class_list":["post-25690","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engines-and-tools","tag-amd-en","tag-gguf-en","tag-llama-cpp-en","tag-rocm-en","tag-unverified"],"lang":"en","translations":{"en":25690,"ja":25688},"_links":{"self":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/25690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/comments?post=25690"}],"version-history":[{"count":0,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/25690\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media\/25689"}],"wp:attachment":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media?parent=25690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/categories?post=25690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/tags?post=25690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}