View in English

  • Apple 开发者
    • 入门汇总

    探索“入门汇总”

    • 概览
    • 学习
    • Apple Developer Program

    及时了解最新动态

    • 最新动态
    • 开发者你好
    • 平台

    探索“平台”

    • Apple 平台
    • iOS
    • iPadOS
    • macOS
    • Apple tvOS
    • visionOS
    • watchOS
    • App Store

    精选

    • 设计
    • 分发
    • 游戏
    • 配件
    • 网页
    • Home
    • CarPlay 车载
    • 技术

    探索“技术”

    • 概览
    • Xcode
    • Swift
    • SwiftUI

    精选

    • 辅助功能
    • AI 与机器学习
    • App Intents
    • Apple 智能
    • 游戏
    • 安全性
    • Xcode Cloud
    • 社区

    探索“社区”

    • 概览
    • “与 Apple 会面交流”活动
    • 社区主导的活动
    • 开发者论坛
    • 开源

    精选

    • WWDC
    • Swift Student Challenge
    • 开发者故事
    • App Store 大奖
    • Apple 设计大奖
    • Apple Developer Centers
    • 文档

    探索“文档”

    • 文档库
    • 技术概述
    • 示例代码
    • 《人机界面指南》
    • 视频

    发布说明

    • 精选更新
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • Apple tvOS
    • Xcode
    • 下载

    探索“下载”

    • 所有下载
    • 操作系统
    • 应用程序
    • 设计资源

    精选

    • Xcode
    • TestFlight
    • 字体
    • SF Symbols
    • Icon Composer
    • 支持

    探索“支持”

    • 概览
    • 帮助指南
    • 开发者论坛
    • “反馈助理”
    • 联系我们

    精选

    • 《开发者账户帮助》
    • 《App 审核指南》
    • 《App Store Connect 帮助》
    • 即将实行的要求
    • 协议和准则
    • 系统状态
  • 快速链接

    • 活动
    • 新闻
    • 论坛
    • 示例代码
    • 视频
 

视频

打开菜单 关闭菜单
  • 专题
  • 所有视频
  • 关于

更多视频

  • 简介
  • 概要
  • 机器学习与 AI 小组实验室

    参加我们的线上活动,与 Apple 工程师和设计师一起深入探索 WWDC26。在这个以机器学习与 AI 为主题的活动中,你可以提出问题、获取建议,并实时关注围绕大会一周的相关重磅发布展开的精彩讨论。活动语言为英语。

    章节

    • 0:00:00 - Introduction
    • 0:04:44 - How should developers decide whether a task is better handled by on-device Foundation Models versus Private Cloud Compute?
    • 0:09:25 - I set up Agent mode in Xcode with a local LLM via opencode ACP, but responses are slow and show a <|im_end|> tag. What else should I configure — did I set the chat template wrong?
    • 0:12:24 - Can a local LLM (via MLX-LM, or a model we trained ourselves with Core AI) act as a coding agent that manipulates the Xcode project, not just chat — and how?
    • 0:15:07 - Apple updates the on-device and PCC models silently, causing tuned prompts to regress. Is there a runtime model-version identifier so my Evaluations suite can detect a change and gate releases?
    • 0:18:58 - Can Foundation Models run from widgets, App Intents, or background tasks for classification at capture time when the app isn't foregrounded? What rate/thermal limits apply?
    • 0:21:25 - How can developers create or adapt models to their own app's data and domain — e.g. stylized profile images, or an adaptive how-to guide? Best resources?
    • 0:28:50 - What use cases are currently best suited for the Foundation Models framework, and which should developers avoid?
    • 0:32:27 - Where should a beginner start to learn about AI/ML, and what resources do you recommend?
    • 0:37:15 - Is everything we can do in PyTorch importable to Core AI / the Apple ecosystem? What's possible and what's not?
    • 0:42:56 - What's the best UX when Foundation Models are unavailable (older device, Apple Intelligence off, low battery)? Can we detect availability early and pre-warm to cut first-request latency?
    • 0:46:58 - How should we migrate from Core ML to Core AI — do we wait a year or two for device adoption, or is there a faster path?
    • 0:49:03 - What's the maximum on-device local model size we can bring into our app before we should consider Private Cloud Compute?
    • 0:53:32 - How do you decide when AI should help the user versus when it should stay out of the way?
    • 0:58:52 - For older iPhones without Apple Intelligence we use a self-hosted LLM backend. On iOS 27, is wrapping it in a custom LanguageModel provider the recommended path so one LanguageModelSession serves all devices? Any pitfalls?

    资源

      • 高清视频
      • 标清视频
  • 搜索此视频…
    • 0:00:00 - Introduction
    • Engineers from the machine learning and AI frameworks teams introduce themselves and set up a session covering the Foundation Models framework, on-device versus Private Cloud Compute models, Core ML and Core AI, MLX, bringing custom and local models to Xcode, and evaluation-driven development.

    • 0:04:44 - How should developers decide whether a task is better handled by on-device Foundation Models versus Private Cloud Compute?
    • Drive the decision with evaluations. Concretely, the main differences are context size and capability: the on-device system model has a 4K context, while the Private Cloud Compute server model offers 32K and stronger reasoning. Use on-device for lightweight, latency- and privacy-sensitive tasks that fit its window, and reach for PCC when you need a larger context or deeper reasoning.

    • 0:09:25 - I set up Agent mode in Xcode with a local LLM via opencode ACP, but responses are slow and show a <|im_end|> tag. What else should I configure — did I set the chat template wrong?
    • The stray end-of-turn token points at the chat template — you're on the right track. This is a model-serving detail: ensure the chat template you configure in your MLX server matches the model (e.g. Qwen), since a mismatched template leaves the end token in the output. It's not an Xcode/ACP issue but a local-model configuration one.

    • 0:12:24 - Can a local LLM (via MLX-LM, or a model we trained ourselves with Core AI) act as a coding agent that manipulates the Xcode project, not just chat — and how?
    • Yes, with a correction: Core AI is purely an inference framework, not a training one. To get agentic project manipulation (beyond chat), integrate your local model into Xcode over the ACP protocol rather than the chat path. You can bring your own model served via MLX; the ACP integration is what gives the agent the tools to act on the project.

    • 0:15:07 - Apple updates the on-device and PCC models silently, causing tuned prompts to regress. Is there a runtime model-version identifier so my Evaluations suite can detect a change and gate releases?
    • The practical signal today is the OS version. The on-device model ships as part of the OS and only changes with an OS update — it isn't pushed silently underneath a fixed OS — so key your evaluation gating to OS version. Re-run your evaluation suite against new OS seeds to catch prompt regressions before release.

    • 0:18:58 - Can Foundation Models run from widgets, App Intents, or background tasks for classification at capture time when the app isn't foregrounded? What rate/thermal limits apply?
    • Yes — the on-device model can run in the background and in widgets. But under system load you may hit rate limiting, which simply means back off and try again later. Design around this: treat classification as best-effort with retry, rather than assuming an immediate background result when the device is busy or under thermal pressure.

    • 0:21:25 - How can developers create or adapt models to their own app's data and domain — e.g. stylized profile images, or an adaptive how-to guide? Best resources?
    • Match the tool to the goal. Foundation Models can't output images, so for stylized profile images bring an image-generation model — one option is to prompt the on-device model with the user's app data to build a per-user description, then feed that to your image model. For text-based adaptive guidance, Foundation Models fits well, often via prompt engineering and in-context learning rather than full fine-tuning. If you do want to train or fine-tune your own model, MLX is a good starting point and you can run the result on device with Core AI; per-user adapters are a lighter option, though not for diffusion models. Evaluations can guide the process — progressively improving quality and even synthesizing test data with its sample generator.

    • 0:28:50 - What use cases are currently best suited for the Foundation Models framework, and which should developers avoid?
    • It's a language model, so it excels at content extraction and generation — and with this year's image input, many multimodal tasks too. The clear limit is that it can't produce images as output (it's not a diffusion model), so don't reach for it for image generation; use a diffusion/image model for that instead.

    • 0:32:27 - Where should a beginner start to learn about AI/ML, and what resources do you recommend?
    • Swift Playgrounds is a friendly on-ramp — its intro-to-ML content builds a Core ML image classifier (a rock-paper-scissors game using hand gestures) and teaches how to assemble a diverse dataset and train a model end to end. From there, move on to the Core ML tools and the WWDC ML sessions.

    • 0:37:15 - Is everything we can do in PyTorch importable to Core AI / the Apple ecosystem? What's possible and what's not?
    • Generally, if you can express your model in PyTorch and it's exportable through PyTorch's export APIs, it converts to Core AI straightforwardly. The exceptions are newer operations and techniques that aren't yet exportable — when a model won't export, inspect the PyTorch export APIs to see which operations are unsupported and adapt accordingly. MLX is also a good place to experiment with PyTorch-style models.

    • 0:42:56 - What's the best UX when Foundation Models are unavailable (older device, Apple Intelligence off, low battery)? Can we detect availability early and pre-warm to cut first-request latency?
    • Check the model's availability property early and design a graceful fallback for when it's unavailable, rather than assuming it's present. For latency, use the prewarm API on the on-device system language model so the first request isn't cold. Together, availability checks plus prewarming give a responsive experience that degrades cleanly on unsupported devices.

    • 0:46:58 - How should we migrate from Core ML to Core AI — do we wait a year or two for device adoption, or is there a faster path?
    • You don't have to abandon Core ML. Core ML remains supported and available on current devices, while Core AI is the newer path; you can adopt Core AI where it helps and keep Core ML for broad device coverage. Plan the migration around your deployment targets rather than waiting on a single cutover.

    • 0:49:03 - What's the maximum on-device local model size we can bring into our app before we should consider Private Cloud Compute?
    • There's no single fixed number — it depends on the device and available memory. Check the OS process available-memory APIs to see how much you can safely use, and size your bundled model to fit within that budget with headroom. When a model is too large to run reliably on target devices, that's the signal to move the workload to Private Cloud Compute.

    • 0:53:32 - How do you decide when AI should help the user versus when it should stay out of the way?
    • Start from the fundamental experience you want to deliver, not from adding AI for its own sake. Like any framework in the ecosystem, use these tools only where they genuinely improve the experience for a specific need — restraint is part of good design, and AI should recede when it doesn't add clear value.

    • 0:58:52 - For older iPhones without Apple Intelligence we use a self-hosted LLM backend. On iOS 27, is wrapping it in a custom LanguageModel provider the recommended path so one LanguageModelSession serves all devices? Any pitfalls?
    • Yes — this year's LanguageModel protocol lets you drive any model through the same unified Swift API for prompting, tool calling, and @Generable output, so a custom provider around your server backend can serve a single LanguageModelSession across all devices without rewriting how you prompt. Start by checking whether your backend conforms to the typical OpenAI chat-completions request shape; if it does, this year's open-source utilities package already includes a conforming implementation you can use as-is. You can also mix models in one app — deciding which to use can be as simple as an if statement based on platform availability, while the rest of your code stays the same.

开发者页脚

  • 视频
  • WWDC26
  • 机器学习与 AI 小组实验室
  • 打开菜单 关闭菜单
    • iOS
    • iPadOS
    • macOS
    • Apple tvOS
    • visionOS
    • watchOS
    • App Store
    打开菜单 关闭菜单
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    打开菜单 关闭菜单
    • 辅助功能
    • 配件
    • AI 与机器学习
    • Apple 智能
    • 音频与视频
    • 增强现实
    • 商务
    • 设计
    • 分发
    • 教育
    • 游戏
    • 健康与健身
    • App 内购买项目
    • 本地化
    • 地图与位置
    • 安全性
    • Safari 浏览器与网页
    打开菜单 关闭菜单
    • 文档
    • 下载
    • 示例代码
    • 视频
    • 文档归档
    打开菜单 关闭菜单
    • 帮助指南与文章
    • 联系我们
    • 论坛
    • 反馈与错误报告
    • 系统状态
    打开菜单 关闭菜单
    • Apple 开发者
    • App Store Connect
    • 证书、标识符和描述文件
    • “反馈助理”
    打开菜单 关闭菜单
    • 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
    打开菜单 关闭菜单
    • 与 Apple 会面交流
    • Apple Developer Center
    • App Store 大奖
    • Apple 设计大奖
    • Apple Developer Academy
    • WWDC
    阅读最近新闻。
    获取 Apple Developer App。
    版权所有 © 2026 Apple Inc. 保留所有权利。
    使用条款 隐私政策 协议和准则