Skip to content

feat: support --ctx-checkpoints and --checkpoint-min-step - #3283

Merged
inureyes merged 10 commits into
mainfrom
feature/issue-3255-ctx-checkpoints
Nov 22, 2026
Merged

inureyes merged 10 commits into
mainfrom
feature/issue-3255-ctx-checkpoints

Conversation

@inureyes

@inureyes inureyes commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

--ctx-checkpoints N and --checkpoint-min-step M now configure the prompt cache's checkpoints instead of refusing to start, and Gemma 3, Gemma 4 (text, VL and Unified wrappers) and AFMoE gain ring-only turn-boundary state checkpoints.

  • Ring checkpoints (src/models/kv_ring_checkpoint.rs, hooks in gemma3.rs, gemma4.rs, afmoe.rs, forwarded by vision::{mod, gemma4_vl, gemma4_unified}). state_checkpoint_from_snapshot keeps only the rotating tensors and scalars of each sliding layer. It returns None while every ring is unwrapped (the whole snapshot still truncates then), and stores nothing for KV-shared layers. restore_sequence_state_from_checkpoint takes the sliding layers from the checkpoint and the full-attention layers from the donor, cut back after standard_truncatable_to. A ring of the wrong length is refused. The donor rule and lineage check are unchanged. Multimodal requests never reach this path: resolve_history_boundary clears their history boundary, so they store no Boundary-origin snapshot.
  • --ctx-checkpoints N (src/server/prompt_cache/ctx_checkpoints.rs, resolved in server::startup::resolve_ctx_checkpoints). Unset keeps today's defaults. N > 0 turns on keep-previous-turn and the family's state checkpoints, and caps them at N per conversation: insert_state_checkpoint keeps the N longest checkpoints of the inserted one's lineage (stored checkpoints of the same session bucket that are a prefix of it or that it is a prefix of), so the result does not depend on insertion order. N == 0 sets state_checkpoint_capacity_bytes = 0, leaves keep-previous-turn off, and logs that once at info. Negative values are refused.
  • --checkpoint-min-step M. M > 0 sets the periodic interval at absolute multiples of M, and of two state checkpoints of one conversation closer than M only the longer is kept. 0 < M < 256 is refused at startup with a message naming the floor. 0 means no periodic checkpoints and no spacing rule.
  • Precedence. The flags (and their LLAMA_ARG_* variables through clap) override MLXCEL_PROMPT_CACHE_CHECKPOINT_INTERVAL and MLXCEL_PROMPT_CACHE_KEEP_PREVIOUS_TURN. MLXCEL_PROMPT_CACHE_STATE_CHECKPOINT_CAPACITY_BYTES still sets the byte budget. MLXCEL_DISABLE_BOUNDARY_SNAPSHOT=1 still disables everything, and a given flag then logs a warning that it has no effect. The scheduler reads the resolved interval from the store instead of the process-wide env read.
  • Sizing (kv_arch::sliding_window_ring_bytes_from_config, snapshot_sizing::recommend_ring_checkpoint_capacity_from_config). This deviates from the issue's window x bytes. A multi-token append keeps the newest window - 1 rows plus the whole piece, so a ring captured at a history boundary holds up to window - 1 + prefill chunk rows. On gemma-4-12b-it at the 2,048 chunk that is 1,006,305,280 bytes per checkpoint (the window alone would be 320 MiB). The first build sized at the window held 4 checkpoints instead of 12. gemma4_unified (the real 12B's model_type) is matched as a ring family.
  • Docs and manifest. The slot_args.rs module doc and help text are rewritten, and the stale capture_history_boundary_snapshot text is gone. docs/llama-server-compat.md, CONTINUOUS_BATCHING.md and environment-variables.md describe the mapping. Both manifest entries move from not_applicable to by_design, with divergences listed and issue 3255 added to the shard owners.

Item 5 (default for the rotating families): not shipped

RING_FAMILY_DEFAULT_CTX_CHECKPOINTS stays None.

  • An edit of the last user message is fully served by keep-previous-turn alone (14,481 cached at target 7, with or without ring checkpoints).
  • A ring checkpoint only adds edits two or more turns back.
  • At these context lengths each ring checkpoint is about as large as a whole snapshot (960 MiB against about 1 GB at 14K tokens), so a default of two costs about 2 GB per conversation for that case.

