Home›Local LLM / Open Models›v0.40.17-rc1: mlxrunner が投機的デコードの検証をバッチ処理に対応 (#19663)
v0.40.17-rc1: mlxrunner: batch speculative verification (#19663)

v0.40.17-rc1: mlxrunner が投機的デコードの検証をバッチ処理に対応 (#19663)v0.40.17-rc1: mlxrunner: batch speculative verification (#19663)

元記事を読むRead original articlegithub.com(新しいタブで開きます)(opens in a new tab)
AI 要約AI summary

Ollama v0.40.17-rc1 の mlxrunner は、並行生成時もドラフト生成を止めず、ターゲットモデルでの検証を複数リクエストで共有できるようになった。サンプリングやキャッシュ巻き戻しは個別に維持され、MLX環境で同時利用する開発者の推論効率向上が期待できる。

Ollama v0.40.17-rc1 lets mlxrunner share target-model verification across concurrent requests, keeping speculative drafting active while per-request sampling and cache rollback stay intact. It helps MLX users serving parallel workloads.

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.17-rc1 で、mlxrunner が投機的デコードの検証をバッチ処理に対応した(#19663)。並行生成の場面でもドラフト生成を止めず、ターゲットモデルでの検証を共有できる点が変更の中心だ。

検証のバッチ処理

並行して生成を行うとき、ドラフトを有効に保ったまま、ターゲット側の検証を複数のリクエストで共有する。共有されるのは検証の部分であり、リクエストごとのサンプリングと、キャッシュの巻き戻し(rollback)は個別に維持されると説明されている。MLX で並列のワークロードを扱う利用者にとって、推論効率の面で意味のある変更とされる。

ドラフト深度の学習

ドラフト深度は、単独で実行されるリクエストから得た値とは切り離し、並行ワークロードごとに別々に学習する。あわせて、短いリクエストでは実行されないプローブも保持される。単独実行の結果を並行時にそのまま流用しない設計になっている。

特徴量の確保とテスト

実装面では、所有しているターゲットの特徴量を、リーダーが一時停止し得る前にマテリアライズ(実体化)する処理が加わった。テストでは、受理(acceptance)、キャンセル、ハンドオフ、混在したデコード、保持メモリの境界といった場面が対象になっている。コミットにはレビューコメントへの対応も含まれている。

Batch speculative verification

Ollama v0.40.17-rc1 changes how mlxrunner handles speculative decoding when several requests run at once. According to the release note (#19663), mlxrunner now batches speculative verification, so drafting can stay active during concurrent generation instead of being dropped when multiple requests overlap.

Sharing target verification

The core change is that concurrent requests share target verification. The note says this is done while preserving per-request sampling and cache rollback. Each request therefore keeps its own sampling behavior and its own ability to roll back the cache, even though the verification step is shared across requests.

The release summary frames this as relevant to MLX users who serve parallel workloads.

Learning draft depth

The note also describes how draft depth is chosen. Draft depth is learned for each concurrent workload separately from isolated requests. The change also preserves probes that short requests never execute, so that information is not lost for requests that finish before reaching those probes.

Safety and test coverage

The release note mentions a handling detail: owned target features are materialized before a reader can pause. It also lists the scenarios the change covers:

Acceptance, cancellation, and handoffs.

Mixed decoding.

Retained-memory boundaries.

The final line of the note, "address comments," indicates that the change was revised after review feedback. This is a release candidate (rc1), and the source gives no further details on measured performance, supported hardware, or configuration options.

ポコと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.

  1. ポコPoko並行して生成していても、ドラフト生成を止めないんだね。これって大きい変化なの?Drafting keeps going even during concurrent generation? Is that a big change?
  2. TECHガイドTECH Guide複数のリクエストで、ターゲットモデルの検証を共有できるようになったんだ。MLXで同時利用する人には、効率向上が期待できるよ。Yes, several requests can now share target-model verification. For people running things at the same time on MLX, that could mean better efficiency.
  3. ポコPokoドラフトとか検証って、そもそも何をしてるの?What are drafting and verification actually doing?
  4. TECHガイドTECH Guide下書き役が先に候補を出して、ターゲットモデルが確かめる、くらいの意味だよ。その確認をまとめて行うのが今回の話なんだ。Roughly, a draft step proposes candidates first, and the target model checks them. This update lets that checking be done together.
  5. ポコPokoローカルで複数のチャットを同時に動かすとき、役に立つかな? 返事が混ざったりしない?Could this help if I run several chats locally at once? Would the replies get mixed up?
  6. TECHガイドTECH Guideこの記事では、サンプリングやキャッシュ巻き戻しはリクエストごとに保たれるとあるよ。ただ rc1 だから、まずMLX環境で試す段階かもね。The post says sampling and cache rollback stay per request. It's still rc1, though, so it may be best to try it first in an MLX setup.
記事情報・収集記録Article details & collection record
出典Source
Ollama Releases公式Official
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
リリースRelease
原文言語Source language
英語English
重要度の位置づけImportance in this lane
InfoInformational(Local LLM / Open Models 239件中、同等以上 239件)(239 of 239 Local LLM / Open Models entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
1.3 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
短命 (ニュース)Short-lived (news)

🏠Local LLM / Open Models の他の記事More from Local LLM / Open Modelsもっと見る →View more →

ページ上部へScroll to top