mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1559] [CLOSED] serve: retire stale pins when selecting a new shared prefix #3531
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#3531
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/1559
Author: @W1nge
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:codex/shared-prefix-pin-replacement📝 Commits (2)
7a8f2b2serve: retire older shared-prefix pins before cache lookupee03403Merge remote-tracking branch 'upstream/main' into codex/shared-prefix-pin-replacement📊 Changes
3 files changed (+71 additions, -0 deletions)
View changed files
📝
include/strata/core/conversation_cache.hpp(+19 -0)📝
src/core/conversation_cache_test.cpp(+44 -0)📝
src/program/generate.cpp(+8 -0)📄 Description
Summary
Replacing a shared prefix can leave older parked conversations pinned, exhausting cache slots. Release stale pins before lookup so the selected prefix stays protected and older snapshots become normally evictable.
What changed
Retire pins across live checkpoints, batch slots and parked conversations. Retain a pin only when its token prefix, boundary, images and steering mode match. No new settings or cache-budget defaults.
Validation
Updated to main
61b3fb5d: 4,227 conversation-cache checks and all 17 retention checks pass on MSVC. CUDA integration build also passes (sm60;sm75). Earlier model evidence is unchanged; full-model inference was not repeated on this revision.Draft until the affected HIP/SYCL builds satisfy the repository's backend coverage requirement.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.