Archived
sched: skip periodic window snapshots under tip-only
Treat tip-only as a true opt-out from periodic window snapshot creation and interval chunk splits, while retaining the existing tail snapshot and explicit request checkpoints. Leave recurrent-state scheduling unchanged and report the effective chunk bound accurately. Cover geometric-backoff and keep-all interval behavior, tip-only chunk planning and single-snapshot reservation, aligned and short prompts, explicit checkpoints, and recurrent-state scheduling.
This commit is contained in:
1 parent
192fe10278
commit
d6957e88a1
5 files changed
+91
-26
No files matched your search
@@ -153,9 +153,11 @@ int chunk_geometry_resolve(const Program& prog, const Config& cfg, ChunkGeometry
|
||||
|
||||
/* Log the effective chunk length. `plan_chunk` splits at the checkpoint interval first, so
|
||||
* when the interval is below --max-num-batched-tokens, raising the budget does not change the
|
||||
* chunk; the log line makes that visible. */
|
||||
* chunk; the log line makes that visible. tip-only window snapshots do not
|
||||
* split at the interval, so their chunk is bounded by the token budget. */
|
||||
const int64_t span_tok = g.checkpoint_interval * g.span;
|
||||
const int64_t eff = (g.checkpoint_interval > 0 && span_tok < cfg.max_tok)
|
||||
const bool periodic = !g.window_ckpt || cfg.checkpoint_policy != "tip-only";
|
||||
const int64_t eff = (g.checkpoint_interval > 0 && periodic && span_tok < cfg.max_tok)
|
||||
? span_tok : cfg.max_tok;
|
||||
RAD_INFO("chunk geometry: quantum %lld (attn block %lld, state chunk %lld), checkpoint "
|
||||
"interval %lld, max_tok %lld -> prefill chunks of at most %lld%s",
|
||||
|
||||
Reference in new issue
Block a user