Skip to content
AIBRAINWORX / OpenSourceCoder.comLOCAL-FIRST. BUILT IN THE OPEN.
Linux & Systems / Inference & Quantization / Developer & Agent Tools / Linux

Ollama v0.40.18-rc0 Adds Inkling-Only Metal Kernels for Faster Decode, Prefill, and Draft Rounds

Ollama release candidate v0.40.18-rc0 (#19843) introduces gated Inkling-only Metal kernels with stock-graph fallbacks, NVFP4/MXFP8 fused operations, in-place window caching, and an 8-bit/4-bit draft path.

Listen to this articleGoogle Voice
0:00
Official company logo or product image for ollama-v0-40-18-rc0-inkling2-metal-decode-prefill-draft
Official image or organization logo from github.com; identification only, no endorsement.
Event / context: 2026-11-23. Source check: October 28, 2026.

Ollama Targets Inkling Metal Execution in v0.40.18-rc0

Ollama has published release candidate v0.40.18-rc0 on GitHub, introducing a dedicated set of Metal GPU optimizations for Inkling models under pull request #19843. Tagged by maintainer dhiltgen on November 24, 2026 at 01:35 UTC (November 23, 2026 in Pacific Standard Time) at verified commit 924cc28, the pre-release centers on a single targeted change: accelerating Metal decode, prefill, and draft rounds for Inkling workloads.

Rather than applying universal graph rewrites across every supported architecture or backend, the update narrows its operational scope to Inkling-only Metal kernels. Every specialized kernel introduced in the release candidate ships alongside a stock-graph fallback and activates only when runtime checks match the target GPU generation and model size class. For macOS and Apple Metal developers tracking Ollama's upstream pre-releases, v0.40.18-rc0 signals focused low-level kernel engineering aimed at improving memory-bandwidth efficiency and compute dispatch without altering model output semantics.

Fused Metal Kernels and Mixed-Precision Compute Paths

According to the release notes for v0.40.18-rc0, the inkling2 optimization pass combines custom kernel fusion, mixed-precision data paths, and targeted attention and convolution primitives. At the arithmetic layer, the release introduces specialized handling for short BF16 products alongside deduplicated NVFP4 and MXFP8 expert gathers paired with fused SwiGLU activations. Deduplicating expert gathers reduces redundant memory fetches before the activation stage, while fusing SwiGLU keeps intermediate tensor state inside fast on-chip memory rather than writing and re-reading temporary buffers.

Beyond matrix math and expert routing, the release note enumerates several architectural kernels tailored to Inkling's network topology. These include fused loop controllers and residual mixing, relative-position split attention, and fused short convolutions. Combining loop control logic and residual stream mixing into single kernel dispatches cuts Metal command-buffer overhead and inter-kernel synchronization delays during token-by-token generation. Similarly, fusing short convolutions and splitting relative-position attention calculations lets the Metal backend align GPU execution more closely with the sequential and local-context structure of Inkling layers.

Prefill Speedups, In-Place Cache, and Exact Draft Proposals

The second major pillar of pull request #19843 addresses prompt processing and draft-assisted decoding. On the context-ingestion side, v0.40.18-rc0 introduces faster global prefill paired with an ordered window cache that appends in place. In-place cache appending avoids repeated buffer reallocations and full-window memory copies as bounded attention windows advance across incoming tokens, directly targeting memory-management overhead during sustained local sessions.

For draft rounds, the release adds an 8-bit draft mechanism coupled with a 4-bit vocabulary head. Crucially, Ollama specifies that this low-precision draft path is used for proposals only and that final outputs stay exact. By running token proposals at reduced bit widths across the draft layers and the wide vocabulary projection, the runtime lowers memory-bandwidth pressure during candidate generation while relying on the main precision path to verify and preserve exact output results.

Workflow Impact for Local Metal Inference Developers

For developers building local coding assistants, document processors, or agent loops on Apple Metal hardware, the design of v0.40.18-rc0 illustrates a practical deployment pattern: aggressive hardware-specialized kernels backed by deterministic fallbacks. Because each Inkling kernel is gated by GPU generation and size class and retains a stock-graph fallback, teams running heterogeneous fleets of Metal-capable machines do not need to manage separate model builds or manual runtime flags to avoid unsupported execution paths.

The addition of an in-place ordered window cache and faster global prefill also matters for interactive developer workflows where prompts frequently mix long context blocks with iterative follow-up turns. Faster prefill targets time-to-first-token when large prompts enter the pipeline, while lower-overhead decode and 8-bit/4-bit draft rounds target the interactive streaming phase. Because the release tag lists two release assets and carries a GitHub-verified GPG signature with key ID B5690EEEBB952194, downstream integrators can test the exact tagged pre-release artifact in staging environments before deciding whether to adopt it.

Release-Candidate Caveats, Gating Limits, and Benchmark Gaps

Several technical and operational caveats apply to v0.40.18-rc0. First, its optimizations are strictly Inkling-only and Metal-only; workloads using other model families or running on non-Metal backends receive no direct acceleration from these kernels. Second, because kernel activation is gated by GPU generation and size class, unsupported GPU generations and mismatched model configurations automatically drop back to the stock-graph execution path rather than running the new kernels.

Third, v0.40.18-rc0 is explicitly labeled a release candidate rather than a stable general-availability release, meaning edge-case regressions or further tuning may occur before a final v0.40.18 build. Most importantly for evaluation, the GitHub release page provides no quantitative throughput benchmarks, latency measurements, memory-footprint deltas, or percentage speedup claims for decode, prefill, or draft rounds, nor does the tag excerpt itself specify repository licensing details. Teams evaluating the update should measure token-generation rates and prefill latency on their own target Metal hardware and Inkling model sizes rather than assuming uniform gains across configurations.

EXPLORE THE SOURCE

GitHub repositories

Automated Vertex AI (gemini-4-hydrogen) primary-source report; reviewed 2026-11-24.

Follow your curiosity.

Pass the signal.