ollama/x
Jesse Gross 5c73c4e2ee mlxrunner: Simplify KV cache to single-entry prefix matching
The KV cache previously used a tree structure which could
store multiple divergent sequences, which is good for cache
reuse. However, this is typically used in conjunction with
paged attention so each node in the tree can store just a
chunk of the KV cache and they can be stitched together later.
We don't currently do this, so the cache was storing copies of
the full cache for each past sequence.

This redundancy plus the lack of resource limits, caused significant
memory use as a conversation grew. Instead, this changes to store
a single entry for the cache, which can be prefix matched. Although
it is less ideal for multiple users, it largely matches Ollama's
current behavior. It can be improved as additional pieces are fleshed
out.
2026-02-23 09:50:07 -08:00
..
agent x/cmd: enable web search and web fetch with flag (#13690) 2026-01-12 13:59:40 -08:00
cmd add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00
create model: add qwen3 support to mlxrunner (#14293) 2026-02-17 13:58:49 -08:00
imagegen Revert "chore: update mlx-c bindings to 0.5.0 (#14303)" (#14316) 2026-02-18 17:01:25 -08:00
mlxrunner mlxrunner: Simplify KV cache to single-entry prefix matching 2026-02-23 09:50:07 -08:00
models mlxrunner: Fix memory leaks with pin/sweep lifecycle management 2026-02-23 09:50:07 -08:00
server bugfix: display the parameter count correctly in mlx for ollama show (#14285) 2026-02-16 13:03:34 -08:00
tokenizer consolidate the tokenizer (#14327) 2026-02-19 15:55:45 -08:00
tools add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00