moe-cache: LRFU/MQ-like hybrid cache, ClassLRU for llama.cpp improves decode and reduces uploads vs SLRU
Read original on r/LocalLLaMA ↗Replace SLRU with a cache that prioritizes frequently used experts in classes, ranked using decaying usage history. With a warm cache, I measured +6% decode on QFN and +7% on GLM versus SLRU, with 8% fewer uploads....
Original headline: "moe-cache : LRFU/MQ-like hybrid cache, ClassLRU by sanmai · Pull Request #31233 · ggml-org/llama.cpp"
Timeline
- November 6, 2026 moe-cache : LRFU/MQ-like hybrid cache, ClassLRU by sanmai · Pull Request #31233 · ggml-org/llama.cpp r/LocalLLaMA
- November 7, 2026 llama_moe_cache: run missed experts on CPU, add tuning script by am17an · Pull Request #30966 · ggml-org/llama.cpp r/LocalLLaMA