Skip to content

FASTVLM GUIDE · iPhone

FastVLM on iPhone and iOS

Use Apple’s official iOS/macOS demo project as the starting point for an on-device FastVLM application.

All FastVLM guides

Before you run

The official app requires macOS 15.2+ or iOS 18.2+ and a compatible Xcode toolchain. Download the model before building. Use an empty model folder for the initial download; keep any existing custom model elsewhere before changing variants.

Check your first result

Build and run in Xcode. Select the target device, configure signing for iPhone, then ask a question about an image or camera frame. Check the generated answer and the app’s TTFT display.

Stage2 / Stage3 and Apple Silicon files →

Source checked September 12, 2026. Runtime performance depends on your device.

Step by step

  1. 1

    Use Apple’s app project rather than assuming a system-level FastVLM API.

  2. 2

    Follow the repository’s model-download instructions.

  3. 3

    Open and build the project with a compatible Xcode toolchain.

  4. 4

    Measure memory and latency on every target device.

Example

iPhone
git clone https://github.com/apple-aiml-research/ml-fastvlm.git
cd ml-fastvlm
chmod +x app/get_pretrained_mlx_model.sh
app/get_pretrained_mlx_model.sh --model 0.5b --dest app/FastVLM/model
open app/FastVLM/FastVLM.xcodeproj
# Select an iOS 18.2+ device, configure signing, then Build and Run.

Verify against the primary source

APIs, model files and dependency versions can change. Treat this page as an implementation map, then confirm the current command and license in the linked official documentation.

Open official source