Repository navigation
feat(pager): default_tier + tiered plan write — the beat-WASTE bytes knob (#281) - #2074
Merged
Merged
Conversation
…knob (#281) Misses are unpinned by definition, so the fetch bytes live in the cold tail — per-pin tier alone can't shrink them. The plan doc now carries an optional doc-level `default_tier`: the precision-ladder bank every UNPINNED expert fetches from. With `pin_tier` on the hot set, that's the full rate-distortion split on one wire: hot = high-fidelity bank, cold misses = small-quant bank (~half the bytes on the critical fetch path), which uniform-quant streaming structurally cannot do. - PlanFileDocument.default_tier: Option<u32>, serde-skipped when None — documents without it stay byte-identical to the v1 wire (pinned by test), no lockstep with the C++ consumer. - BanditPlanController::write_tiered_plan(pin_tier, default_tier); (None, None) degenerates byte-for-byte to write_plan (pinned by test). - moe-pager-driver grows --pin-tier / --default-tier flags. 15/15 tests, clippy clean. 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.
Joel's directive: decisively beat WASTE. The lever is precision-on-fetch — and the bytes are in the COLD TAIL (misses are unpinned by definition), so the wire needs a doc-level knob, not just per-pin tiers.
What
PlanFileDocument.default_tier(optional): the precision-ladder bank every unpinned expert fetches from. With per-pintieron the hot set, one plan doc expresses the full rate-distortion split: hot = high fidelity, cold misses = small-quant (~0.45× bytes at IQ1) — the split WASTE's uniform-quant streaming structurally can't make.write_tiered_plan(pin_tier, default_tier)on the controller;(None, None)degenerates byte-for-byte to the plain v1 write (pinned by test).moe-pager-driver --pin-tier N --default-tier Nflags.Compatibility
Same contract as #2072: serde-skipped when unset ⇒ byte-identical v1 wire, no consumer lockstep. 15/15 tests, clippy clean.
The physics (BigMama's numbers, this run regime)
Warm decode ~4.1 GB/tok at 62% hit, 2.8 GB/s ⇒ ~1.5 s of a ~3 s token is fetch. Cold misses at IQ1 (~0.45×) ⇒ fetch ~0.7 s ⇒ ~0.5–0.6 tok/s ≈ 2× WASTE's 0.32. Her uniform-IQ1 ceiling run measures the scaling now; this wire makes the quality-preserving version drop in on the same seam.
Part of #281.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo