
Apple On Device Ai
This is the comprehensive guide you need if you're shipping on-device AI on Apple platforms. It walks you through Foundation Models for zero-setup text generation and structured output with @Generable, Core ML for converting and optimizing custom models with quantization and Neural Engine deployment, MLX Swift for maximum throughput with open-source LLMs on Apple Silicon, and llama.cpp for cross-platform GGUF inference. The framework selection router at the top is genuinely helpful for cutting through the decision paralysis. Heavy on code examples for tool calling, streaming, session management, and availability checking. If you're building anything that runs AI locally on iPhone or Mac, this covers the entire stack.
- skills.sh installs
- 4.2K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill apple-on-device-ai --agent claude-codeInstalls into .claude/skills of the current project.
Files
On-Device AI for Apple Platforms
Guide for selecting, deploying, and optimizing on-device ML models. Covers Apple Foundation Models, Core ML, MLX Swift, and llama.cpp.
Contents
- Framework Selection Router
- Apple Foundation Models Overview
- Core ML Overview
- MLX Swift Overview
- Multi-Backend Architecture
- Performance Best Practices
- Common Mistakes
- Review Checklist
- References
Framework Selection Router
Use this decision tree to pick the right framework for your use case.
Apple Foundation Models
When to use: Text generation, summarization, entity extraction, structured output, and short dialog on iOS 26+ / macOS 26+ devices with Apple Intelligence enabled. No app-managed API key, network round trip, or model hosting; still handle system model asset readiness.
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, Data Science & ML, Python, Mobile Development
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Swift Charts4.2K
- Swift Language4.1K
- App Intents4.1K
- Authentication4.1K
- Background Processing4.1K
- Healthkit4K
- Vision Framework4K
- Coreml3.9K
- Core Bluetooth3.9K
- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K
- Permissionkit3.7K
- Energykit3.7K
- Shareplay Activities3.7K
- Weatherkit3.6K
- Activitykit3.5K