Please intrtoduce Foundation Models to me

Asked on 06/18/2025

1 search

The Foundation Models framework, introduced at WWDC 2025, provides access to an on-device large language model through a convenient Swift API. This framework is available on macOS, iOS, iPadOS, and VisionOS, allowing developers to enhance existing app features or create new ones, all while keeping data private and running offline. The framework is optimized for tasks such as content generation, text summarization, and user input analysis.

Key features of the Foundation Models framework include:

  • On-Device Processing: All data remains on the device, ensuring privacy and allowing offline functionality.
  • Swift API: The framework is integrated into the operating system, so it doesn't increase app size and is easy to use with Swift.
  • Guided Generation: This feature allows developers to get structured output in Swift, making it easier to parse and use the model's responses.
  • Tool Calling: The model can autonomously execute code defined in your app, enhancing its capabilities.
  • Stateful Sessions: These sessions allow for multi-turn interactions, where the model can maintain context over multiple exchanges.

For a detailed introduction, you can watch the session Meet the Foundation Models framework (00:00:00).