Meta、オンデバイス AI「Muse Glimmer」と ExecuTorch の新機能を発表
本文の状態
日本語全文を表示中
詳細モードで約9分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
PyTorch Blog
Meta は Muse Spark から蒸留された 300 億パラメータのオープンウェイトモデル「Muse Glimmer」を発表し、オンデバイスでのエージェントワークフローに最適化されている。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るAI深層分析を開く2026年8月10日 22:50
AI深層分析
キーポイント
Muse Glimmer の発表と特徴
Meta は Muse Spark から蒸留された 300 億パラメータのオープンウェイトモデル「Muse Glimmer」を発表し、オンデバイスでのエージェントワークフローに最適化されている。
ExecuTorch の技術的アプローチ
ExecuTorch は PyTorch で実装されたモデルをエクスポートするだけで、バックエンド固有の最適化や事前コンパイルを自動処理し、複雑な最新アーキテクチャへのスケーラビリティを提供する。
DFlash などの高度機能の実装
本発表では低遅延を実現する並列拡散ベースの推測デコーディング「DFlash」や、128K トークン以上のコンテキスト長、GGUF エクスポート、ネイティブ K-quant 実行がサポートされる。
開発者向けの事前構築アーティファクト
Meta は NVIDIA CUDA および Apple Silicon (Metal) 対応の検証済み PTE アーティファクトを Hugging Face で公開し、開発者がすぐに実行・利用できるようにしている。
推論速度の向上
M5 Pro 環境での実験により、スペキュレーションデコーディング(DFlash)を使用することで、単体実行と比較してトークン生成速度が約 53% 向上した。
重要な引用
ExecuTorch takes a different approach. As machine learning engineers and researchers, you implement the model (and its decoding strategy) in PyTorch.
Ahead-of-time compilation optimizes the full execution path end-to-end, not just individual ops.
We have released prebuilt PTE artifact bundles that you can download and run on supported NVIDIA GPUs or Macs with Apple silicon using the ExecuTorch runtime.
Solo achieves 21.6 tok/s, while our speculative decoding set up (DFlash) reaches 33.0 tok/s, a 52.8% performance improvement without quality regression
編集コメントを表示
編集コメント
オンデバイスでの複雑なエージェントワークフローを可能にする技術的ハードルが、ExecuTorch の事前コンパイル機能によって劇的に低下した。開発者は今すぐ Hugging Face からアーティファクトを取得し、ローカル環境で最先端の推論性能を試すことができる。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
本日、Meta はオンデバイスでのエージェントワークフロー向けに、自社の Muse Spark から蒸留されたオープンウェイトの 300 億パラメータモデル「Muse Glimmer」を発表しました。これに合わせて ExecuTorch も、NVIDIA GPU や Apple シリコン搭載 Mac で Muse Glimmer を実行するためのエンドツーエンドサポートを追加しています。
なぜ ExecuTorch か?
多くのローカル AI フレームワークは、モデルを Python 以外の言語に書き換えてしまいます。LLM が標準的なテキストトランスフォーマーだった頃はこれで規模拡大が可能でしたが、現在のモデルは複雑化しており、新しいアーキテクチャやマルチモーダル入出力、低遅延を実現する DFlash(並列拡散ベースの推測デコーディング)のような高度なデコーディングアルゴリズムなどを備えています。こうした機能を異なるバックエンドで再実装するのはスケーラブルではありません。
ExecuTorch は異なるアプローチを採用しています。機械学習エンジニアや研究者は、モデルとそのデコーディング戦略を PyTorch で実装します。デプロイの準備ができたら ExecuTorch へエクスポートするだけで、フレームワークがバックエンド固有のローイング(CUDA 上の Triton、Apple シリコン上の MLX ネイティブおよびカスタム Metal など)を処理します。事前コンパイルにより、個々の演算ではなく実行パス全体を最適化できます。
これが Muse Glimmer のテキスト・画像入力の提供、GGUF の直接エクスポート、ネイティブ K-quant 実行、128K トークン以上のコンテキスト、そして DFlash 推測デコーディング機能を実現する仕組みです。すでに NVIDIA GPU または Apple シリコン搭載 Mac で ExecuTorch ランタイムを使って実行できる事前構築済みの PTE アーティファクトバンドルを公開しています。
クイックスタート
PTE の入手
PTE(PyTorch Exported)とは、ExecuTorch の Python スack がモデルの PyTorch グラフを事前にシリアライズして生成するアーティファクトで、特定のターゲットバックエンド向けに最適化されたものです。
ダウンロード(推奨)
NVIDIA CUDA および Apple Silicon (Metal) 向けの検証済み PTE を Hugging Face で公開しています。これにはテキスト専用とテキスト+画像の両方のアーティファクトが含まれており、DFlash による推測的デコーディングの有無を選べます。こちらからダウンロードできます:link。
自分で構築する
すでに用意された PTE を使うのが最も速い方法です。自分用にビルドしたい場合は、ExecuTorch Muse Glimmer の README に従って、バックエンド、モダリティ(テキスト/画像)、コンテキスト長、そして DFlash を使用するかどうかを選択してください。ExecuTorch は、torch.export ベースの事前最適化スタックを通じて、公開されている GGUF チェックポイントから直接エクスポートを行います。CUDA 向けエクスポートでは、検出された GPU アーキテクチャに合わせて Triton カーネルをコンパイルし、自動調整(autotune)します。最高の結果を得るには、その PTE を実行するのと同じ GPU アーキテクチャ上でエクスポートを行ってください。
PTE の実行方法
- ランタイムの構築
このモデルランナー向けに、ExecuTorch は CUDA および MLX バックエンド用の CMake プリセットを提供しています。ExecuTorch のインストール手順はこちらに従い、選択した PTE に対して推測的デコーディングの有無に関わらず、CMake を使ってランナーをビルドしてください。DFlash を使用する場合も使用しない場合も、両方のランナーはテキストと画像のモダリティをサポートしており、ExecuTorch のアジェンティックユースケース向け例である llm_server と互換性があります。
ランタイムの構築 ###
ExecuTorch のインストールが完了したら、各バックエンド用のランナーをビルドします。
$ cd examples/models/muse-glimmer
$ cmake --workflow --preset muse-glimmer-cuda # macOS の場合は muse-glimmer-mlx を使用
これにより、solo_runner、dflash_runner、およびサービングワーカーが構築されます。
- PTE の実行
ランナーのビルドが完了したら、以下に PTE の実行例を示します。
例 1: コマンドラインでのスタンドアロン推論 ###
$ PROMPT='userDescribe this image: assistant'
$ cmake-out/examples/models/muse-glimmer/dflash_runner \
--model_path artifacts/dflash-vision/model.pte \
--data_path artifacts/dflash-vision/aoti_cuda_blob.ptd \
--tokenizer_path assets/hf/tokenizer.json \
--image_path image.jpg --prompt "$PROMPT" \
--block_length 4 --n_draft 3 --temperature 0 --max_new_tokens 256
例 2, ステップ 1/2: エージェントサーバーの起動 ###
$ python -m executorch.examples.models.muse_glimmer.serving.serve \
--model-path artifacts/dflash-vision/model.pte \
--data-path artifacts/dflash-vision/aoti_cuda_blob.ptd # CUDA の場合のみ必要
--tokenizer-path assets/hf/tokenizer.json --hf-tokenizer assets/hf \
--worker-bin cmake-out/examples/models/muse-glimmer/muse_glimmer_worker \
--tool-parser atem --max-context 131072
APIs は http://127.0.0.1:8000/v1 で利用可能です
例 2, ステップ 2/2: エージェントの起動(Pi を例に) ###
$ pi \
--provider muse-glimmer-local \
--model muse-glimmer \
--thinking high \
--tools read,bash,edit,write
これにより、ローカルの Muse Glimmer サーバーを使用して自動的に Pi エージェントが起動します。
~/.pi/agent/models.json に muse_glimmer-local を登録してください。
詳細は README.md をご覧ください。
実現可能なユースケース ###
Muse Glimmer による画像理解(スペキュレティブ・ディコーディングあり・なし)
image図 1: M5 Pro (64 GiB) における Muse Glimmer のテキスト・画像入力実験。Solo モデルでは 21.6 tok/s を達成しましたが、当社の推測デコーディング設定(DFlash)では 33.0 tok/s に達し、品質の低下を招くことなく 52.8% の性能向上を実現しました。
Muse Glimmer が ExecuTorch を介して Pi コーディングエージェントを駆動
image図 2: M5 Pro (64 GB) 上で Pi コーディングエージェントを活用した Muse Glimmer エージェントパイプライン。このエージェントは鳥をテーマにしたゲームを作成し、推論の延長を通じて詳細を反復的に改善します。必要なパッケージのインストールやファイル作成にはツールを呼び出し、テストの記述と実行も行います。さらに、次のステップや追加要件についてユーザーに積極的に質問して進めます。
パフォーマンス
image図 3: NVIDIA A100 (RTX カードの代理として使用) と Apple Mac M5 Max における、コンテキストサイズを変えたテキスト単一入力での ExecuTorch 上の Muse Glimmer パフォーマンス。コーディングプロンプト(このモデルではデコードチャートで示されるように高い受容率を示す)を使用し、DFlash を有する場合とない場合のプリフェッチおよびデコード性能をトークン/秒単位で測定しました。
内部構造
Muse Glimmer は、NVIDIA GPU と Apple Silicon の両方で ExecuTorch 上でエンドツーエンドで動作するようになりました。ここでは、私たちが実装した主要な機能と最適化の一部をご紹介します。
DFlash による推測的デコーディングの実現
ターゲットモデルとドラフトモデルの相互運用性を重み共有を通じて最適化し、両方を単一の PTE にエクスポートしました。
DFlash のブロック次元は動的にエクスポートされるため、1 つの PTE で実行時にブロック長を選択可能にしています。
ランタイムでは、グリーディーデコーディングとリジェクションサンプリングの両方に対応しています。
GGUF 形式の読み込みと k-quant のサポート
Muse Glimmer とともに公開された GGUF ファイルから直接エクスポートを行います。
CUDA では Q4_K/Q5_K/Q6_K を dp4a GEMV カーネルを用いてパッキングされた INT4/5/6 にマッピングし、MLX では再パッキングまたは統合された Metal カーネルにマッピングします。
MLX においては性能向上のため、再パッキング時にスケールと最小値が同一の隣接サブブロックを損失なく結合できる場合、最大 128 のグループサイズまで統合して処理を行います。
エージェント型ハーンチスと LLM サービング
セッションごとの可変状態のリバインディング機能を両バックエンドに追加したことで、単一のモデル読み込みで複数の独立した会話に対応可能になりました。
推論ルーティングを備えた Harmony チャットテンプレートを実装しました。
1 つのターン内で複数回のツール呼び出しを含む、モデル固有の XML ツールコール形式用のパーサーを追加しています。
バックエンド固有のパフォーマンス最適化
CUDA
デコーディング処理を CUDA グラフとしてキャプチャし、カーネルごとの起動オーバーヘッドを 1 つの送信に統合することで削減しました。
低バッチのデコード処理を加速する K-quant カーネルと、単一トークンのデコードおよび小規模な DFlash 検証ブロックを最適化する長さ認識型の split-K FlashDecoding++ パスを実装しています。
MLX では、RMSNorm、RoPE、SDPA、KV キャッシュの更新、量子化された線形演算などが MLX ネイティブまたはカスタム Metal 実装に lowered されます。GGUF K-quant の重みは、リパックされた MLX ネイティブ演算か、融合された Metal カーネルのいずれかを使用します。
長いコンテキストへの対応
Muse Glimmer は 128K トークン以上のコンテキストをサポートしており、KV キャッシュの成長効率にも優れています。52 レイヤーのうちグローバルなレイヤーは 13 のみで、残りの 39 レイヤーはスライディングウィンドウ方式を採用しています。ExecuTorch はこれを効率的にサポートするため、エッジデバイスでの長いコンテキスト利用が現実的なものとなります。
今後の展望
今回の初期リリースではテキストと画像の入力に対応していますが、動画入力はまだ未対応です。現在も開発中の機能です。
現時点では、セッション間でのプレフィックス共有やチェックポイント、連続バッチ処理はサポートされていません。これらはすべて、ExecuTorch をエージェントワークフローにより適したものにすべく、積極的に取り組まれている項目です。
Muse Glimmer を ExecuTorch でお試しください。Discord でお気づきの点を教えていただければ幸いです。また、問題が発生した場合は Github Issue の作成もご遠慮なくおこなってください。
参考文献
Muse Glimmer in ExecuTorch | Muse Glimmer on Hugging Face | ExecuTorch Documentation | ExecuTorch on Github
原文を表示
Today, Meta introduced Muse Glimmer, an open-weight, 30-billion-parameter model distilled from Meta’s Muse Spark for on-device agentic workflows. Alongside, ExecuTorch is adding end-to-end support for running Muse Glimmer on NVIDIA GPUs and Macs with Apple silicon.
Why ExecuTorch?
Most local AI frameworks rewrite models in other non-Python languages. That scaled well when LLMs were standard text transformers, but today’s models are becoming more complex – novel architectures, multimodal inputs and outputs, advanced decoding algorithms like DFlash (parallel diffusion-based speculative decoding) for low latency. Reimplementing these across different backends doesn’t scale.
ExecuTorch takes a different approach. As machine learning engineers and researchers, you implement the model (and its decoding strategy) in PyTorch. Once you’re ready for deployment, you export to ExecuTorch, and the framework handles backend-specific lowering, Triton on CUDA, MLX-native and custom Metal on Apple silicon. Ahead-of-time compilation optimizes the full execution path end-to-end, not just individual ops.
This is how we ship Muse Glimmer’s text and image inputs, direct GGUF export, native K-quant execution, 128K+-token context, and DFlash speculative decoding features. We have released prebuilt PTE artifact bundles that you can download and run on supported NVIDIA GPUs or Macs with Apple silicon using the ExecuTorch runtime.
Quickstart
Getting the PTEs
A PTE is the serialized artifact produced ahead of time from a model’s PyTorch graph by the ExecuTorch Python stack, and optimized for a target backend.
Download (Preferred)
We have published verified PTEs on Hugging Face for NVIDIA CUDA and Apple Silicon (Metal). This includes text-only and text-plus-image artifacts, with and without DFlash speculative decoding. Download them here: link.
Build your own
Starting with a prebuilt PTE is the fastest way to get running. To build your own, follow the ExecuTorch Muse Glimmer README, and select the backend, modality, context length, and whether to use DFlash. ExecuTorch exports directly from the released GGUF checkpoints through its torch.export-based ahead-of-time stack. CUDA export compiles and autotunes Triton kernels for the detected GPU architecture. For the best results, export on the same GPU architecture that will run the artifact.
Executing the PTEs
- Build the runtime
ExecuTorch ships CMake presets for both the CUDA and MLX backends for this model runner(s). Follow ExecuTorch installation instructions here, and then use CMake to build the runners with or without speculative decoding for the PTE you selected. Both, with and without DFlash, runners support text and image modalities and are compatible with the example llm_server in ExecuTorch for agentic use cases.
Build the runtime ###
After installing ExecuTorch, build the runners for your backend:
$ cd examples/models/muse-glimmer
$ cmake --workflow --preset muse-glimmer-cuda # use muse-glimmer-mlx for macOS
This builds solo_runner, dflash_runner, and the serving worker.
- Run the PTEs
Here are some examples of how to run the PTEs, once you have built the runners.
Example 1: Standalone infereance on cmdline ###
$ PROMPT='userDescribe this image: assistant'
$ cmake-out/examples/models/muse-glimmer/dflash_runner \
--model_path artifacts/dflash-vision/model.pte \
--data_path artifacts/dflash-vision/aoti_cuda_blob.ptd \
--tokenizer_path assets/hf/tokenizer.json \
--image_path image.jpg --prompt "$PROMPT" \
--block_length 4 --n_draft 3 --temperature 0 --max_new_tokens 256
Example 2, step 1/2: Start the agent server ###
$ python -m executorch.examples.models.muse_glimmer.serving.serve \
--model-path artifacts/dflash-vision/model.pte \
--data-path artifacts/dflash-vision/aoti_cuda_blob.ptd \ # only for cuda
--tokenizer-path assets/hf/tokenizer.json --hf-tokenizer assets/hf \
--worker-bin cmake-out/examples/models/muse-glimmer/muse_glimmer_worker \
--tool-parser atem --max-context 131072
APIs at http://127.0.0.1:8000/v1
Example 2, step 2/2: Start your agent (use Pi as example) ###
$ pi \
--provider muse-glimmer-local \
--model muse-glimmer \
--thinking high \
--tools read,bash,edit,write
This will automatically start your pi agent by using your local muse glimmer server.
Register muse_glimmer-local in ~/.pi/agent/models.json first.
See the README.md for more details.
Use cases enabled
Image understanding with Muse Glimmer, with and without speculative decoding
imageFigure 1: Muse Glimmer text-image input experiment on M5 Pro (64 GiB). Solo achieves 21.6 tok/s, while our speculative decoding set up (DFlash) reaches 33.0 tok/s, a 52.8% performance improvement without quality regression
Muse Glimmer powering Pi Coding Agent through ExecuTorch
imageFigure 2: Muse Glimmer agent pipeline on an M5 Pro (64 GB) using the Pi coding agent. The agent creates a bird-themed game, iteratively refining details through extended reasoning, calling tools to create files, installing required packages, writing and running tests, and proactively asking the user about next steps and additional requirements
Performance
imageFigure 3: Muse Glimmer performance on ExecuTorch using text-only input with varying context on NVIDIA A100 (as a proxy for RTX cards) and Apple Mac with an M5-max measuring prefill and decode performance in tokens/second with and without DFlash using coding prompt, which also has a good acceptance rate for this model, as seen in the decode charts
Under the Hood
Muse Glimmer now runs end-to-end on ExecuTorch on both NVIDIA GPUs and Apple Silicon GPUs. Here are some of the key capabilities and optimizations we built.
Enabling DFlash speculative decoding
We optimized target and draft interoperability through weight sharing, exporting both into a single PTE.
The DFlash block dimension is exported dynamically, allowing one PTE to support runtime-selectable block lengths.
The runtime supports both greedy decoding and rejection sampling.
Supporting GGUF loading and k-quant
We export straight from the GGUF released with the Muse Glimmer.
We map Q4_K/Q5_K/Q6_K to packed INT4/5/6 with dp4a GEMV kernels on CUDA, and to repacked or fused Metal kernels on MLX.
On MLX, for performance, at repack time we merge adjacent sub-blocks whose scale and min are identical into a larger group size, up to 128, whenever the merge is lossless.
Agentic harness and LLM serving
One model load serves multiple isolated conversations, through per-session mutable-state rebinding we added to both backends.
We added Harmony chat templating with reasoning routing.
We added a parser for the model’s XML tool-call format, including multiple calls in one turn.
Backend-specific performance optimizations
CUDA
We capture decode into a CUDA graph, reducing per-kernel launch overhead into one submission.
Packed K-quant kernels accelerate low-batch decode, while length-aware split-K FlashDecoding++ paths optimize single-token decode and small DFlash verification blocks.
MLX
RMSNorm, RoPE, SDPA, KV-cache updates, and quantized linear operations are lowered to MLX-native or custom Metal implementations.
GGUF K-quant weights use either repacked MLX-native operations or fused Metal kernels.
Supporting long context
Muse Glimmer supports a 128K+ token context, and is efficient in how its KV-cache grows: only 13 of its 52 layers are global; the other 39 are sliding-window. ExecuTorch supports this efficiently, making the long context use cases practical on edge devices.
What’s next
This initial release supports text and image inputs; video input is not yet supported. It is a work in progress.
No cross-session prefix sharing or checkpointing or continuous batching as of now. These are all actively being worked on to make ExecuTorch even more suitable for agentic workflows.
Try Muse Glimmer with ExecuTorch and let us know what you think on Discord. If you run into any issues, feel free to open a Github Issue.
References
Muse Glimmer in ExecuTorch | Muse Glimmer on Hugging Face | ExecuTorch Documentation | ExecuTorch on Github
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み