← Back to events
ActiveAIRelease0.34.2-rc2

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

What happened

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…

Summary assembled by rule from the sources below

Why it's spreading

Sources