Skip to main content

Module prefix_cache

Module prefix_cache 

Source
Expand description

Bounded LRU checkpoints of complete hybrid-model sequence state.

StructsΒ§

Entry πŸ”’
Prefill πŸ”’
The cursor stays with its request; one advance processes at most one chunk.
PrefillProgress πŸ”’
PrefixCache πŸ”’

FunctionsΒ§

chunk_len πŸ”’
Balance a boundary’s chunks without exceeding memory or scheduling limits.
matches πŸ”’
pacing_sample πŸ”’
prefill_rows πŸ”’
Advance one prompt chunk and retain the predictions needed to resume decode.