View in English

  • Apple Developer
    • 今すぐ始める

    「今すぐ始める」を詳しく見る

    • 概要
    • 学ぶ
    • Apple Developer Program

    最新情報

    • 最新ニュース
    • Hello Developer
    • プラットフォーム

    プラットフォームを詳しく見る

    • Appleプラットフォーム
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    特集

    • デザイン
    • 配信
    • ゲーム
    • アクセサリ
    • Web
    • Home
    • CarPlay
    • テクノロジー

    テクノロジーを詳しく見る

    • 概要
    • Xcode
    • Swift
    • SwiftUI

    特集

    • アクセシビリティ
    • App Intent
    • Apple Intelligence
    • ゲーム
    • 機械学習とAI
    • セキュリティ
    • Xcode Cloud
    • コミュニティ

    コミュニティを詳しく見る

    • 概要
    • 「Appleに相談」イベント
    • コミュニティによるイベント
    • デベロッパフォーラム
    • オープンソース

    特集

    • WWDC
    • Swift Student Challenge
    • デベロッパストーリー
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Center
    • ドキュメント

    ドキュメントを詳しく見る

    • ドキュメントライブラリ
    • テクノロジー概要
    • サンプルコード
    • ヒューマンインターフェイスガイドライン
    • ビデオ

    リリースノート

    • 注目のアップデート
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • ダウンロード

    ダウンロードを詳しく見る

    • すべてのダウンロード
    • オペレーティングシステム
    • アプリ
    • デザインリソース

    特集

    • Xcode
    • TestFlight
    • フォント
    • SF Symbols
    • Icon Composer
    • サポート

    サポートを詳しく見る

    • 概要
    • ヘルプガイド
    • デベロッパフォーラム
    • フィードバックアシスタント
    • お問い合わせ

    特集

    • アカウントヘルプ
    • App Reviewガイドライン
    • App Store Connectヘルプ
    • 近日導入予定の要件
    • 契約およびガイドライン
    • システムステータス
  • クイックリンク

    • イベント
    • ニュース
    • Forum
    • サンプルコード
    • ビデオ
 

ビデオ

メニューを開く メニューを閉じる
  • コレクション
  • すべてのビデオ
  • 利用方法

