ollama/x
Daniel Hiltgen 06ae6367bd
mlx: fix RotatingKVCache.concat() dropping context on mid-rotation (#15591)
After the rotating buffer has wrapped (c.offset > c.maxSize) a subsequent
L>1 Update() went through a slice-to-[0, c.idx) path that discarded all
slots in [c.idx, Dim), losing the older-but-still-in-window tokens the
first Q of the new batch needs for its sliding-window attention.

Linearize the circular buffer to logical order in that wrapped case so
the existing trim + concat preserves the last (maxSize - 1) old tokens.
When the buffer has not yet wrapped (c.offset <= c.maxSize), slots
[c.idx, Dim) are grow padding or stale post-rewind data, so keep
dropping them.
2026-04-14 18:29:06 -07:00
..
agent x/cmd: enable web search and web fetch with flag (#13690) 2026-01-12 13:59:40 -08:00
cmd Reapply "don't require pulling stubs for cloud models" again (#14608) 2026-03-06 14:27:47 -08:00
create Gemma4 on MLX (#15244) 2026-04-13 16:36:51 -07:00
imagegen pull/push: refine safetensors (#14946) 2026-04-08 14:15:39 -07:00
mlxrunner mlx: fix RotatingKVCache.concat() dropping context on mid-rotation (#15591) 2026-04-14 18:29:06 -07:00
models mlx: Improve gemma4 performance with fused operations (#15587) 2026-04-14 18:04:04 -07:00
safetensors create: Clean up experimental paths, fix create from existing safetensor model (#14679) 2026-04-07 08:12:57 -07:00
server mlx: fix vision capability + min version (#15106) 2026-03-27 17:09:28 -07:00
tokenizer mlx: quantized embeddings, fast SwiGLU, and runtime fixes (#14884) 2026-03-17 11:21:38 -07:00
tools add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00