hn.today

AMD Specific Patches for Llama.cpp

devnull.land436 points104 comments
Screenshot of AMD Specific Patches for Llama.cpp

The piece argues that specialized inference engines can deliver impressive speeds, but some pursue performance by changing model behavior - for example, favoring experts already in VRAM over experts the model would otherwise select. The author prefers a smaller, hardware-focused set of patches that preserves llama.cpp as its base. The recommended project, llama-cpp-rdna-boosts, applies a minimal AMD-specific changeset to pinned llama.cpp commits and is repeatedly updated for newer versions. Its limited scope, continued reliance on llama.cpp, and documented changes make it more appealing to the author than a standalone engine with more moving parts.

On an AMD R9700 connected to a laptop by eGPU, running a Q6_K_L quantization of ukisai/Swift-1.5-Qwen3.8-27B-GGUF with MTP enabled, the patched build raised prefill speed from about 700 to 1,300 tokens per second and generation from about 35 to 55 tokens per second. The author ran a prebuilt ROCm 10.1 container with Podman rather than installing ROCm and building locally, mounting the model directory and exposing the AMD device nodes. These results are specific to that setup. An AMD-patched vLLM fork was also tested, but its demanding build process and broader scope made it a poor fit for a single machine and developer; the author returned to vanilla llama.cpp.

Read on devnull.land104 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.