mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3615] [CLOSED] [Engine] conversation cache: --conversation-cache-min-tokens WRITE[,READ] gates parked reads #4714
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4714
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3615
Author: @G0-0000
Created: 10/21/2026
Status: ❌ Closed
Base:
main← Head:feat/conversation-cache-read-min-tokens📝 Commits (1)
9844762conversation cache: --conversation-cache-min-tokens WRITE[,READ] gates parked reads📊 Changes
4 files changed (+122 additions, -19 deletions)
View changed files
📝
docs/DETAILS.md(+13 -8)📝
include/strata/core/conversation_cache.hpp(+37 -0)📝
src/core/conversation_cache_test.cpp(+34 -0)📝
src/program/generate.cpp(+38 -11)📄 Description
Problem
--conversation-cache-min-tokens N(WRITE, #1597, now in main) stops short side requests from parking themselves and evicting the long conversation they are interleaved with. The read side has no equivalent: every request callsConversationCache::best(), and a short request can restore a short parked copy that it rewrites at once.Change
--conversation-cache-min-tokens WRITE[,READ]:ConversationCache::wants).best()and restores nothing. The active session's prefix, its checkpoints and the batch slots are chosen before the gate and are unaffected.WRITE,0, the default is0,0, andREAD=0searches every prompt as before. A startup with READ=0 prints the line it printed before.This extends #1597 rather than replacing it; that flag is already in main and keeps its meaning.
Validation
Passed:
cmake -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=70 ... && cmake --build build-pr -j8conv_cache_test: PASS (4792 checks); the same source also passed under-fsanitize=address,undefinedstrata --serve --helpshows the newWRITE[,READ]syntaxNot run:
Failed: none.
Limits
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.