mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1537] [CLOSED] serve: an opt-in checkpoint where a request continues the live session after a long reply (STRATA_LIVE_CKPT_MIN) #3517
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#3517
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/1537
Author: @zsariboga
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:pr-live-ckpt📝 Commits (1)
fbb3b5fserve: an opt-in checkpoint where a request continues the live session after a long reply (STRATA_LIVE_CKPT_MIN)📊 Changes
2 files changed (+33 additions, -0 deletions)
View changed files
📝
docs/DETAILS.md(+8 -0)📝
src/program/generate.cpp(+25 -0)📄 Description
Rebased on
main(477ac13c) and now opt-in, after @qiuzan2001's review. Thank you, the point was right: with a default of 1024 the checkpoint fired on most agent turns after a long reply. Each one is a synchronouscheckpoint_savethat takes one of the--prompt-cacheslots, so it could push an older checkpoint out.What it changes
STRATA_LIVE_CKPT_MIN=Nturns it on. Unset or 0 is off, and the path is then byte-identical tomain.checkpoint_at(). It is skipped forckpt=0,STRATA_CKPT_REREAD, an incoming parked conversation and a slot source. The engine log sayscheckpoint at the live end: N tokens.docs/DETAILS.md: one entry next to--prompt-cache-spread.Measured (the previous version, 0.1.40.3)
Setup: RTX 5070 Ti Laptop 12 GB, Core Ultra 7 255HX, 64 GB DDR5-5600, Windows 11, Swift 1.5 IQ3_XXS.
How it was checked
src/program/generate.cpp, inside the CUDA/HIP serve loop.STRATA_LIVE_CKPT_MIN=1024on 0.1.44.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.