Skip to content

feat(serving): device-side expert-slot budget on the governed plan — free-VRAM-after-fit (#305) - #2125

Merged
joelteply merged 1 commit into
canaryfrom
feat/305-device-budget-lease
Aug 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/305-device-budget-lease

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

  • Wire (expert-pager-policy): additive-optional device_budget_bytes on PlanFileDocument + 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).
  • Daemon: the resource board's 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 own StickyLease (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

…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
@joelteply
joelteply merged commit d027871 into canary Aug 3, 2026
5 checks passed
@joelteply
joelteply deleted the feat/305-device-budget-lease branch August 3, 2026 01:17
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