ollama/mlxrunner/model/lfm3
Daniel Hiltgen ab9295d03c
mlx: support concurrent generation (#19197)
* mlx: batch requests through a shared scheduler

Use one request queue and scheduler for generation, decisions, embeddings
and speech, including parallelism one. Share compatible model operations
while keeping request caches, sampling state and response streams independent.

Interleave prompt chunks with decoding and retain speculative decoding when
generation runs alone. Cover isolation, cancellation, slow readers, cache
reuse and mixed requests with unit and integration tests. Remove the stale
llama-server architecture restriction on parallel requests.

* mlx: prevent cache snapshots from retaining batch peers

Copy each request’s initial batched K/V row so a sliding-cache snapshot cannot retain the whole batch allocation while accounting for only one row.

Exclude grammar compilation waits from prompt timing and reuse row-selected attention masks across layers.

Return errors for requests rejected before admission and strengthen numerical and compiled-speech regression checks.

* address comments
2026-11-10 13:24:12 -08:00
..
lfm3audio mlx: add LFM3 and d1 models (#19333) 2026-10-27 08:47:18 -07:00
lfm3speech mlx: support concurrent generation (#19197) 2026-11-10 13:24:12 -08:00
audio.go mlx: add LFM3 and d1 models (#19333) 2026-10-27 08:47:18 -07:00
audio_test.go mlx: add LFM3 and d1 models (#19333) 2026-10-27 08:47:18 -07:00
batch_test.go mlx: support concurrent generation (#19197) 2026-11-10 13:24:12 -08:00
decision.go mlx: add LFM3 and d1 models (#19333) 2026-10-27 08:47:18 -07:00
lfm3.go mlx: support concurrent generation (#19197) 2026-11-10 13:24:12 -08:00
media.go mlx: support concurrent generation (#19197) 2026-11-10 13:24:12 -08:00
speech.go mlx: support concurrent generation (#19197) 2026-11-10 13:24:12 -08:00
speech_test.go llm: LFM3 GGUF fixes and llama-server speech (#19344) 2026-10-27 18:56:22 -07:00
vision.go mlx: add LFM3 and d1 models (#19333) 2026-10-27 08:47:18 -07:00
vl.go mlx: add LFM3 and d1 models (#19333) 2026-10-27 08:47:18 -07:00