Trimming the captured ring to its window (320 MiB) would change the balance. It touches the restore's exactness path, so it is left as a follow-up.

Measurements

GB10, gemma-4-12b-it-4bit, scripts/bench_prompt_cache_replay.py --edit-target n --verify, under gpu-lock. Record: docs/benchmark_results/gemma4-ctx-checkpoints-replay-gb10-2026-11-23.md, with per-turn CSVs. "Needed" is the history boundary of turn n - 1.

Arm A8 cached / needed ckpt inserts / hits A8 equals cold
main, nothing set, target 7 0 / 14481 0 / 0 yes
main, env switches, target 7 14481 / 14481 0 / 0 yes
main, env switches, target 6 12288 / 12853 0 / 0 yes
PR, flags unset, target 7 0 / 14481 0 / 0 yes
PR, --ctx-checkpoints 3, target 7 14481 / 14481 16 / 0 yes
PR, --ctx-checkpoints 3, target 6 12853 / 12853 16 / 1 yes
PR, --ctx-checkpoints 3, target 5 0 / 11307 (cap of 3 holds A5 to A7) 16 / 0 yes
PR, --ctx-checkpoints 3 --checkpoint-min-step 4096, target 5 8192 / 11307 16 / 0 yes
PR, --ctx-checkpoints 8, target 3 7924 / 7924 16 / 1 yes

Acceptance criterion 2, read literally: at target 7 (the edited previous user message), cached_tokens reaches the previous history boundary, but the turn is served by the keep-previous-turn whole snapshot, so that arm shows state_checkpoint_hits = 0. The ring checkpoint is the restore point at target 6 and, with a larger N, at target 3; both arms show state_checkpoint_inserts > 0 and state_checkpoint_hits = 1.

Every arm's --verify mismatches are plain chained whole-snapshot hits (A2 to A5, B2, B3, C2). A8 and the cold first turns never mismatch, and the same class occurs on main, so these are the #3040 bf16 differences. On the same binary, every non-edited turn has the same TTFT with and without --ctx-checkpoints 3 (within 0.1 s).

Tests

  • models::gemma4_ring_checkpoint_tests (ignored, run with --ignored): a 4-layer fixture with a wrapped window of 8. A checkpoint at boundary 13 plus an 18-token donor restores and decodes bit-for-bit equal to the cold run. The negative control (the donor's ring under the checkpoint's scalars) changes the logits.
  • models::kv_ring_checkpoint_tests: unwrapped ring, subset contents, family check, wrong ring length, a donor ring with no checkpoint ring.
  • cli::slot_args_tests: N > 0 and M >= 256 accepted, negatives and 1..=255 refused, flag precedence over the env switches, stale text gone.
  • prompt_cache::ctx_checkpoints_tests: the resolver's precedence, notices and kill switch.
  • prompt_cache::state_checkpoints_tests: N + 1 boundaries keep the newest N; the cap counts one conversation, not the session; spacing replaces close checkpoints; the cap and the spacing also hold when checkpoints arrive longest first; re-inserting a common ancestor after a fork keeps the count within the cap.
  • prompt_cache::snapshot_sizing_ring_tests: ring sizing by piece, gemma4_unified, Fp16 only, and Gemma 3 and AFMoE configs.

Local verification (remote CI is cancelled for this epic):

  • cargo clippy --lib --tests --features cuda -- -D warnings is clean.
  • cargo test --profile test-fast --features cuda --test cli_help_consistency: 27 passed. --test llama_compat_manifest: 4 passed.
  • scripts/ci/check_llama_compat_manifest.py, check_env_var_docs.py, tests/test_check_env_var_docs.py (15 passed), check_used_by.py, check_benchmark_raw_logs.py: all OK.
  • Lib tests, by module: prompt_cache 350 passed. slot_args, ctx_checkpoints, state_checkpoint, snapshot_sizing, kv_arch, runtime_settings: 129 passed. kv_ring_checkpoint 7, afmoe 32, models::gemma3:: 31, models::gemma4_tests 16, all eight models::gemma4:: submodules (74), vision::gemma4_unified 19, vision::processors::gemma4 33. The nine distributed::tensor_parallel gemma tests pass one per process with --exact.
  • Combined runs of the gemma3/gemma4 filters at full or 4-thread width abort intermittently with cudaStreamEndCapture ... previous error during capture. This is the parallel CUDA-graph failure the Makefile documents for the CUDA gate (it serializes for that reason). The same filter set passed once at full width (1051 passed), and every member passes in smaller groups or alone.

Changes during review

  • The cap and the spacing rule now run over the whole conversation lineage in both prefix directions. Before, they only counted stored checkpoints that were prefixes of the inserted one, so requests completing out of order could exceed N or keep two points closer than M (the byte budget still bounded memory).
  • Known limitation, documented on enforce_conversation_checkpoint_rules and pinned by a test: when a shorter common ancestor is re-inserted after a conversation forks, the cap applies across the sibling branches, so one branch can lose its checkpoints. This over-evicts and never over-retains. A per-branch rule belongs with the generic scheduler-owned path in refactor: Generalize prompt-cache state ownership from models to the scheduler #3254.
  • docs/environment-variables.md and docs/llama-server-compat.md now note that MLXCEL_PROMPT_CACHE_STATE_CHECKPOINT_CAPACITY_BYTES set without --ctx-checkpoints also enables ring checkpoints for Gemma 3, Gemma 4 and AFMoE, with no per-conversation cap.
  • CHANGELOG.md has an Added entry under Unreleased.
  • The security review found no critical or high findings (memory bounds, cross-session isolation, restore validation, input validation and sizing arithmetic all checked).

Closes #3255

Gemma 3, Gemma 4 (text, VL and Unified) and AFMoE now store ring-only turn-boundary state checkpoints: every sliding layer's ring once a ring has wrapped, nothing for KV-shared layers or unwrapped rings. A restore takes the sliding layers from the checkpoint and the full-attention layers from the donor cut back with standard_truncatable_to, under the existing donor and lineage rules.

--ctx-checkpoints N (N > 0) turns on keep-previous-turn and the state checkpoints the family supports and keeps at most N per conversation, dropping the oldest on insert. 0 sets the state checkpoint budget to 0 and leaves keep-previous-turn off. --checkpoint-min-step M sets the periodic checkpoint interval and the minimum spacing between state checkpoints of one conversation; 1 to 255 and negative values are refused. The flags override MLXCEL_PROMPT_CACHE_KEEP_PREVIOUS_TURN and MLXCEL_PROMPT_CACHE_CHECKPOINT_INTERVAL, and MLXCEL_DISABLE_BOUNDARY_SNAPSHOT=1 still disables everything with a warning.

The state checkpoint sizing gains a ring-only estimate from kv_arch (window x sliding bytes per token). The compat manifest moves both flags to by_design and the docs describe the mapping.
gemma-4-12b-it ships with model_type gemma4_unified, which the ring checkpoint family match missed, so --ctx-checkpoints left the state checkpoint budget at 0 on the real model.
A multi-token append keeps the newest window - 1 rows plus the whole piece, so a ring captured at a history boundary holds up to window - 1 + prefill chunk rows: 3071 on gemma-4-12b-it at the default 2048 chunk, about 960 MiB instead of the 320 MiB the window alone gives. Sized at the window, the default budget held 4 checkpoints instead of 12 and evicted the rest. The estimate now takes the prefill chunk (the representative prompt length when prefill is unchunked).
Thirteen arms of scripts/bench_prompt_cache_replay.py --verify on GB10: main with nothing set and with the env switches, and this branch with the flags unset, --ctx-checkpoints 3 at four edit targets, --checkpoint-min-step 4096 and --ctx-checkpoints 8. The record also explains why the sliding-window default stays off.
@inureyes inureyes added status:review Under review type:enhancement New features, capabilities, or significant additions priority:high High priority area:models Model architectures, weights, loading, metadata area:inference Generation, sampling, decoding (incl. speculative, DRY) area:cli Command-line interface / CLI flags labels Nov 22, 2026
Ring checkpoint sizing was only tested on a Gemma 4 config. A Gemma 3 config marks its global layers with sliding_window_pattern and an AFMoE config uses layer_types, and a miss in either would leave the ring budget at zero with no error. The new test pins both: 10 of 12 Gemma 3 layers and 3 of 4 AFMoE layers are sized at window - 1 + piece rows.

Refs #3255
@inureyes

Copy link
Copy Markdown
Member Author

Implementation Review Summary

Intent

