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
End-to-end validation, parity, benchmarks, and docs #126
Final integration checkpoint that proves the unified store is correct, measures its payoff on Apple Silicon, and brings the docs in line.
Phase 0 note (ADR 0001, #117): the #117 microbench (examples/page_gather_microbench.rs) measures the attention sub-step only, so its overhead figures (~15-67% single-sequence, higher under batching) dilute at the model level where attention is a fraction of each decode token. End-to-end benchmarks here must measure model-level decode throughput (examples/profile_paged_decode_kernel.rs gives the paged-vs-dense model-level comparison) and must include concurrent / batched-decode scenarios, since Phase 0 found batch amplifies the gather cost far more than context length. See docs/adr/0001-paged-attention-gather-vs-fused-kernel.md.
Tasks
Correctness tests: concurrent shared-prefix requests, COW divergence, eviction under block pressure, fragmented block tables, and trim/rewind across shared blocks.
Parity vs the dense backend, and vs mlx-lm where applicable.
Benchmarks: memory saved per concurrent shared prefix, decode throughput delta vs the dense backend, and prefill tokens avoided. Update docs/model_tests*.md.
Docs: add a unified-cache section to docs/turbo-kv-cache.md and docs/en/prompt_cache.md; update docs/CONTINUOUS_BATCHING.md; remove the "Paged backend adopt/donate disabled" note from the prompt-cache Limitations section.
Acceptance criteria
All correctness tests pass on Apple Silicon.
Benchmark numbers and docs merged.
The prompt-cache "Limitations" note about paged adopt is removed because it no longer holds.
Dependencies
Blocked by Phases 4, 5, 6, and the coverage/distributed sub-issues.
B2 — disaggregated serving role: DONE + merged. The serving-role KV handoff mechanism is now live at the BatchScheduler level, with the hot run() loop untouched.
B2b (feat: serving-role KV handoff scheduler entries (B2b) #189): the serving-role scheduler entry points — prefill_request_for_handoff (reuse execute_full_prefill, then extract), ingest_handoff_as_active (reconstruct + register a live decode sequence), decode_handoff_until_idle. The serde frame now carries the prefill node's first token (generated_tokens).
B2c: in-crate real-model parity (BatchScheduler is pub(crate)). On qwen3-0.6b-4bit: prefill-role extract → ServingCoordinator over MockTransport → decode-role ingest → decode is byte-identical to a single-node scheduler run (16 tokens).
B3 — live deployment: planned, next.
B3a: run_prefill_role / run_decode_role loops on the coordinator + the worker serving-mode flip (a non-hybrid --node-role spawns a role coordinator + tokio runtime), verified in-process over a localhost TcpTransport pair.
B3b: real two-process deployment — TcpTransport bind/connect from --prefill-peers / --decode-peers, RequestRouter client routing (Router-mediated), StreamBridge first-token + decode-token merge, with a two-process E2E.
B3c: throughput bench + docs, then closes this issue.
Decisions: routing topology = Router-mediated; verification = in-process (bounded) first, then full two-process.
Activity
feat: harden paged KV handoff deserialization boundary (#186)
feat: in-process paged KV serving-role handoff mechanism (#187)
feat: disaggregated serving-mode plumbing and coordinator skeleton (#188
feat: serving-role KV handoff scheduler entries (B2b) (#189)
inureyes commentedon Jun 9, 2026
Progress update (B2 complete, B3 next)
B2 — disaggregated serving role: DONE + merged. The serving-role KV handoff mechanism is now live at the BatchScheduler level, with the hot
run()loop untouched.--node-role→ServingModeplumbing through the provider ladder to the worker, plus theServingCoordinatorskeleton (transport seam).prefill_request_for_handoff(reuseexecute_full_prefill, then extract),ingest_handoff_as_active(reconstruct + register a live decode sequence),decode_handoff_until_idle. The serde frame now carries the prefill node's first token (generated_tokens).BatchSchedulerispub(crate)). Onqwen3-0.6b-4bit: prefill-role extract →ServingCoordinatorover MockTransport → decode-role ingest → decode is byte-identical to a single-node scheduler run (16 tokens).B3 — live deployment: planned, next.
run_prefill_role/run_decode_roleloops on the coordinator + the worker serving-mode flip (a non-hybrid--node-rolespawns a role coordinator + tokio runtime), verified in-process over a localhostTcpTransportpair.TcpTransportbind/connect from--prefill-peers/--decode-peers,RequestRouterclient routing (Router-mediated),StreamBridgefirst-token + decode-token merge, with a two-process E2E.Decisions: routing topology = Router-mediated; verification = in-process (bounded) first, then full two-process.
feat: disaggregated serving-role loops over a real TCP transport (B3a) (
feat: serving-role worker-flip mechanism + disaggregated peer CLI (B3…
feat: live 2-process disaggregated serving handoff (B3b2a) (#192)
feat: dedicated disaggregated serving router front (B3b2b) (#193)
docs: unified paged KV cache + disaggregated serving (B3c) (lablup#194)
feat(server): add /v1/completions to the disaggregated router (#386)
feat: harden paged KV handoff deserialization boundary (lablup#186)
feat: in-process paged KV serving-role handoff mechanism (lablup#187)
feat: disaggregated serving-mode plumbing and coordinator skeleton (l…
feat: serving-role KV handoff scheduler entries (B2b) (lablup#189)
feat: disaggregated serving-role loops over a real TCP transport (B3a) (
feat: serving-role worker-flip mechanism + disaggregated peer CLI (B3…
feat: live 2-process disaggregated serving handoff (B3b2a) (lablup#192)
feat: dedicated disaggregated serving router front (B3b2b) (lablup#193)
docs: unified paged KV cache + disaggregated serving (B3c) (lablup#194)
feat(server): add /v1/completions to the disaggregated router (lablup…