This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/docs
mici81andClaude Opus 5.5 74e701ea17 prefix cache: a snapshot at a head other prompts share
A model with snapshots (recurrent state, or a sliding window the cache does not index) resumes a
hit only at a snapshot, and those are taken on the checkpoint interval and at each prompt's tail.
A head every request starts with -- the same system prompt or instructions in front of a different
text, as a translation service sends its pieces -- is usually shorter than an interval, and each
tail is its own, so the head was computed again by every request.

The cache now counts the blocks published right after each block (Entry::n_children) and reports
where a lookup leaves a head that at least two cached prompts already left differently
(CacheHit::branch_at; one is not enough, the next prompt could be the same conversation going on).
When nothing resumes within kSharedHeadMin (256) tokens of that point, admission sets the request's
own checkpoint there (Request::checkpoint_at, which n > 1 already uses), and the requests after it
skip the head.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-27 18:17:21 +01:00
..
2026-10-27 16:47:35 +01:00
2026-10-23 11:57:52 +02:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00
2026-10-24 13:12:28 +02:00
2026-10-27 16:47:35 +01:00
2026-10-16 18:25:18 +02:00
2026-10-27 16:47:35 +01:00
2026-10-24 13:12:28 +02:00
2026-10-27 16:47:35 +01:00
2026-10-16 18:25:18 +02:00
2026-10-27 16:47:35 +01:00
2026-10-24 13:12:28 +02:00
2026-10-16 18:25:18 +02:00