llama.cpp
moe-cache : LRFU/MQ-like hybrid cache, ClassLRU
#31233
Merged

moe-cache : LRFU/MQ-like hybrid cache, ClassLRU #31233

sanmai
sanmai moe-cache : LRFU/MQ-inspired hybrid cache
6a8bf8ed
sanmai
sanmai commented on 2026-10-27
sanmai sanmai marked this pull request as ready for review 13 days ago
sanmai sanmai requested a review from ggerganov ggerganov 13 days ago
sanmai
am17an
sanmai sanmai marked this pull request as draft 13 days ago
sanmai make the clock advance by N tokens: use the real token count (ne[1] i…
5dd386c3
sanmai
sanmai sel is a RESHAPE node, the orig input is in src[0], so sel->src[0]->n…
9ac703c3
am17an
Green-Sky
sanmai
sanmai
Green-Sky
sanmai
Green-Sky
am17an
kudraw
sanmai
sanmai commented on 2026-10-29
sanmai
sanmai commented on 2026-10-29
sanmai sanmai changed the title moe-cache : LRFU/MQ-inspired hybrid cache, ClassLRU moe-cache : LRFU/MQ-like hybrid cache, ClassLRU 11 days ago
sanmai c for the class index, last_use for last use time
9f4c30df
sanmai explain the roles of these
c09c6f58
sanmai compute the key once
e05f14e8
sanmai use the key directly instead of re-reading
b7c08c51
sanmai show how the score is computed from the age
231bc3e4
sanmai remove the branch and clarify exp2 and log2 relationship
98ce01e2
sanmai reword the header comment and elaborate on unused slots and sorting
cfea435b
sanmai not a copy, not just skip
82466a9a
sanmai std::array maybe
7649b1f1
sanmai Revert "std::array maybe"
1ba27ea1
sanmai half life it is
5e2fe317
sanmai add key and iteration helpers
27979671
sanmai extract decayed_crf
a00d1bca
sanmai sanmai marked this pull request as ready for review 11 days ago
sanmai sanmai requested a review 11 days ago
sanmai
sanmai
am17an
am17an approved these changes on 2026-10-30
eapache
sanmai
Green-Sky
sanmai
sanmai
sanmai bump classes to 8, document the formula, display the cache size in to…
8be980ff
sanmai
sanmai assert the computed number of classes matches the half life
aff64547
sanmai sanmai requested a review from am17an am17an 9 days ago
sanmai
Green-Sky
sanmai
kudraw
am17an
sanmai
sanmai
am17an
am17an commented on 2026-11-03
sanmai Merge branch 'master' into feat/moe-cache-classlru
515064f5
am17an
am17an approved these changes on 2026-11-06
sanmai
sanmai sanmai added merge ready
ggerganov ggerganov merged c4fb5796 into master 3 days ago
Green-Sky
sanmai

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone