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#994
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?
Originally created by @fqqdc on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2448
How it was made. I built it together with an AI coding assistant — it wrote the code, I set the goal and tested it on my PC. The code is here if you're curious: https://github.com/fqqdc/Strata-conversation-cache-delta/tree/conversation-cache-delta (it's #1480 plus my changes). I'm not planning to open a PR — I don't have any experience with that side of things — I just wanted to share it and hear what others think.
Hello! I work as a programmer, but this kind of low-level software really isn't my area — I don't write C/C++ and I know nothing about CUDA.
My situation. One Windows PC (64 GB RAM, RTX 5070 Ti 16 GB). My conversations get very long (up to ~256K), and switching back to one used to re-read the whole conversation every time — 40 to 85 seconds. PR #1480 (
--conversation-cache-disk-only) fixed that for me: switching back now takes a couple of seconds. Thank you for it.The catch. Every time you switch away, it saves the whole conversation to disk — over 2 GB for my 245K conversations. With daily use that adds up to tens of terabytes of writes a year, and I'd rather not wear out my SSD.
What I did. On top of #1480, I made it save only the part that actually changed. Two small housekeeping things came along: after a restart the cache folder cleans up its own leftovers, and when the folder is full it deletes the conversation you haven't used for the longest time (before, it deleted whichever file happened to sort first — sometimes one you'd just used).
Numbers from my own machine:
It's off by default — you add one option to turn it on. Without it, everything behaves exactly as before.
Honest limits. The saving is about 10x, not more: roughly 200 MB of each save is a chunk of the model's internal memory whose size doesn't depend on how long the conversation is, and I don't know how to shrink that. Also, I only tested this on my own computer (Windows, NVIDIA, single GPU) — no idea about Linux, AMD, or multi-GPU.
I hope to see this kind of feature in the main branch someday — conversations kept on disk, and only the changed part written each time.
@fqqdc commented on GitHub (Oct 16, 2026):
A little update. After using this for a few days I went and looked at where the data actually gets written, and it isn't what I expected.
Where it goes. Two kinds of data get written and then never read again:
What I did. I changed the server so it recognises those two kinds of requests and doesn't save them. That's all it does — everything else stays exactly as it was. It's off by default: a few lines in the settings turn it on, and without them the behaviour is unchanged.
The result. With it on, in one real session, neither the title request nor the compacting request wrote anything at all. My estimate is that in a long working session this cuts the amount written by about 90%, because those two kinds of requests were what filled up my cache folder. That's from my own use, not a proper benchmark.
Scope. So far I've only tested this on DSH, the client I use, and those are the two kinds of requests I could identify in it. Another client would probably need its own setup, but I haven't tried that.
The code is on the same branch as before — three new files:
github.com/fqqdc/Strata-conversation-cache-delta@3c952ebf69@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.