View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • AI & Machine Learning
    • App Intents
    • Apple Intelligence
    • Games
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Videos

Open Menu Close Menu
  • Collections
  • All Videos
  • About

More Videos

  • About
  • Summary
  • Coding Intelligence, Machine Learning & AI Group Lab

    Join us online for a deep dive into WWDC26 with Apple engineers and designers to ask questions, get advice, and follow the discussion about the week's biggest announcements for coding intelligence, machine learning and AI. Conducted in English.

    Chapters

    • 0:00:00 - Introduction
    • 0:04:13 - Could you explain the roles of Core AI, Core ML, and MLX in simple terms — how should a beginner decide which to learn or use?
    • 0:08:11 - What is the on-device Foundation Models context window in iOS 27, and is input plus output counted against one shared token budget?
    • 0:11:22 - Can Foundation Models calls run inside BGAppRefreshTask or BGProcessingTask, especially while the phone is locked, asleep, or long-backgrounded?
    • 0:13:02 - For macOS 27 Apple Intelligence, what does "wait list" mean when both Siri local and PCC models work — and does the beta include the larger advanced model?
    • 0:14:24 - Foundation Models now supports bringing your own LLM provider alongside on-device and PCC. Can you mix all three in one agentic flow, and what are the data-privacy and attribution boundaries with a third-party provider?
    • 0:20:05 - My app uses on-device speech-to-text and must recognize names/proper nouns. Does iOS personalize recognition per user over time, or must I maintain that list myself?
    • 0:23:02 - How do I train the coding agent to know more about my code style/specific area? A local LLM learning my complex visionOS/Metal/physics codebase performs poorly and crashes.
    • 0:32:36 - For UI testing, what practical steps can teams take to integrate automated approaches into their testing workflows on Apple platforms?
    • 0:35:41 - Any updates to the Natural Language and Vision frameworks? With Foundation Models now supporting image attachments, what's the preferred method of image extraction?
    • 0:39:42 - On-device LLMs have limited token capacity. What are best practices for managing prompt size, tool definitions, and context to avoid exceeding limits while keeping quality high?
    • 0:51:39 - Foundation Models guardrails sometimes refuse emotionally intense but legitimate journal entries. Can I prevent refusals on first-person emotional writing, and how do I detect a guardrail refusal vs other errors?
    • 0:54:22 - Apple has historically brought a distinct perspective to areas like design and privacy. What's your guiding philosophy or approach to AI evaluation?
    • 0:57:21 - Is it possible for models used by different apps on iPhone to be shared across apps to save storage?

    Resources

      • HD Video
      • SD Video
  • Search this video…
    • 0:00:00 - Introduction
    • Engineers from the machine learning and AI frameworks teams introduce themselves and outline the session, which spans Apple's ML stack — the Foundation Models framework, Core ML, MLX, and Core AI — plus agentic coding in Xcode, the Evaluations framework, on-device versus Private Cloud Compute models, and bringing your own LLM provider.

    • 0:04:13 - Could you explain the roles of Core AI, Core ML, and MLX in simple terms — how should a beginner decide which to learn or use?
    • These technologies form a layered suite you can enter at different levels. At the top is the Foundation Models framework — start there for language-model use cases, try the system language model, and use Evaluations to confirm it meets your need. For custom neural-network models such as diffusion or image segmentation, or models you train or download yourself, drop to Core AI, which comes with SLAs and guarantees for building applications; going forward, anything new involving neural networks should move to Core AI. Core ML remains but is now focused on traditional ML like decision trees. Below that, MLX is the lowest level — powerful and flexible, and the place for on-device training and distributed workloads across multiple machines (for example running very large models across Macs, not on the phone). Choose the highest level that meets your need.

    • 0:08:11 - What is the on-device Foundation Models context window in iOS 27, and is input plus output counted against one shared token budget?
    • The on-device context is 4096 tokens and is a shared budget — if you feed in 4000 tokens, the response can use the remaining ~96. The Private Cloud Compute model offers 32K, also shared. For a larger context window use PCC, and for deeper reasoning use the reasoning-capable PCC model.

    • 0:11:22 - Can Foundation Models calls run inside BGAppRefreshTask or BGProcessingTask, especially while the phone is locked, asleep, or long-backgrounded?
    • Yes, calls can run in a background task, but if the OS is busy it may rate-limit you — catch the rate-limited error from the system language model and retry later. On macOS you're fine in the foreground, and the Private Cloud Compute model provides another path when on-device throttling is a concern.

    • 0:13:02 - For macOS 27 Apple Intelligence, what does "wait list" mean when both Siri local and PCC models work — and does the beta include the larger advanced model?
    • This question bundled two. On the waitlist: it applies only to Siri — it does not apply to the Private Cloud Compute language model or to the on-device things Siri does. On whether the beta includes the AFM core advanced (~20B) model: yes, it's included and is used for the voice features. For anything deeper on Apple Intelligence, the dedicated Apple Intelligence group lab is the place to go.

    • 0:14:24 - Foundation Models now supports bringing your own LLM provider alongside on-device and PCC. Can you mix all three in one agentic flow, and what are the data-privacy and attribution boundaries with a third-party provider?
    • The framework lets you compose across the on-device model, Private Cloud Compute, and your own provider. Once a third-party provider is in the loop, its own data-handling terms apply and you're responsible for knowing and surfacing those boundaries. The panel pointed to the agentic-experiences-with-Foundation-Models session for how to structure such flows.

    • 0:20:05 - My app uses on-device speech-to-text and must recognize names/proper nouns. Does iOS personalize recognition per user over time, or must I maintain that list myself?
    • This spans several speech frameworks that weren't represented on the panel, so there's no definitive answer. Conceptually there are two layers: OS-level personalization Siri may apply system-wide, and whatever you do within your own app. Speech recognizers commonly pair with a personalization component — for example a small model fine-tuned on examples like your contact list — so building your own is certainly possible. If the language you need is already supported by on-device speech recognition, it's likely good enough to use as-is. For a definitive answer, ask on the developer forums, where engineers are responding throughout the week.

    • 0:23:02 - How do I train the coding agent to know more about my code style/specific area? A local LLM learning my complex visionOS/Metal/physics codebase performs poorly and crashes.
    • Agents learn primarily through search and documentation rather than training. Give the agent good tools to search and find things in your codebase, and write down what it should know — project conventions, architecture notes, an AGENTS.md — so it can retrieve and apply that context. Teaching the agent how to find and record knowledge is more effective than expecting a small local model to internalize a complex codebase.

    • 0:32:36 - For UI testing, what practical steps can teams take to integrate automated approaches into their testing workflows on Apple platforms?
    • Work in layers. Start small with unit tests by building components that can be tested independently, then have the agent enumerate the cases so unit coverage is thorough. Build up from there to UI-level automation. Structuring code for testability first makes both hand-written and agent-generated tests far more reliable.

    • 0:35:41 - Any updates to the Natural Language and Vision frameworks? With Foundation Models now supporting image attachments, what's the preferred method of image extraction?
    • The Vision framework has significant updates this year — see the "What's new in image understanding" session, which covers capabilities like segmentation models. Choosing between Vision and Foundation Models: use Vision for well-understood, repeatable tasks like detecting a specific object, since it's optimized, efficient, and easy to test; step up to Foundation Models when the task varies each time or needs semantic or natural-language understanding. Foundation Models is also gaining Vision-powered tools this year, including a barcode reader and an OCR tool. Natural Language specifics weren't covered.

    • 0:39:42 - On-device LLMs have limited token capacity. What are best practices for managing prompt size, tool definitions, and context to avoid exceeding limits while keeping quality high?
    • Use the APIs added this year for managing context, and keep prompts and tool definitions lean — every tool definition and instruction consumes the shared budget. Trim unnecessary context, summarize or chunk long inputs, and only include the tools relevant to the task so the model has room to produce a high-quality response within the on-device window.

    • 0:51:39 - Foundation Models guardrails sometimes refuse emotionally intense but legitimate journal entries. Can I prevent refusals on first-person emotional writing, and how do I detect a guardrail refusal vs other errors?
    • Partly. When initializing the system language model's guardrails you can opt into permissive content transformation, so the model won't error out on emotionally intense first-person input like journal entries — though it may still decline in natural language to elaborate. For error handling, distinguish two separate things: a refusal error is the model's own aligned response declining to answer (seen with guided generation), while a guardrail error comes from a separate moderation model that inspects input and output; you can catch each separately and fall back gracefully. These apply only to Apple's models. Guardrails were substantially improved this year, so false positives should be much lower — file feedback if you still hit them.

    • 0:54:22 - Apple has historically brought a distinct perspective to areas like design and privacy. What's your guiding philosophy or approach to AI evaluation?
    • Evaluation shouldn't be an afterthought bolted on once a feature exists — it should come first, because the evaluation set is the living specification of what your feature is supposed to do. Defining how you'll measure success up front clarifies the feature itself and keeps quality anchored as models and prompts change.

    • 0:57:21 - Is it possible for models used by different apps on iPhone to be shared across apps to save storage?
    • No — sharing arbitrary models across apps isn't possible because it's genuinely complex: it becomes hard to manage contention when multiple apps want the resource simultaneously. That said, the system provides model caching for the frameworks Apple ships, so shared system models (like the Foundation Models system language model) don't each cost you separate storage.

Developer Footer

  • Videos
  • WWDC26
  • Coding Intelligence, Machine Learning & AI Group Lab
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • AI & Machine Learning
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    • Documentation Archive
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • 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 Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines