Repository navigation
Conversation
Honor the native cache budget across tensor ranks and cap shared KV, bounded snapshots and indexed token payload through the session store. Keep existing 16-row snapshot alignment, with partial-page and eviction regressions and runtime controls for coarse snapshots and ignored caps.
Track logical bounded bytes separately from physical residency and use that charge for retention and multi-rank RAM trimming. Roll back and release both totals with their owners, and log zero-cache startup. Cover unequal rank sizes, LRU victims and failed publication custody.
…cache, the same on every rank
ashhart
force-pushed
the
lead/s182-dsv41-prompt-cache
branch
from
November 2, 2026 17:36
afa7096 to
2c2ad0f
Compare
6 of 9 tasks
Owner
Author
|
Closing in favour of #2056, which does #1625's fix with the default unchanged: |
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.
Fixes #1625: DeepSeek-V4.1's
--prompt-cache-gibnow bounds everything the prompt cache keeps.What changes
--prompt-cache-gibcaps the retained KV pages, the host snapshots and the index records together, with LRU eviction after each save. Unset means 16 GiB,0turns RAM and disk reuse off and logs that at start-up, and a bad value is refused before the load.One behaviour to note: the combined cap counts logical bytes at one rank too, while one rank's RAM sub-limit still counts physical bytes. At TP=2 or more, the default 256 MiB RAM limit now counts logical bytes, so it may keep a few more snapshots.
Checks