Map --ctx-checkpoints / --checkpoint-min-step onto the prompt cache's checkpoints and give Gemma 3, Gemma 4 and AFMoE ring-only state checkpoints.

Findings Addressed

  • Ring checkpoint sizing had no Gemma 3 or AFMoE coverage; a test now pins both (LOW, 392b102)

Remaining Items

  • The per-conversation cap and spacing only look at checkpoints that are prefixes of the inserted one, so a shorter prefix inserted after a longer one (out-of-order completion) can exceed N or keep two points closer than M. The byte budget still bounds memory (MEDIUM)
  • With the flags unset, keep-previous-turn alone already serves the edited-previous-message case on Gemma 4 (14481/14481), but it is not defaulted for the rotating families. Item 5's ring default is correctly withheld; the keep-previous-turn half is an open decision (MEDIUM)
  • MLXCEL_PROMPT_CACHE_STATE_CHECKPOINT_CAPACITY_BYTES alone now turns on ring checkpoints for Gemma and AFMoE without a per-conversation cap; the env doc only mentions the flag path (LOW)
  • With --checkpoint-min-step M larger than a turn, the spacing rule keeps only the newest state checkpoint, so N is effectively 1 (LOW, matches the spec)
  • An unwrapped ring at boundary b stores no checkpoint even after the whole snapshot at b is superseded (LOW, as the issue specified)

Verification

  • All stated requirements implemented (item 5 withheld on measurements, documented)
  • No placeholder/mock code remaining
  • Integrated into project code flow (both binaries, startup, scheduler, /v1/cache/stats)
  • Project conventions followed
  • Existing modules reused where applicable
  • No unintended structural changes
  • Tests pass (changed-area lib tests, Gemma 4 fixture under the GPU lock, cli_help_consistency, llama_compat_manifest, clippy)

…eage

The per-conversation cap and the minimum spacing only considered stored checkpoints that were prefixes of the one just inserted. When requests of one conversation completed out of order, a shorter checkpoint inserted after a longer one saw nothing to compare against, so the cap could be exceeded and two boundaries closer than the spacing could both survive.

The rule set is now the inserted checkpoint plus every stored checkpoint of the same session bucket and session that is a prefix of it or extends it. Newer and newest keep meaning the longer boundary, not the later insertion: the spacing drops a checkpoint closer than the spacing to a longer kept one on its line, and the cap keeps the longest N. The inserted checkpoint can therefore be the one dropped. Forward-order results are unchanged.

Added regression tests for reverse-order insertion of N+1 boundaries and of two boundaries closer than the spacing.

Refs #3255
…E rings

Setting MLXCEL_PROMPT_CACHE_STATE_CHECKPOINT_CAPACITY_BYTES to a positive value without --ctx-checkpoints now also turns on ring checkpoints for Gemma 3, Gemma 4 and AFMoE, with no per-conversation cap. Documented this next to the variable in environment-variables.md and in the llama-server compatibility note. There is no Korean translation of these pages.

Refs #3255
@inureyes

Copy link
Copy Markdown
Member Author

Security and performance review (d1661e9)

No CRITICAL or HIGH findings, so no commits were made.

Checked and clean:

  • Memory bounds: insert_state_checkpoint refuses an entry larger than the budget, then LRU-evicts by real size_bytes, so a ring larger than the startup estimate cannot exceed the budget. Growth still goes through the host-memory gate. The ring subset shares buffers with the snapshot by refcount, so capture does not copy.
  • Isolation: the conversation rules filter on SessionlessBucketKey (model, LoRA, template, media digest, rope regime) plus session. The donor rule is unchanged. Multimodal requests never capture boundary snapshots (resolve_history_boundary), so a media bucket holds no checkpoints.
  • Restore: family and length are checked, the ring offset must equal the target, the window must match the configured one, and the geometry and shape are validated in restore_fp16_snapshot_state. State is installed only after every layer succeeds, and a refused restore discards the checkpoint and retries without it.
  • CLI and arithmetic: negative values and 0 < M < 256 are refused, a huge N is harmless, and the sizing uses saturating arithmetic.

MEDIUM:

  • state_checkpoints.rs:275: the cap is applied over the inserted checkpoint's whole line, including descendants on sibling branches. Re-inserting a common ancestor (for example a regenerate at turn k after an edit forked turn k+1) keeps the N longest across both branches and drops one branch's checkpoints. It over-evicts, never over-retains, and it contradicts the doc comment's "one chat is not counted against another".

