v0.34.2-rc2: mlxrunner: Release freed KV buffers during speculative decode
- Ollama 近 90 天出现 39 次
- Ollama 近 90 天第 37 次发版
- 上一次:同一天稍早 · v0.34.2-rc1: mlxrunner: lay out model by contract, checkpoint and construction
发生了什么
The decode loop releases MLX's pool of freed buffers every 256 generated tokens, which is also how often the KV cache grows and drops its previous, smaller buffers. The check fires only when the token count lands exactly on a multiple of 256. Speculative decoding emits several tokens per round, so most rounds step over the boundary and the pool is never released. Each growth at a long context leaves several GB of bu…
摘要按规则整理自下方来源原文