MLX Swift LM: what the package offers developers who want a model inside an iPhone app
Reader question: apps like "run a model on your iPhone" use something open source. What is it, and what does it need?
The ml-explore organisation on GitHub publishes MLX Swift LM, a Swift package for building tools and apps with large language models (LLMs) and vision language models (VLMs) using MLX Swift. It is MIT licensed. We read its README on 27 November 2026. It is open-source developer software, not a phone app and not a supported Apple product as far as the page says.
What the README lists
- Model loading, with integrations for several tokenizer and downloader packages.
- Low-rank (LoRA) and full model fine-tuning with support for quantized models.
- Many model architectures for both LLMs and VLMs.
- Separate modules for LLMs, VLMs, embedding models, grammar-constrained generation (JSON Schema or EBNF) and a bridge into Apple's
FoundationModelsframework. - A quick start that loads a Gemma 3 1B quantized (4-bit) model from Hugging Face and answers two chat messages in a session.
Version points
The README says the main branch is a new major version, 3.x, with breaking changes. The FoundationModels bridge requires the macOS, iOS and visionOS 27.0 SDK. If you follow an older tutorial, expect differences.
What it means for a buyer
The quick start uses a 1B-parameter, 4-bit model, which is small. The README gives no memory or speed figures, so it says nothing about which iPhone can run what. For Apple's own on-device model see Apple's Foundation Models framework, and for the choice between that and your own model see apps: Apple's model or your own MLX.
We did not build or run the package.
Sources
Checked: 27 Nov 2026. Figures change; confirm on the source before you rely on them.
Keep reading
- 8 GB vs 12 GB vs 16 GB phone for AI: which one should you buy?What each RAM tier lets you run, with the models, file sizes and the one-sentence verdict for each.
- AI-Benchmark ranking: what the columns mean, and what the top phones showReading the AI-Benchmark phone table: the score columns, five phones with their chip, RAM and AI Score as listed, and what the numbers cannot tell you about chat models.
- The airplane mode test: how to check a phone model is really offlineLoad a model on Wi-Fi, switch on airplane mode, send a prompt. The check VDF AI recommends and what it does and does not prove.
- Android local AI runtimes explained: MLC LLM, llama.cpp, ExecuTorch and moreA May 2026 guide lists five ways to run models on Android and warns about NNAPI deprecation, aggressive background killing and vendor-locked NPU tools. A secondary source, with caveats.