mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1511] [CLOSED] Trace prompt-cache costs and reuse snapshot buffers #3500
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#3500
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/1511
Author: @InB4DevOps
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:prompt-cache-tracing-reuse📝 Commits (2)
3c66249Trace prompt-cache costs and reuse snapshot buffersbd6d3bfMove checkpoint chains into parked snapshots📊 Changes
14 files changed (+1501 additions, -83 deletions)
View changed files
📝
include/strata/core/conversation_cache.hpp(+44 -6)📝
include/strata/core/conversation_snapshot.hpp(+12 -3)📝
src/core/conversation_cache_test.cpp(+35 -0)📝
src/core/conversation_snapshot_test.cpp(+18 -1)📝
src/core/conversation_state.cpp(+50 -8)📝
src/program/generate.cpp(+178 -29)📝
sycl/src/core/conversation_snapshot_test.cpp(+17 -0)📝
sycl/src/core/conversation_state.cpp(+50 -8)📝
sycl/src/program/generate.cpp(+176 -28)➕
tools/analyze_prompt_cache_log.py(+249 -0)➕
tools/prompt_cache_trace.sh(+160 -0)➕
tools/prompt_cache_workloads.py(+272 -0)➕
tools/test_analyze_prompt_cache_log.py(+135 -0)➕
tools/test_prompt_cache_workloads.py(+105 -0)📄 Description
Summary
Performance
Measured on the local
branch_switchingworkload using alternating settings on the same engine build:Verification
cmake --build build --target strata conversation_cache_test conversation_snapshot_test conversation_validation_test conversation_transfer_test./build/conversation_cache_test(4,201 checks)./build/conversation_snapshot_test(3,985 checks)./build/conversation_validation_test(972 checks)./build/conversation_transfer_test(1,548 checks)python3 -m unittest tools.test_analyze_prompt_cache_log tools.test_prompt_cache_workloads(19 tests)bash -n tools/prompt_cache_trace.shandgit diff --checkSYCL source and tests are mirrored, but a SYCL toolchain was not available locally.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.