mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4179
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/2631
Author: @PiMatyja
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:metal-conversation-cache📝 Commits (1)
b96d9b9Metal: the conversation cache keeps a conversation across a side request (cause 2 of #2502)📊 Changes
6 files changed (+370 additions, -36 deletions)
View changed files
📝
docs/DETAILS.md(+4 -0)📝
docs/MAC.md(+1 -0)📝
include/strata/core/conversation_snapshot.hpp(+16 -0)📝
metal/src/engine/window.cpp(+72 -27)📝
src/core/conversation_state.cpp(+266 -8)📝
src/program/generate.cpp(+11 -1)📄 Description
Summary
Fixes cause 2 of #2502 (cause 1 is #2503, which this needs).
On a Mac,
--conversation-cache-mibnever keeps a conversation, so a short side request (a title call) makes the next turn re-read the whole prompt. This makes the cache save and restore the Metal decode window's own K/V and state. No new flag; without--conversation-cache-mibnothing changes. CUDA, HIP and SYCL compile none of it.Extra Notes
M2 Max, 64 GB, IQ3_XXS resident, with #2338 and #2503, #2502's steps (17K-token prompt, two follow-ups, a title request, turn 4), 3 rounds with and without MTP:
Same answer as a cold read in every run. Session files (
SAVE/LOAD) are refused on Metal with a clear message. Builds on CUDA with no new warnings.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.