apple-aiml-research/ml-fastvlm
This repository contains the official implementation of "FastVLM: Efficient Vision Encoding for Vision Language Models" - CVPR 2025
What it solves
FastVLM addresses the high computational cost and latency associated with vision encoding in Vision Language Models (VLMs), particularly when processing high-resolution images. It aims to reduce the time-to-first-token (TTFT) and the overall size of the vision encoder without sacrificing accuracy.
How it works
The project introduces FastViTHD, a hybrid vision encoder that optimizes how images are processed to output fewer tokens. By reducing the number of tokens generated during the encoding phase, the model significantly speeds up the initial response time (TTFT) and requires less memory than traditional vision encoders.
Who it’s for
This is designed for researchers and developers building multimodal AI applications, especially those targeting resource-constrained environments like mobile devices (iOS) or Apple Silicon hardware.
Highlights
- Significant Speedup: The smallest variant achieves 85x faster Time-to-First-Token (TTFT) compared to LLaVA-OneVision-0.5B.
- Efficiency: Features a vision encoder that is 3.4x smaller than competing models of similar scale.
- High Performance: Larger variants using Qwen2-7B outperform Cambrian-1-8B while maintaining a 7.9x faster TTFT.
- Mobile Ready: Includes a demo iOS app to showcase real-time performance on mobile hardware.
Related
- Project
- Project
- Project
- Project