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 sh…