v0.40.18-rc0: inkling2のMetal向けデコード・プリフィル・ドラフト処理を高速化 (#19843)v0.40.18-rc0: inkling2: faster Metal decode, prefill and draft rounds (#19843)
Ollama v0.40.18-rc0はInkling向けのMetal専用カーネルを追加し、NVFP4/MXFP8のエキスパート処理や分割アテンション、プリフィルを高速化した。ドラフトは8ビット化しても出力は変わらず、Apple Siliconで動かす利用者に恩恵がある。
Ollama v0.40.18-rc0 adds Inkling-specific Metal kernels with fallbacks, speeding up NVFP4/MXFP8 expert handling, split attention and prefill, plus an 8-bit draft model that keeps outputs exact. Mac users running Inkling benefit.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (github.com) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (github.com).
Ollama v0.40.18-rc0 では、inkling2 向けにMetal用カーネル群が追加され、デコード、プリフィル、ドラフトラウンドが高速化された。Apple Siliconで Inkling を動かす利用者に恩恵があるとされる。
Inkling専用カーネル
今回のカーネルはいずれも Inkling 専用で、それぞれにストックグラフへのフォールバックが用意されている。有効にするかどうかは、GPUの世代とサイズクラスによって切り替わる仕組みだ。
エキスパート処理と分割アテンション
デコード側では複数の最適化が入った。短いBF16積のカーネルに加え、NVFP4/MXFP8 のエキスパートギャザーでは重複を排除し、SwiGLU を融合している。ループコントローラと残差ミキシングも融合され、相対位置の分割アテンションや、短い畳み込みの融合カーネルも加わった。
プリフィルとウィンドウキャッシュ
プリフィルでは、グローバルなプリフィルが高速化された。あわせて、順序付きのウィンドウキャッシュが導入され、追加分をその場で書き込む(append in place)方式で扱われる。
8ビットのドラフト
ドラフトは8ビット化され、語彙ヘッドには4ビットが使われる。この低ビット化されたドラフトは候補の提案にのみ用いられるため、最終的な出力は従来と同じく正確なまま保たれると説明されている。
Ollama v0.40.18-rc0 is a release candidate whose headline change targets Inkling on Metal. The change, tracked as #19843 and titled "inkling2: faster Metal decode, prefill and draft rounds," speeds up three stages of running the model: decode, prefill and draft rounds.
Inkling-only Metal kernels
According to the release note, the new Metal kernels apply to Inkling only. Each one comes with a stock-graph fallback, and each is gated by GPU generation and size class. The kernels are therefore not applied across the board, and a fallback path exists for each of them.
Expert gathers and attention
The note lists several specific kernel changes. They include short BF16 products and deduplicated NVFP4/MXFP8 expert gathers with fused SwiGLU. Fused loop controllers and residual mixing are also listed.
On the attention side, the release adds relative-position split attention. It also adds fused short convolutions. The summary describes these changes as speeding up NVFP4/MXFP8 expert handling and split attention.
Prefill and window cache
For prefill, the release describes a faster global prefill. It also adds an ordered window cache that appends in place. The note does not give benchmark figures, so the size of the speedups is not stated.
Exact outputs with 8-bit draft
The last item is an 8-bit draft model paired with a 4-bit vocabulary head. The note says this draft is used for proposals only and that outputs stay exact. In other words, the lower-precision draft changes how candidates are proposed, not the final results.
The release summary says the work benefits Mac users who run Inkling. It is a release-candidate build, as the "rc0" suffix indicates.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPokoInkling専用のMetalカーネルを足したって書いてあるけど、何が速くなるの?They added Inkling-only Metal kernels, right? What actually gets faster?
- TECHガイドTECH Guideこの記事だと、NVFP4/MXFP8のエキスパート処理、分割アテンション、プリフィル、ドラフト処理などの高速化が挙がっています。The post lists faster NVFP4/MXFP8 expert handling, split attention, prefill, and draft rounds, among other pieces.
- ポコPokoMetalってことは、Macで動かす人に役立つのかな?GPUが合わないとどうなるの?Metal means it helps people running this on a Mac, right? What if the GPU doesn't fit?
- TECHガイドTECH Guideそうですね、Apple Siliconで使う人向けの変更です。各カーネルには標準グラフへのフォールバックがあり、GPUの世代やサイズ区分で使い分ける設計です。Yes, it's aimed at Apple Silicon users. Each kernel has a stock-graph fallback, and use is gated by GPU generation and size class.
- ポコPokoドラフトを8ビットにしても、出力は変わらないんだね。精度が落ちないなら安心かも。So the draft goes 8-bit but outputs stay exact. That sounds reassuring if accuracy holds.
- TECHガイドTECH Guideはい、ドラフトは提案用で出力は変わらないと書かれています。ただ、これはrc0で、実際の速さの数値は記事にはないので、試して確かめたいですね。Right, the draft only makes proposals. But this is rc0, and the post gives no speed numbers, so it's worth testing yourself.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy