mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1489] [CLOSED] Responses persistence and disk-only cache: CUDA/HIP integration #3485
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#3485
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/1489
Author: @CC-David-CC
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:work/responses-disk-cache-core📝 Commits (10+)
34e2409serve: keep evicted conversations on disk across restartsd258f18serve: restore a session file without holding its K/V in RAM0d846c1Merge remote-tracking branch 'upstream/main' into conversation-spill-disk54aa4caResponses: preserve replay and add experimental persistence and summary controls1904b8aserve: recompute the RAM conversation match after a failed disk attempt: make_room may have evicted the entry the stale index named1a9e8b9Merge remote-tracking branch 'upstream/main' into conversation-spill-disk3a5daf6Merge branch 'pr-1269' into disk-only-cachedd146f4serve: --conversation-cache-disk-only - the conversation cache on disk, no RAM budgetb189048conversation_spill_test: disk-only checks; docs: --conversation-cache-disk-only, measured on Strix Haloff30368docs: --conversation-cache-disk-only restores measured from a cold page cache📊 Changes
26 files changed (+4202 additions, -153 deletions)
View changed files
📝
CMakeLists.txt(+4 -1)📝
docs/DETAILS.md(+74 -7)➕
docs/RESPONSES_DISK_INTEGRATION.md(+125 -0)➕
docs/RESPONSES_EXPERIMENTAL.md(+126 -0)➕
docs/validation/responses-disk-20261008/cuda-rtx4090.json(+441 -0)➕
docs/validation/responses-disk-20261008/hip-rx7900xtx.json(+441 -0)📝
include/strata/core/conversation_cache.hpp(+124 -13)📝
include/strata/core/conversation_file.hpp(+28 -0)📝
include/strata/core/conversation_snapshot.hpp(+38 -2)➕
include/strata/core/conversation_spill.hpp(+107 -0)📝
serve/frontend.py(+10 -3)➕
serve/response_runner.py(+147 -0)➕
serve/response_store.py(+220 -0)📝
serve/responses.py(+25 -17)📝
serve/server.py(+109 -25)📝
serve/test_responses.py(+11 -3)➕
serve/test_responses_experimental.py(+447 -0)📝
src/core/conversation_file.cpp(+227 -32)📝
src/core/conversation_file_test.cpp(+122 -0)📝
src/core/conversation_snapshot.cpp(+79 -14)...and 6 more files
📄 Description
Summary
Validate #1269, #1271 and #1480 together with instruction/reasoning replay corrections, experimental Responses persistence and optional generated summaries.
The point is to test the boundaries between these features: can a chat resume after another chat, a summary pass or a restart without losing its history or restoring the wrong inference state? If KV files are evicted or damaged, the server must rebuild from durable history. This provides a tested core for downstream profile-based applications.
What changed
Preserves the original commit histories. Live testing found and fixed non-MTP snapshot failures: capture and restore now omit the absent draft ring. Adds regression coverage, a live probe and integration notes. Persistence and summary generation remain separate opt-ins.
Simple examples
Enable server options:
Add engine options to your existing configuration:
Keep those directories across restarts. Generated summaries remain off by default.
Use your configured model name and API key. Each reply is capped at 128 tokens:
The same continuation call works after restart. KV reuse accelerates compatible prefixes; a missing cache does not erase the conversation.
Validation and merge notes
Each backend ran 389 API tests with four optional skips; a dependency-enabled follow-up passed 25 tests. Live coverage includes branching, deletion, summaries on/off, cancellation, corrupt-cache fallback and eviction.
Validated engine:
e6da7e11. Scope: Linux, one GPU, 8K context, int8 KV, MTP off. Maximum context, multi-GPU and live MTP remain unvalidated. This is functional validation, not a speed comparison.Merge the combined candidate once, or use resulting main if its components land separately. Keep downstream profile selection and immutable revision binding in the application.
Detailed results: https://github.com/CC-David-CC/Strata-a5500/blob/work/responses-disk-cache-core/docs/RESPONSES_DISK_INTEGRATION.md
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.