llama.cpp Proposes ClassLRU Cache for MoE Inference
AI summary
A pending llama.cpp pull request proposes replacing SLRU with a ClassLRU cache that groups experts by class and prioritizes frequently used experts using decaying usage history. The submitter reported 6% faster decoding on QFN, 7% faster decoding on GLM and 8% fewer uploads with a warm cache. The proposal says it is waiting for pull request 30966 to be merged.
In-depth insight
If validated, the proposal could improve MoE inference efficiency through faster decoding and fewer uploads, but the reported benchmark gains are the submitter’s own measurements.
| Waiting for 30966 to be merged. submitted by /u/pmttyji [link] [comments] |