← 返回事件
持续讨论AI发版0.34.2-rc2

v0.34.2-rc2: mlxrunner: Release freed KV buffers during speculative decode

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源