Repository navigation
fix(cache): preserve message checkpoints for divergent continuations - #227
shadownetX wants to merge 2 commits into
Conversation
|
Linked to #225 and categorized as a cache/Selene/scheduling regression fix ( |
Message checkpoints deferred behind a nearby prompt checkpoint can lose their resume row, forcing divergent continuations to prefill again after GPU eviction. Offer message checkpoints immediately and retain close ancestor rows during eager thinning. Normal capacity eviction still applies; retained rows use additional host cache space. Document the in-memory marker's recovery behavior. Package formats and model export requirements are unchanged. Validation: 15 Selene index tests and 25 Helios boundary tests passed. The divergent-branch regression fails without the fix. The full Selene suite has the same 76 environment failures on main and this change (io_uring is denied). Rustfmt findings are unchanged from main. On DGX Spark GB10, Qwen3.8 Flash Next FP4 TP1 with DFlash2 retained 99.9% WARM reuse at 64K with up to eight concurrent requests under KV pressure. Other GPU and TP configurations have not been tested. Fixes NVIDIA#225 Design-Signed-Off-By: Codex (GPT-6); design-review=4d3a Signed-off-by: vonP <thomas@picollin.fr> Co-authored-by: Codex <codex@openai.com>
49b964b to
8a77bd0
Compare
Resolve the prefix-cache documentation conflict by documenting immediate message checkpoint publication, close-ancestor row protection, and the upstream DRAM pressure-based redundant-row policy. The existing scheduler fix applies unchanged to main, with no additional Rust modifications. Validation: the scheduler patch applies without conflicts; the affected documentation sections were reconciled. Rust and GPU tests were not rerun. Design-Signed-Off-By: Codex (GPT-6); design-review=ed22 Signed-off-by: vonP <thomas@picollin.fr>
Port the still-missing Selene half of NVIDIA PR NVIDIA#227 onto the new checkpoint allocator. v0.1.0 already offers message checkpoints eagerly, so do not restore the obsolete Helios scheduler modifications. Protect a parent row when a child lies within one physical KV page; keep that guard for the parent's lifetime. Cover divergent WARM resume, child eviction, and index reconstruction in CPU tests. Validation: GitHub CI pending; DGX Spark WARM benchmark pending. Assisted-by: ChatGPT (OpenAI)
Port the still-missing Selene half of NVIDIA PR NVIDIA#227 onto the new checkpoint allocator. v0.1.0 already offers message checkpoints eagerly, so do not restore the obsolete Helios scheduler modifications. Protect a parent row when a child lies within one physical KV page; keep that guard for the parent's lifetime. Cover divergent WARM resume, child eviction, and index reconstruction in CPU tests. Validation: GitHub CPU CI requested again after 2026-11-11 Actions outage; DGX Spark WARM benchmark pending. Assisted-by: ChatGPT (OpenAI)
|
Quick update: I can no longer reproduce #225 with HyperFlare v0.1.0 without this patch. All nine complete benchmark runs maintained reliable WARM prefix reuse, including the 64K × 8-request scenarios. I have posted the detailed results in #225. Given the recent upstream cache changes and the additional host-cache retention cost introduced by this PR, I would prefer to reassess whether these changes are still necessary before rebasing or merging. Happy to follow your recommendation. |
|
Marked Please close this proposal if no current reproducer remains, or provide the workload and evidence that still require it. The successful campaign establishes the tested configuration, not a universal proof that every cache scheme is unaffected. @shadownetX GitHub reports merge conflicts with
Please reconcile the branch with main and rerun the checks affected by the resolution. |
Prevent WARM prefix reuse loss after GPU eviction by publishing message checkpoints immediately and preserving nearby ancestor resume rows during eager thinning. Retained rows consume additional host-cache space.
CPU regressions pass and reproduce the failure without the fix. Validated under KV pressure on DGX Spark GB10, Qwen3.8 Flash Next FP4, TP1/DFlash2, up to eight concurrent requests. Other GPU/TP configurations are untested. Disk tests encounter the same
io_uringpermission failures on unmodified main.Fixes #225