what are the foundation models

Asked on 06/15/2025

1 search

The Foundation Models framework, introduced by Apple, provides access to an on-device large language model through a Swift API. This framework is available on macOS, iOS, iPadOS, and VisionOS, and it allows developers to enhance their apps with intelligent features while keeping data private and 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: Ensures privacy and offline functionality.
  • Swift API: Allows easy integration with just a few lines of code.
  • Stateful sessions: Enable developers to provide custom instructions to the model.
  • Guardrails: Built-in safety measures to prevent harmful content generation.
  • Guided generation: Produces structured output using Swift types.
  • Tool calling: Allows the model to autonomously execute code defined in the app.

For more detailed information, you can refer to the session Meet the Foundation Models framework.