Repository navigation
feat(serving): retention verdict on the governed host-cache lease (#287) - #2112
Merged
Merged
Conversation
…he cache says whether it retains even ONE token's expert set (#287) BigMama's GPU-first K3 run exposed the missing arithmetic: the lease law answers 'how much RAM is safe to grant' but not 'does that grant BUY anything'. K3 routes top-16 of 896 across 92 MoE layers; when the lease is below one token's expert working set, every token evicts the previous token's experts before reuse — resident=0, evict-everything, zero cross-token hits — while the lease looks perfectly healthy. The verdict is two pure fns on the lease module: per-token expert working set from the artifact's own geometry (expert_bytes_total / experts-per-layer x top_k — the layer count cancels under uniform K3-class geometry; top_k now read from the GGUF's expert_used_count into MoeServingContext), and a fixed-point retention_tokens_x100 (100 = the GO/NO-GO line). The daemon's lease publish probes both on every tick and emits a loud serving.moe_host_cache_retention line when the published budget retains less than one token's set — the honest thrash verdict, surfaced where the operator and (later) the governor's own policy can act on it. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The missing arithmetic behind BigMama's GPU-first K3 thrash (resident=0, evict-everything, zero cross-token reuse while the lease looked healthy): the lease law answers how much RAM is safe to grant but not whether that grant buys anything.
Two pure fns on
host_cache_lease: per-token expert working set from the artifact's own geometry (expert_bytes_total / experts_per_layer × top_k— layer count cancels under uniform K3-class geometry;top_know read from the GGUF'sexpert_used_countintoMoeServingContext), and fixed-pointretention_tokens_x100(100 = GO/NO-GO). The daemon's lease publish probes both every tick and fires a loudserving.moe_host_cache_retentionwhen the budget retains less than one token's set.Tests: capacity 108/108 (retention identity + thrash verdict + dense no-wrap pinned).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo