Topophones

Home / Guides

MLX Swift LM: what the package offers developers who want a model inside an iPhone app

Updated 27 Nov 2026.

Cover graphic for: 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 FoundationModels framework.
  • 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

  1. ml-explore/mlx-swift-lm README, GitHub (read 27 Nov 2026)

Checked: 27 Nov 2026. Figures change; confirm on the source before you rely on them.

Keep reading