You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Phase 5: Block-budget admission, eviction, and preemption #122
With physical blocks shared across requests, scheduling and eviction must be tied to the global block budget rather than per-sequence buffers. Freed prefix blocks must return to the pool when no sequence references them.
Tasks
Admit or queue sequences based on free block count; integrate with the existing PreemptionPolicy.
LRU/TTL eviction over radix-tree leaves that releases physical blocks when their refcount reaches 0; merge this with the current prompt-cache capacity/TTL accounting (prompt_cache/policy.rs, store.rs).
Implement recompute-on-preempt (drop blocks, re-prefill on resume). Host swap-out is out of scope because unified memory makes it low value.
Surface pool block usage in GET /v1/cache/stats and the Prometheus gauges (extend prompt_cache/metrics.rs).
Acceptance criteria
Under block pressure the scheduler evicts cold prefixes and admits new work without OOM.
Metrics report block-level usage (allocated / live / free blocks and bytes).
Dependencies
Blocked by Phase 4 (radix-trie / block-pool unification).
Activity
perf: page-gather decode microbench and paged-attention ADR (#145)
feat: unify radix prompt cache with paged block pool for prefix shari…
fix: release paged KV block pins on prompt-cache evict/decline (#170)
feat: architecture-aware KV-cache memory estimation (#172)
feat: explicit activation term in memory estimate (#173)
feat: opt-in block budget for the paged KV pool (#174)
feat: paged KV block-budget admission gate and eviction (#175)
feat: wire paged KV block budget to a --kv-cache-budget knob (#176)
feat: surface paged KV block budget in cache stats and metrics (#178)
1 remaining item
perf(server): serving-throughput defaults: parallel decode, batched p…
perf: page-gather decode microbench and paged-attention ADR (lablup#145)
feat: unify radix prompt cache with paged block pool for prefix shari…
fix: release paged KV block pins on prompt-cache evict/decline (lablu…
feat: architecture-aware KV-cache memory estimation (lablup#172)
feat: explicit activation term in memory estimate (lablup#173)
feat: opt-in block budget for the paged KV pool (lablup#174)
feat: paged KV block-budget admission gate and eviction (lablup#175)
feat: wire paged KV block budget to a --kv-cache-budget knob (lablup#176
feat: surface paged KV block budget in cache stats and metrics (lablu…
perf(server): serving-throughput defaults: parallel decode, batched p…