AIGenLab
EN

UPDATEollama v0.40.19

Ollama v0.40.19 speeds up short chats on Apple silicon

Version & typev0.40.19 · Feature
In short

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.

Read the original announcement

On this page
  1. Release inventory
  2. This release concentrates…
  3. Short histories now use s…
  4. Draft proposals filter we…
  5. Single requests reuse the…
  6. Early convolution snapsho…
  7. Engram keeps only the his…
  8. llama-server moves to b12…
  9. Peer tools split the work…
  10. The update extends Metal…
  11. Release analysis
  12. Questions
  13. Sources & method

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.

Distribution of the release's six groups: short histories and drafts lead, while Engram and llama-server address history memory and the underlying runtime.
Where the 18 grouped changes landWhere the 18 grouped changes landShort-history attention4Draft proposals4Single-request fusion2Convolution snapshots2Engram history buffers2llama-server update4
AIGenLab original

Short histories now use split attention, beyond long-context workloads

  1. Histories under 1024 keys now use Metal split-attention kernels, bringing short chats onto the path already used for longer histories.
  2. The new path avoids widening the full history to FP32 and building a dense mask per query, while matching the previous reduction to rounding.
  3. 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

  1. Draft proposals skip candidates less than a tenth as likely as the highest-probability candidate, focusing work on more promising tokens.
  2. The adaptive selector projects only the rows it uses onto the vocabulary instead of projecting every candidate row.
  3. 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

  1. Single requests reuse the batched path's fused computation; compare throughput and output for one-user and multi-user workloads separately.
  2. 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

  1. Early convolution snapshots share one short window instead of copying the whole forward's input.
  2. Snapshots still support conversation state capture; test continue-after-save, restore, and branch continuation.
  3. 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

  1. The current Engram history-tail slice no longer retains the full history buffer; watch memory as long chats and snapshot counts grow.
  2. Engram snapshots retain only the required tail and can restore conversation state after the original cache is freed.
  3. 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

  1. The bundled llama-server version moves from b12651 to b12734, refreshing the underlying inference implementation.
  2. The included range adds Inkling 2 DSpark support and updates the underlying inference graph; retest existing draft and cache paths.
  3. 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 dimensionOllama v0.40.19LM Studio 0.4.29llama.cpp b12821
Runtime and backend controlBundles llama-server b12734Load settings offer per-model engine and version overridesShips 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.

Featurev0.40.18v0.40.19
Short-history attentionInkling Metal kernels already included relative-position split attention with device-generation and size gatesHistories under 1024 keys also use split attention, avoiding FP32 expansion and per-query dense masks
Draft proposalsAdded an 8-bit draft with a 4-bit vocabulary head; proposal changes kept outputs exactSkips weak candidates and projects only rows used by the adaptive selector
Conversation and cache stateOrdered window cache appended in place; block-draft acceptance carried across requestsEarly convolution snapshots share a short window; Engram tails and snapshots retain only required buffers
llama-serverMoved to b12651 and removed JetPack 5 supportMoved 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 tested

Inkling 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?
Short histories, draft proposals, single requests, and early convolution snapshots use updated paths; Engram buffers retain less full data; llama-server moves from b12651 to b12734.
Which teams should consider upgrading first?
Station view, not independently tested: canary first on Apple silicon with Inkling, draft proposals, or Engram long-session memory pressure; decide for other workloads from backend regression results.
What should be validated first after upgrading?
Station view, not independently tested: confirm existing models and interfaces still work, compare fixed samples for output, save/restore, and branching, record peak memory for long and concurrent chats, then compare speed.
Which regression checks follow the llama-server version change?
The bundled version moves from b12651 to b12734 and includes Inkling 2 DSpark support, inference graph changes, and prompt-cache restore changes; retest draft and cache restore.

Official sources and scope

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.