CachyLLama: AMD-optimized llama.cpp fork for local LLM inference on APUs
CachyLLama is a performance-focused fork of llama.cpp designed specifically for running local large language models on AMD APU hardware, including integrated GPUs and handheld devices. Unlike upstream llama.cpp, which prioritizes raw model execution, CachyLLama optimizes for end-to-end agentic throughput on shared-memory systems. It introduces several key innovations, including a persistent KV…
Key points
- CachyLLama optimizes llama.cpp for AMD APUs, achieving up to 41% decode speedup on DeepSeek-V4.
- Features persistent KV cache and MoE expert residency to run large models on limited RAM.
- Includes custom Vulkan shaders like Lightning Indexer and quantized-KV flash-attention for RDNA3 hardware.
The project features advanced MoE expert residency, allowing models larger than physical memory to run at near-RAM speeds by keeping only active expert weights in memory. Benchmarks show significant speedups on AMD Radeon hardware, such as a 41.1% increase in decode speed for DeepSeek-V4 models. The fork also includes custom Vulkan optimizations, such as the Lightning Indexer and quantized-KV flash-attention improvements, tailored for RDNA3 and Strix Halo architectures.
CachyLLama supports a wide range of model architectures, including Qwen3.5/3.6, Gemma 4, and GLM-4.7, with specific support for hybrid MoE/SSM models. It is released under the MIT license, with the parent project using GPL-3.0. The ecosystem includes CLIO, an agentic client optimized for CachyLLama's persistent cache features, and provides detailed documentation on expert activation tracking and user isolation mechanisms.
The story so far
3 episodes →- CachyLLama: AMD-optimized llama.cpp fork for local LLM inference on APUsthis story
CachyLlama archived?
github.com · 14 September 2026Loading the full article…
This text was published by github.com. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗
Coverage and discussion
3sources- Reddit discussionreddit.com
- Reddit discussionreddit.com
- Reddit discussionreddit.com
- ggml-cuda: hip: add missing AMD GCN MMQ config by thelittlefireman · Pull Request #27841 · ggml-org/llama.cpp - PP improvements for RDNA2(MI50, MI60)Primary source · github.com ·
- CUDA/HIP: Flash Attention tuning (gfx1201) by pwilkin · Pull Request #28102 · ggml-org/llama.cppPrimary source · github.com ·
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Hardware & Compute
All →- TSMC may raise advanced packaging prices by 10%-20%, report says · 1 src
- Nvidia says GPUs last up to 8 years, reshaping AI hardware financing · 1 src
- Nvidia reportedly explores buying edge-AI chipmaker Ambarella for physical AI expansion · 1 src
- Foxconn launches AI factory powered by Nvidia supercomputing cluster · 2 src
- OpenAI says Jalapeño chip delivers up to 1.9× more tokens per watt than Nvidia · 1 src
Comments
via GitHub Discussions