LOW:

  • snapshot_sizing.rs:429: the entry size uses prefill_chunk_size at startup. A runtime-raised chunk makes bigger entries, so fewer than 12 fit. The bound still holds.
  • kv_ring_checkpoint.rs:66: on an unwrapped prompt, the wrapped check scans every layer with linear tensor() lookups and format!. This runs once per boundary snapshot and costs well under the snapshot itself.
  • enforce_conversation_checkpoint_rules scans all checkpoints under the write lock. This is O(n*L) with n about 12 by default, the same order as the existing orphan sweep.

Local: state_checkpoint 26, ctx_checkpoints 8, snapshot_sizing 23, slot_args 9, kv_ring_checkpoint 7, and the ignored Gemma 4 exactness test all pass. clippy --lib --tests -D warnings is clean.

The doc comment on enforce_conversation_checkpoint_rules said one chat's checkpoints are never counted against another's. That holds for chats with no shared prefix, but when a shorter common ancestor is re-inserted after a fork (edit at k + 1, then regenerate at k), its line contains every branch below it, so the cap applies across the siblings and one branch can lose its checkpoints. The comment now states this: it over-evicts and never over-retains. The rule itself is unchanged.

Add a unit test that pins the behavior (memory stays within the cap across both branches after the ancestor is re-inserted), and add the Unreleased changelog entry for --ctx-checkpoints and --checkpoint-min-step.

Validation:
- cargo test --profile test-fast --features cuda --lib state_checkpoints: 19 passed
- cargo clippy --lib --tests --features cuda -- -D warnings: clean

Refs #3255
@inureyes inureyes added status:done Completed and removed status:review Under review labels Nov 22, 2026
@inureyes
inureyes marked this pull request as ready for review November 22, 2026 23:56
@inureyes
inureyes merged commit bd931f7 into main Nov 22, 2026
1 of 16 checks passed
@inureyes
inureyes deleted the feature/issue-3255-ctx-checkpoints branch November 22, 2026 23:56
inureyes added a commit that referenced this pull request Nov 23, 2026
…3305)

## Summary

Per-sequence state moves from the model wrappers to the scheduler for Gemma 3 and Qwen 3.5 text, behind one per-layer abstraction, so snapshot, restore, truncation, turn-boundary checkpoints, pad trim and decode rewind are written once instead of once per family. Design and the family audit are in `docs/adr/0010-scheduler-owned-sequence-state.md`.

- `mlxcel_core::cache::LayerStateKind` replaces `LayerKv`; `LanguageModel::layer_state_kinds()` returns one kind per layer, or `None` to keep a family on its current path. `LayerState { Kv, Rotating, Chunked, Recurrent, Empty }` implements `KvAttention` by matching to the inner cache.
- `SequenceStateBackend::SchedulerOwned`: the pool entry holds `Vec<LayerState>`, also when the paged decode override allocates the entry as `PagedKvCache`.
- The forward cannot receive the state through `&mut [KVCache]`, so the engine calls a new `LanguageModel::forward_layer_state(request, rows)` for a sequence that holds layer state, and runs the pad trim, decode rewind and paged length mirror over the layers itself.
- `server::prompt_cache::state_snapshot` is the single snapshot, restore, truncation and checkpoint implementation, using the existing `kv_snapshot`, `kv_ring_checkpoint` and hybrid encoders, so stored snapshots keep their tensor names, shapes and scalars.
- Item 4 of the issue: Gemma 3's ring checkpoint goes through the generic path and its hooks are deleted. Gemma 4 and AFMoE stay model-owned and keep their #3255 hooks, which call the same `kv_ring_checkpoint` functions.
- Carried from the #3283 review: the `--ctx-checkpoints N` cap now counts one root-to-leaf line at a time, so a regenerated ancestor no longer evicts a sibling branch's checkpoints. A fork keeps up to `N` per branch; the byte budget bounds all branches.

## Changes after review

