Foundation Models framework developer.apple.com · 267 points · 35 comments · HN ...

@best30

Foundation Models framework developer.apple.com · 267 points · 35 comments · HN thread

TL;DR Apple's developer page presents the Foundation Models framework, a native Swift API that now works with Apple's on-device and Private Cloud Compute models as well as third-party server models such as Claude and Gemini. It adds Dynamic Profiles, multimodal prompts, an Evaluations framework, an fm command-line tool in macOS 27, and free Private Cloud Compute usage for eligible small developers. The thread focuses mostly on the free-tier terms and on how capable the on-device model is in practice.

  • The framework is a Swift API covering on-device Apple Foundation Models, Private Cloud Compute, and server models via a Language Model protocol that any provider can implement.
  • Built-in features include guided generation, tool calling, image understanding with Vision integration (OCR, barcode reading), and Dynamic Profiles that swap model, temperature, reasoning level and tools within one session.
  • Developers in the App Store Small Business Program with fewer than two million first-time downloads can use Private Cloud Compute with no cloud API cost.
  • An Evaluations framework is meant to test prompts and model changes beyond unit tests.
  • A new fm command-line tool ships in macOS 27, plus a utilities package with experimental skills and a Chat Completions client, and a Python SDK.
  • Apple also published Acceptable Use Requirements and AI Act documentation for AFM 3 Cloud.

Discussion The thread is a mix of practical reports and skepticism. The most active sub-thread asks what the free Private Cloud Compute access actually means, with commenters noting that usage is charged to the end user's iCloud account, limits are unspecified, and eligibility depends on account type. Others report on the local model: some find it fast and surprisingly capable for small tasks, while many say it is hampered by aggressive safety refusals, weak tool calling, and a small context window. The mood is cautiously interested, with a few jokes about Siri and a side argument over whether the model choices in the server-model list were political.

  • Free PCC access is useful for small indie apps (many): Commenters who have shipped with PCC say it is performant, the cost goes to users' iCloud accounts, and this removes server costs for lightweight apps. They still note limits and rate-limiting quirks are unclear.
  • The free tier is vague and not truly free tokens (many): Several commenters point out that the usage is the user's quota, daily limits are unspecified, and the arrangement is mainly an incentive to develop rather than a real free API.
  • On-device model safety guardrails are too strict (some): Users report refusals for ordinary tasks such as reviewing firewall events or grammar checks, and some switched to Gemma or Claude instead.
  • On-device model struggles with tool calls and coding (some): Developers say AFM needed simplified system prompts and rewritten tool descriptions to handle basic tool calls, and that PCC models still failed a moderately complex coding task.
  • Local model is surprisingly capable for small tasks (a few): One user runs it in a terminal helper on an 8GB M1 and finds it good enough, and another got fizzbuzz quickly in several languages.
  • Unified abstraction across providers is a double-edged sword (a few): A commenter predicts provider-specific features will eventually break the abstraction, and another notes ChatGPT was omitted from the list of supported models.

Links from the comments

#Swift #AppleIntelligence #LLM #OnDeviceAI #PrivateCloudCompute #DeveloperTools