Repository navigation
Conversation
|
As written the new checkpoint runs by default: |
…n after a long reply (STRATA_LIVE_CKPT_MIN) A request that continues the live session after a long stretch it generated (a thinking budget's wrap-up continuation, a forced call's opening) first keeps a checkpoint where it starts, so a later prompt that leaves the session right there resumes from it instead of reading the whole reply again. Off by default: each one is a synchronous checkpoint save that takes a --prompt-cache slot. STRATA_LIVE_CKPT_MIN=N turns it on when the newest checkpoint below is at least N tokens back (1024 is the value used with opencode on a 12 GB laptop).
3012d6e to
fbb3b5f
Compare
|
@qiuzan2001 thanks, you were right. STRATA_LIVE_CKPT_MIN is now opt-in (unset or 0 = off, the path byte-identical to main), rebased on main (477ac13) and built for CUDA sm_120; a docs entry sits next to --prompt-cache-spread. Not built for HIP or SYCL (no toolchain here). |
|
Thanks for the pull request. 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 review 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:
The rules are in CONTRIBUTING.md. |
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.