Skip to content

feat(pager): default_tier + tiered plan write — the beat-WASTE bytes knob (#281) - #2074

Merged
joelteply merged 1 commit into
canaryfrom
feat/plan-default-tier-decisive
Aug 1, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/plan-default-tier-decisive

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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-pin tier on 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 N flags.

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

…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
@joelteply
joelteply enabled auto-merge (squash) August 1, 2026 09:00
@joelteply
joelteply merged commit e22878b into canary Aug 1, 2026
@joelteply
joelteply deleted the feat/plan-default-tier-decisive branch August 1, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant