You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MLX] Reduce physical footprint memory in RingBufferKVCache for chunked prefill (pytorch#20341)
When doing chunked prefill, the RingBufferKVCache does not need 2x
window size, but instead window_size + max_write_length - 1 (prefill
chunk size). This PR exposes that knob and wires it to gemma4 31b MLX
export, which uses chunk_size 256, smaller than gemma4's window size
(1024).
Reduces phys_footprint on a 4K export by around −0.68 GiB (from 13.84
GiB to 13.16 GiB).
---------
Co-authored-by: uddeshsingh <uddeshsingh@gmail.com>
0 commit comments