- The Gemma 3 wrapper refuses `forward_batched_with_ids`. The trait default would have run every row on the one shared fallback slot. The engine always takes the layer-state route first, so server requests never reached it.
- `Pooled::prepare_sequence_state` drops only the pool entry and no longer calls the model's release hook. The hook was deleting Qwen 3.5 MRoPE positions set before prepare, so a mixed MRoPE and text test had been testing two text rows.
- Whole, truncated and checkpoint restores all validate every layer through `check_restored_layer` before installing it. The checkpoint path skipped the check before. A full layer must hold at least `offset` rows, and a full layer with no rows must be at offset 0.
- The Qwen 3.5 MTP slice step fails the request cleanly when the pool entry has no layer state, instead of panicking in the adapter.
- Qwen 3.5 keeps its recurrent slot tables in place while lent, so a forward no longer allocates one `Vec` per linear layer and row.

## Deviations from the issue

- "Existing suites stay green unchanged": the assertions are unchanged, but `gemma3_tests`, `scheduler_model_owned_lookahead_tests` and the Qwen 3.5 model tests drove a sequence by id on the bare wrapper, which no longer holds one. Their fixtures now return `models::pooled_model::Pooled` (the model over a real `CachePool`), and four scheduler tests read the snapshot through `state_snapshot::snapshot_sequence_state`.
- Qwen 3.5's decoder still runs over `Qwen3NextCache`, shared with the unmigrated Qwen3-Next and Qwen4-Exp, and borrows the pool's layer state for each forward (moves, no copies).
- `exaone_moe` and `baichuan_m1` are not model-owned; the ADR corrects the table.
- The remaining model-owned families are not migrated here. Each family group has a follow-up issue under epic #3259: #3324 (Gemma 4, AFMoE), #3325 (other sliding-window families), #3326 (Llama 4), #3327 (linear-attention hybrids), #3328 (SSM and convolution hybrids), #3329 (composite per-layer state).

## Test plan

- [x] Bit-exact round trips on tiny fixtures, 16 decode steps against a cold run with the same partition: Gemma 3 ring unwrapped, ring wrapped, truncation inside the window, ring checkpoint over a longer donor; Qwen 3.5 whole snapshot and state checkpoint.
- [x] Byte compatibility: generic path against the model-owned encoders, tensor for tensor, with the names pinned.
- [x] Changed-area suites, serialized under the GPU lock: 2,134 lib tests (prompt cache, batch scheduler, pooled model, Qwen 3.5, Gemma 3, hybrid snapshot, ring checkpoint, vision, batched decode) and 919 `mlxcel-core` tests (cache, engine, generate, speculative). New tests: `a_sequence_id_on_the_batched_kv_slice_entry_is_refused`, `every_restore_refuses_attention_tensors_that_do_not_fit`, `scheduler_qwen35_slice_guard_tests`.
- [x] `cli_help_consistency`, `llama_compat_manifest`, `qwen38_mtp_chain_parity`, `make verify-env-var-docs verify-used-by`, clippy `-D warnings` on lib, tests and examples, `cargo fmt --check`.
- [x] Engine parity: qwen3.5-0.8b-4bit identical in 13 of 13 pairs. gemma-3-1b-it-4bit and gemma-4-e2b-it-4bit each have one `b:dense` against `b:dense+pc:miss` divergence that main at `bd931f76` reproduces at the same index with the same tokens, so it predates this PR.
- [x] Real checkpoints, main against branch, cache on with `--ctx-checkpoints 4`: identical replies and `/v1/cache/stats` over a three-turn chat, an edit and a replay on gemma-3-1b-it-4bit and qwen3.5-0.8b-4bit.
- [x] Decode rate, main against branch with a null arm (`docs/benchmark_results/scheduler-owned-state-decode-gb10-2026-11-23.md`): no cell shows a regression. Gemma 3 at B=4 read 2% to 4% low on a loaded host; on a quiet host (run 5, 12 samples per arm) the branch is 6.4% above main at 256 tokens and 3.1% above at 8192.
- [ ] `rollback_speculative_cache_panics_on_ragged_batched_accepts` (ignored) fails; the message it expects is absent from `qwen3_5.rs` on main as well.

Closes #3254
@inureyes inureyes added this to the 0.9 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Command-line interface / CLI flags area:inference Generation, sampling, decoding (incl. speculative, DRY) area:models Model architectures, weights, loading, metadata priority:high High priority status:done Completed type:enhancement New features, capabilities, or significant additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Support --ctx-checkpoints and --checkpoint-min-step for sliding-window families

1 participant