Repository navigation
feat(capacity): BanditPlanController — observations → bandit → hot-routed pins → plan file (#276 final glue) - #2070
Merged
Conversation
… hot-routed pins -> plan file (#276 final glue) Closes the rung-2 policy loop: fold per-token routed-expert activations into the bandit (ExpertId packed losslessly layer<<32|expert — hashed uids never reach the wire), emit the chosen arm's top-N as REAL (layer,expert) pins in deterministic order, publish atomically through the GGML_MOE_PLAN_FILE writer her ResidencyCache consumer polls. Post-null-run model correction encoded: shexp tensors are trunk-resident and never appear here — pins are hot ROUTED experts only, sized as a meaningful cache fraction. Tests: lossless pack/unpack across the u32 range (wrong-expert pins with green bandit tests is the failure this kills), hot-set surfacing over one-shot noise with deterministic ordering, and the end-to-end observe -> write -> on-disk document her consumer parses. 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 last #276 slice:
BanditPlanControllercloses observations →DecayBandit→ top-N hot routed pins (real(layer,expert)coordinates, packed losslessly through the bandit's opaque scoreboards) → the atomicGGML_MOE_PLAN_FILEdocument herResidencyCacheconsumer (f44ba7848) polls. Shexp stays out by design (trunk-resident, pinning is a no-op — the correction from her null run). Capture projections (chosen_decay,per_arm_reward, serving hit) exposed forPagerCaptureEvent.3 tests: lossless identity round-trip, hot-set-over-noise pin surfacing with deterministic order, end-to-end observe→write→parse.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo