Foundation Models framework developer.apple.com · 77 points · 9 comments · HN th...

@best

Foundation Models framework developer.apple.com · 77 points · 9 comments · HN thread

TL;DR Apple's developer page for the Foundation Models framework, a native Swift API that lets apps call Apple's on-device model, Private Cloud Compute models, and third-party server models like Claude and Gemini through one interface. It adds guided generation, tool calling, image input, Dynamic Profiles, an Evaluations framework, an fm command line tool in macOS 27, and a Python SDK.

  • One Swift API for any LLM: on-device Apple Foundation Models, Private Cloud Compute, and server models such as Claude and Gemini, via a Swift package conforming to the Language Model protocol.
  • Built-in guided generation, tool calling, and multimodal prompts that attach images, plus Vision framework integration for OCR and barcode reading on-device.
  • Dynamic Profiles let a single session switch model, temperature, reasoning level and toolset while sharing the transcript across switches.
  • Eligible developers in the App Store Small Business Program with fewer than two million first-time downloads get Private Cloud Compute access with no cloud API cost.
  • New tooling: an Evaluations framework for testing prompts and model switches, the fm CLI in macOS 27, a utilities package with experimental skills and a Chat Completions client, and a Python SDK.

Discussion The thread is short and mostly splits between practical experience and skepticism. Commenters note that the framework was already discussed when it was first announced last year, and some suspect the new post reflects rumored new Apple local models. One commenter reports using the on-device model in a terminal tool on an 8 GB M1 and finding it surprisingly capable, though another asks whether the model's safety restrictions get in the way of normal use. Others raise how to call LLMs safely from iOS apps, pointing to Anthropic's App Attest support as an alternative to Firebase. The mood is lukewarm and curious rather than enthusiastic, with a couple of dismissive jokes.

  • Practical use on modest Apple hardware is already viable (some): One commenter uses the local model for fixing shell errors and suggesting commands and finds it capable on an M1 with 8 GB of memory, which they consider the minimum for local AI.
  • Local model safety filters may be too aggressive (a few): A commenter asks whether restrictions on the local model interfere with ordinary use, speculating that limiting it to command-line tasks keeps it out of the way.
  • Unclear whether the local model can handle code tasks (a few): A question about whether the on-device model can do coding work, such as serving as the predictor in an editor like Zed, goes unanswered in the thread.
  • Client-side LLM calls need secure auth such as App Attest (a few): A commenter notes Claude supports Apple's App Attest for authenticating calls from iOS apps, which they say is underused, and that Firebase was the practical option before.
  • Dismissive of the framework; just generate it with an LLM (a few): A joke suggests asking an LLM to build the framework instead, met with a question about why anyone would do that when they are not coding themselves.
  • Reposted story with no new news (a few): Some question why the item is on the front page, and others point out it was discussed last year and that the update may relate to rumored new Apple models.

Links from the comments

#Apple #Swift #LLM #OnDeviceAI #DeveloperTools #Privacy