Skip to content

FASTVLM 指南 · iPhone

在 iPhone / iOS 上运行 FastVLM

以 Apple 官方 iOS/macOS Demo 项目作为端侧 FastVLM 应用的起点。

全部 FastVLM 指南

运行前准备

官方应用要求 macOS 15.2+ 或 iOS 18.2+,以及兼容的 Xcode。先下载模型,再构建应用。首次下载使用空模型目录;切换型号前,将已有自定义模型另行保存。

检查首次运行结果

在 Xcode 中选择目标设备,iPhone 配置签名,再构建并运行。对图片或摄像头画面提问,检查生成的回答和应用中的 TTFT。

Stage2 / Stage3 与 Apple Silicon 文件说明 →

来源核对于 2026-09-12。实际运行性能取决于设备。

操作步骤

  1. 1

    使用 Apple Demo 项目,不要假设系统提供 FastVLM API。

  2. 2

    按仓库说明下载模型。

  3. 3

    使用兼容的 Xcode 工具链打开并构建。

  4. 4

    在每台目标设备上测量内存和延迟。

示例

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.

使用一手资料复核

API、模型文件和依赖版本都可能变化。请把本页作为实现路线,并在链接的官方文档中确认当前命令与许可。

打开官方来源