本页目录6 个章节
FASTVLM GUIDE · iPhone
Use Apple’s official iOS/macOS demo project as the starting point for an on-device FastVLM application.
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
- Use Apple’s app project rather than assuming a system-level FastVLM API.
- Follow the repository’s model-download instructions.
- Open and build the project with a compatible Xcode toolchain.
- 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.
FastVLM with Core ML
FASTVLM GUIDE · Core ML
Review Apple’s released Core ML resources and choose quantization deliberately for your target hardware.
Step by step
- Open the official FastVLM collection and identify Core ML assets.
- Match the model size and quantization to the target device.
- Integrate the model package in a small test app first.
- Benchmark warm and cold start separately.
Example
Core ML
// Add the downloaded .mlpackage to your Xcode target
// and let Xcode generate the typed model interface.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.
继续阅读
更多围绕相同主题、协议或工具的文章。
引用的工具
浏览与本文主题相关的目录条目。