その他のビデオ

  • 概要
  • Summary
  • コード
  • MLXを利用したMac上でのローカルのエージェントAIの実行

    プライバシーを確保する、オフラインアクセスに対応した低レイテンシーのAIエージェントをローカルで実行しましょう。すべてをデバイス上で処理するパワフルなエージェントワークフローを、進歩したMLXの機能とMacハードウェアを使用して実現する方法を詳しく解説します。OpenCodeなどのコードエージェントの概要とXcodeへの統合の仕組み、複数のMacにわたるスケーリングのための手法、マシンから離れることなくツールをシームレスに統合する方法についても確認します。

    関連する章

    • 0:00 - Introduction
    • 0:32 - The chat and agentic loop
    • 2:42 - Local agentic AI stack
    • 4:36 - Setting up your own agent
    • 5:39 - Making agents fast
    • 6:53 - Concurrency and distributed inference
    • 9:20 - More examples
    • 13:01 - Next steps

    リソース

    • MLX Swift LM on GitHub
    • MLX Swift Examples
    • MLX Examples
    • MLX Swift
    • MLX LM - Python API
    • MLX Explore - Python API
    • MLX Framework
    • MLX
      • HDビデオ
      • SDビデオ

    関連ビデオ

    WWDC26

    • MLXによる分散推論と分散トレーニング
    • MLXを活用したSwiftでの数値計算

    WWDC25

    • AppleシリコンでのMLXの導入
    • MLX:Appleシリコンでの大規模言語モデルの実行
  • このビデオを検索
    • 4:40 - Set up MLX-LM and start the local server

      # Step 1: Install MLX-LM
      pip install mlx-lm
      
      # Step 2: Start the server
      mlx_lm.server --model mlx-community/Qwen-3.5-4B-8bit
      
      # Step 3: Point your agent to the server
      curl -X POST \
        http://127.0.0.1:8080/v1/chat/completions \
        -H "Content-Type: application/json" \
        -d '{"model":"default_model","messages":[{"role":"user","content":"Hello!"}]}'
    • 5:18 - Configure an agent to use your local MLX server

      {
        "$schema": "https://opencode.ai/config.json",
        "model": "mlx/default_model",
        "small_model": "mlx/default_model",
        "provider": {
          "mlx": {
            "npm": "@ai-sdk/openai-compatible",
            "name": "MLX (local)",
            "options": {
              "baseURL": "http://127.0.0.1:8080/v1"
            },
            "models": {
              "default_model": {
                "name": "Default MLX Model"
              }
            }
          }
        }
      }
    • 8:33 - Launch distributed inference with MLX

      mlx.launch --hostfile hosts.json \
        --backend jaccl \
        /remote/path/to/mlx_lm.server \
        --model mlx-community/Qwen-3.5-122B-A3B-8bit
    • 0:00 - Introduction
    • Overview of building and running agentic AI workflows entirely on Mac using MLX — no cloud, no API keys, just your hardware.

    • 0:32 - The chat and agentic loop
    • How traditional chat differs from the agentic loop: the model decides what to do, calls tools to run commands, read files, and hit APIs, observes the results, and iterates — all running locally for privacy and offline availability.

    • 2:42 - Local agentic AI stack
    • A walkthrough of the four-layer stack powering local agentic AI on the Mac: MLX (array framework for Apple Silicon), MLX-LM (model loading, quantization, and fine-tuning), MLX-LM Server (OpenAI-compatible HTTP server), and the agent layer — including popular tools like Ollama, LM Studio, and vLLM.

    • 4:36 - Setting up your own agent
    • Three steps to go from zero to a fully local agentic workflow: install MLX-LM with pip, start the server with a tool-calling model, and configure your agent to point at the local endpoint.

    • 5:39 - Making agents fast
    • How MLX tackles the first challenge of agentic workloads — efficiently processing large contexts with hundreds of thousands of tokens — including how M5 Neural Accelerators accelerate prompt processing speed.

    • 6:53 - Concurrency and distributed inference
    • How MLX handles continuous batching for concurrent multi-agent requests, and distributed inference to spread large models across multiple Macs over Thunderbolt.

    • 9:20 - More examples
    • Two-part live demo building SwiftUI apps entirely on-device. First, using OpenCode with MLX to generate a complete SwiftUI project from a description; then, using Xcode's agentic coding capabilities to build and fix a SwiftUI app — all running locally.

    • 13:01 - Next steps
    • Summary of the full local AI stack and practical steps to get started: install MLX-LM, launch the server, and connect your agent. All shown tools are open-source and available now.

Developer Footer

  • ビデオ
  • WWDC26
  • MLXを利用したMac上でのローカルのエージェントAIの実行
  • メニューを開く メニューを閉じる
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    メニューを開く メニューを閉じる
    • アクセシビリティ
    • アクセサリ
    • Apple Intelligence
    • App Extension
    • App Store
    • オーディオとビデオ(英語)
    • 拡張現実
    • デザイン
    • 配信
    • 教育
    • フォント(英語)
    • ゲーム
    • ヘルスケアとフィットネス
    • アプリ内課金
    • ローカリゼーション
    • マップと位置情報
    • 機械学習とAI
    • オープンソース(英語)
    • セキュリティ
    • SafariとWeb(英語)
    メニューを開く メニューを閉じる
    • 英語ドキュメント(完全版)
    • 日本語ドキュメント(一部トピック)
    • チュートリアル
    • ダウンロード
    • フォーラム(英語)
    • ビデオ
    Open Menu Close Menu
    • サポートドキュメント
    • お問い合わせ
    • バグ報告
    • システム状況(英語)
    メニューを開く メニューを閉じる
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles(英語)
    • フィードバックアシスタント
    メニューを開く メニューを閉じる
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program(英語)
    • Mini Apps Partner Program
    • News Partner Program(英語)
    • Video Partner Program(英語)
    • セキュリティ報奨金プログラム(英語)
    • Security Research Device Program(英語)
    Open Menu Close Menu
    • Appleに相談
    • Apple Developer Center
    • App Store Awards(英語)
    • Apple Design Awards
    • Apple Developer Academy(英語)
    • WWDC
    最新ニュースを読む。
    Apple Developerアプリを入手する。
    Copyright © 2026 Apple Inc. All rights reserved.
    利用規約 プライバシーポリシー 契約とガイドライン