Skip to content

v0.2.3

Choose a tag to compare

@cglab-public cglab-public released this 25 Nov 23:36
· 5 commits to main since this release
57d7b9f

What's New

Prefix Caching on 16 GiB Apple Silicon Macs

  • Adaptive 1-snapshot RadixPrefixCache on low_mem single-slot Macs: On single-slot 16 GiB Macs (gpu_low_mem && max_slots == 1), automatically allocate 1 boundary snapshot (~0.20 GiB) when it fits within the existing KV memory budget without reducing max_seq_len (e.g. Apple M4 16 GiB: est KV 0.95 GiB <= 1.12 GiB, actual 0.91 GiB at full 32,768 context). Multi-turn chats (including clients like pi that omit prior reasoning_content) now reuse the full block-aligned prompt prefix with 100% bit-exact greedy parity — verified live on Apple M4 16 GiB dropping 2.2K-token Turn 2 TTFT from 43.1 s -> 1.49 s (28.9× faster, cached=2176/2246).
  • 0-byte in-place slot prefix caching fallback (num_snapshots == 0): When a tighter memory budget requires num_snapshots == 0, single-slot servers retain the idle slot's KV/SConv/DFlash2 state and track exact forwarded tokens (match_inplace_slot_prefix) for lossless exact-extension reuse with 0 bytes of extra GPU memory.