apple/ml-fastvlm
Apple's on-device vision-language model — 85× faster first-token output
Apple's on-device vision-language model with 85× faster first-token output.
Image generation and computer vision — detection, editing, 3D.
Key features
- FastViTHD hybrid vision encoder outputting fewer tokens and faster encoding for high-res
- 0.5B variant: 85x faster time-to-first-token than LLaVA-OneVision-0.5B
- Larger variants with Qwen2-7B LLM outperform Cambrian-1-8B with 7.9x faster TTFT
- Inference supported on Apple Silicon (exported quantized models) and via demo iOS app
- Model zoo with 0.5B, 1.5B, 7B PyTorch checkpoints
Good for
- On-device vision language models on iPhone, iPad, Mac
- Efficient high-resolution image understanding with low latency
Stack & tags
PythonPyTorchvlmvision-encoderapple-siliconon-deviceefficient-inferencecvpr2025pytorch
Quick start
conda create -n fastvlm python=3.10
conda activate fastvlm
pip install -e .From the project README on GitHub.
Similar open-source projects
FLUX.2 klein
★ 25,996Black Forest Labs' sub-second image generation — generate and edit in <0.5s
DiffSynth-Studio
★ 13,200The framework behind Qwen-Image-i2L — the first "Image→LoRA" visual generation system