apple/python-apple-fm-sdk
Python bindings for access to the on-device model at the core of Apple Intelligence through the Foundation Models framework observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 91
- Release rhythm 90
- Longevity 13
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 21
- age_days: 189
- days_rel: 65
- days_push: 57
- n_releases_24m: 4
Adoption not part of the score
1225 stars · 74 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Python bindings for Apple's Foundation Models framework, giving access to the on-device foundation model behind Apple Intelligence on macOS. It supports streaming text generation, guided generation with typed structured outputs, and batch evaluation of Swift app AI features from Python.
Use cases
- run on-device LLM inference on macOS with Apple Intelligence
- generate structured typed objects from a Python class schema
- evaluate Swift app Foundation Models features from Python
- stream real-time text generation responses
- analyze transcripts exported from Swift apps
When to choose
- you're on macOS 26+ with Apple Intelligence and want Python access to the system model
- you need type-safe guided generation with constrained outputs
- you want to evaluate on-device model behavior using Python's data/ML ecosystem
When to avoid
- you're on Linux, Windows, or older macOS versions
- you need cloud-hosted or cross-platform LLM access
- you need a mature project accepting contributions
Facets
library · maturity active
llm-inference sdk machine-learning large-language-models artificial-intelligence apple-ecosystem developer-tools python apple-intelligence foundation-models on-device-ai guided-generation swift-bridge macos
2 sources
- readme: https://github.com/apple/python-apple-fm-sdk · fetched 2026-08-28 · 79d43f9a1339
- homepage: https://apple.github.io/python-apple-fm-sdk/ · fetched 2026-08-29 · 6c9c7cd7b77a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| apple/python-apple-fm-sdk | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="apple/python-apple-fm-sdk")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem