UPDATEollama v0.40.19
Ollama v0.40.19 speeds up short chats on Apple silicon
This Ollama update targets short-history attention, draft proposals, conversation snapshots, Engram buffers, and llama-server. Local chat teams on Apple silicon should try the faster path, then check output stability and long-session memory.
What changed in this release
18 checkpoints in 6 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Short-history attention
- Histories under 1024 keys now use Metal split-attention kernels.
- Short histories no longer widen the entire input to FP32.
- The new path avoids building a dense mask for every query.
- Split sums match the previous one-pass reduction to rounding.
Draft proposals
- Draft proposals skip candidates less than a tenth as likely as the highest-probability candidate.
- The adaptive selector projects only the candidate rows it uses.
- Verification still samples from request settings and corrects the proposal.
- Outputs stay unchanged, and drafters without adaptive depth are unaffected.
Single-request fusion
- A single request's unpadded block reuses fused attention merge.
- Single requests also reuse the gate fusion already used by batched requests.
Convolution snapshots
- Early convolution snapshots share one short window.
- Snapshots no longer copy the whole forward's input.
Engram history buffers
- The current Engram history-tail slice no longer retains the full history buffer.
- Batched snapshots manage ownership independently and retain only required tails.
llama-server update
- The bundled llama-server version moves from b12651 to b12734.
- The included range adds Inkling 2 DSpark support.
- Inkling 2 mix and control graphs use fewer operations.
- Prompt-cache entries survive until restore succeeds; retest that path after upgrading.
On this page
ContextThis release concentrates gains on short chats and conversation state
This release serves local conversations on Apple silicon: it speeds up short histories, draft proposals, and snapshots, reduces Engram history memory, and updates llama-server.
v0.40.17 brought Inkling 2 Mini to Apple silicon, and v0.40.18 expanded Metal decode, prefill, and draft rounds. v0.40.19 now targets short and medium chats plus snapshot and history-buffer memory.
The six groups are short-history attention, drafts, single-request fusion, convolution snapshots, Engram buffers, and llama-server. The figure below shows their distribution; the following sections explain what to verify after upgrading.
Short histories now use split attention, beyond long-context workloads
- Histories under 1024 keys now use Metal split-attention kernels, bringing short chats onto the path already used for longer histories.
- The new path avoids widening the full history to FP32 and building a dense mask per query, while matching the previous reduction to rounding.
- Other backends are unchanged; compare the same short chat with model, prompt, and context length held fixed.
Draft proposals filter weak candidates before vocabulary projection
- Draft proposals skip candidates less than a tenth as likely as the highest-probability candidate, focusing work on more promising tokens.
- The adaptive selector projects only the rows it uses onto the vocabulary instead of projecting every candidate row.
- Verification still uses request settings and corrects proposals, so outputs stay unchanged; drafters without adaptive depth are unaffected.
Single requests reuse the batched path's attention fusion
- Single requests reuse the batched path's fused computation; compare throughput and output for one-user and multi-user workloads separately.
- This targets the single-request path; test one-user and multi-user workloads separately rather than transferring batched gains to solo use.
Early convolution snapshots share a short window instead of copying input
- Early convolution snapshots share one short window instead of copying the whole forward's input.
- Snapshots still support conversation state capture; test continue-after-save, restore, and branch continuation.
- Compare continued output with a cold run using the same prefix to confirm that restored state does not change later output.
Engram keeps only the history tail to reduce long-chat memory
- The current Engram history-tail slice no longer retains the full history buffer; watch memory as long chats and snapshot counts grow.
- Engram snapshots retain only the required tail and can restore conversation state after the original cache is freed.
- Batched snapshot ownership is independent; teams running long or concurrent chats should watch for memory growth as snapshot counts rise.
llama-server moves to b12734 with Inkling and cache fixes
- The bundled llama-server version moves from b12651 to b12734, refreshing the underlying inference implementation.
- The included range adds Inkling 2 DSpark support and updates the underlying inference graph; retest existing draft and cache paths.
- Prompt-cache entries remain until restore succeeds; retest cache restore and drafts to confirm generation can resume.
Peer tools split the work between model runtime, state, and backends
On runtime environment and backend control, Ollama v0.40.19 changes Inkling/Engram paths and bundles llama-server, LM Studio 0.4.29 offers per-model engine/version overrides, and llama.cpp b12821 ships backend binaries with a Vulkan GDN change. These are different dimensions, not a ranked feature matrix.
Ollama binds the model runtime, LM Studio controls per-model runtimes inside a desktop app, and llama.cpp lets users choose backend binaries. Fix the model format, chip, and request shape before comparing speed; teams without runtime control should track that constraint separately.
Try Ollama first for Inkling on Apple silicon, LM Studio for per-model GGUF/MLX runtime pinning, and llama.cpp for self-selected backend binaries. Before migrating, verify whether model formats and conversation state can move with the workload. Choose the product form first, then the version that removes a concrete step.
| Shared dimension | Ollama v0.40.19 | LM Studio 0.4.29 | llama.cpp b12821 |
|---|---|---|---|
| Runtime and backend control | Bundles llama-server b12734 | Load settings offer per-model engine and version overrides | Ships backend binaries for macOS, Vulkan, CUDA, and other targets |
The update extends Metal kernels into short histories and conversation state
v0.40.18 expanded Inkling's Metal paths. v0.40.19 now tunes short histories, draft candidates, convolution snapshots, and Engram buffers as separate parts of everyday chat.
The sequence runs from Apple-silicon support in v0.40.17 to decode and drafts in v0.40.18, then short histories and state here. Verify that existing models and interfaces still work; old test samples remain useful controls when snapshot and memory checks are added. Use the same metrics across versions.
Read each row as an added action: kernels and drafting come first, then wider history coverage and lower snapshot memory; the llama-server number identifies the bundled update.
| Feature | v0.40.18 | v0.40.19 |
|---|---|---|
| Short-history attention | Inkling Metal kernels already included relative-position split attention with device-generation and size gates | Histories under 1024 keys also use split attention, avoiding FP32 expansion and per-query dense masks |
| Draft proposals | Added an 8-bit draft with a 4-bit vocabulary head; proposal changes kept outputs exact | Skips weak candidates and projects only rows used by the adaptive selector |
| Conversation and cache state | Ordered window cache appended in place; block-draft acceptance carried across requests | Early convolution snapshots share a short window; Engram tails and snapshots retain only required buffers |
| llama-server | Moved to b12651 and removed JetPack 5 support | Moved to b12734 with Inkling DSpark support, graph changes, and prompt-cache restore fixes |
Release analysisInkling and Engram teams should canary; other workloads follow regression results
Station view, not independently tested: teams most likely to benefit run Inkling on Apple silicon with frequent short chats or draft proposals; other workloads should follow their existing backend regression results. This release does not replace access, permission, or model-selection work. Teams already facing long-session memory pressure should include Engram in the evaluation. Benefits still depend on local samples.
LM Studio 0.4.29 emphasizes per-model runtime overrides, llama.cpp b12821 exposes backend and state choices, and Ollama v0.40.19 targets Inkling and Engram paths directly.
Station view, not independently tested: canary one development machine and keep rollback ready. Run fixed short and long chats, drafts, save/restore, and branches; record throughput, output differences, and peak memory.
Check outputs first, then restore and memory, and speed last. Vendor figures are not station benchmarks, and single-request results do not establish concurrent-user gains.
AIGenLab views
Not independently testedInkling teams should canary the upgrade on one development machine and keep the old version for rollback.
The changes concentrate on Inkling and Engram paths; the short-history attention change leaves other backends untouched, but the same release updates llama-server. Other workloads should follow backend regression results. This is a station view, not independently tested.
Validate output stability, snapshot restore, and Engram memory before comparing speed.
The announcement emphasizes output correction and state restoration while speed gains are path-specific; this is a station view, not independently tested.
Questions
What are the core features and fixes in v0.40.19?
Which teams should consider upgrading first?
What should be validated first after upgrading?
Which regression checks follow the llama-server version change?
Official sources and scope
- Ollama v0.40.19 release Release date and the three announced changes.
- Ollama PR #19881 Mechanisms and boundaries for short histories, drafts, single-request fusion, and snapshots.
- Ollama PR #19913 Engram contiguous tails, snapshot retention, and batched ownership.
- Ollama PR #19917 The bundled llama-server change from b12651 to b12734.
- llama.cpp b12651...b12734 comparison DSpark, Inkling graph, and cache-restore changes inside the version range.
- Ollama v0.40.18 release The previous release's four changes for the vertical comparison.
- Ollama PR #19843 Previous-release Metal kernel, draft, and window-cache details.
- Ollama v0.40.17 release Inkling 2 Mini and Apple-silicon context from v0.40.17.
- LM Studio changelog LM Studio 0.4.29 per-model engine/version overrides and Splash support.
- llama.cpp b12816 release In-place recurrent-state reads and speculative rollback snapshot handling.
- llama.cpp b12821 release Vulkan GDN optimization and multi-platform binary distribution.
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.