Repository navigation
feat(serving): device-side expert-slot budget on the governed plan — free-VRAM-after-fit (#305) - #2125
Merged
Conversation
…free-VRAM-after-fit, never a constant (#305) BigMama's measured ask (2026-08-02, run2.trace): warm coverage scales directly with expert-slot VRAM (13.8% @ 1.9GiB → 51.3% @ 15GiB → 65.7% @ 30GiB, one slot ≈ one 8.09MB expert record), and the bandit beats naive recency by +7-9pts at matched VRAM — so the copy-stream budget must track the LIVE free-VRAM-after-device-fit, not a number someone typed. Wire: additive-optional device_budget_bytes on PlanFileDocument (absent = pre-#305 bytes, goldens untouched; literal field name pinned for her C++ fetcher). Daemon: the board's available(Vram) is already net of the resident serve (#79 consumer registration), so device budget = governed ceiling − placement margin, published through its own StickyLease (same band, same never-thrash discipline as the host axis) and a third axis on the write gate. Probe carries device_budget_bytes + device_derived_bytes. 19 leaf-crate tests (incl. new additive-wire pin) + 26 serving_daemon tests green. 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.
BigMama's measured ask off the run2.trace coverage sweep: warm coverage scales directly with expert-slot VRAM (13.8% @ 1.9GiB → 51.3% @ 15GiB → 65.7% @ 30GiB, slot ≈ 8.09MB), bandit beats naive recency +7–9pts at matched VRAM. The copy-stream budget must therefore track LIVE free-VRAM-after-device-fit — never a constant.
device_budget_bytesonPlanFileDocument+with_device_budget; absent field = byte-identical pre-Resource lifecycle: load on demand, unload after idle #305 wire (goldens untouched, new test pins the literal field name + old-document parse).available(Vram)is already net of the resident serve (Build(deps-dev): Bump @typescript-eslint/parser from 8.29.1 to 8.35.0 #79), so device budget = governed ceiling − placement margin, published through its ownStickyLease(same 1/8 band as the host axis) as a third axis on the no-churn write gate. Probe carries both derived and published values.19 leaf-crate + 26 serving_daemon tests green.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo