apple-aiml-research/ml-fastvlm

This repository contains the official implementation of "FastVLM: Efficient Vision Encoding for Vision Language Models" - CVPR 2025

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 55 minutes ago
Added to GitGenius on September 11th, 2026
Created on May 1st, 2025
Open Issues & Pull Requests: 57 (+0)
GitHub issues: Disabled - open counts may still include pull requests.
Number of forks: 559
Total Stargazers: 7,416 (+0)
Total Subscribers: 67 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

GitHub issues are disabled for this repository, so issue analytics and the issue explorer are not available.

Detailed Description

FastVLM is a vision language model that prioritizes efficient vision encoding for processing high-resolution images with minimal latency.

The project addresses the computational bottleneck of vision encoding in vision language models by introducing FastViTHD, a hybrid vision encoder that reduces the number of output tokens and significantly decreases encoding time. Rather than processing full-resolution images with traditional encoders, the approach uses a specialized architecture designed to maintain accuracy while substantially lowering the computational cost of the vision component.

Developers should consider FastVLM if they need vision language capabilities on resource-constrained environments, particularly mobile devices or edge hardware. The tool suits projects requiring fast inference on high-resolution images where Time-to-First-Token latency is critical. The repository provides multiple model variants ranging from 0.5B to 7B parameters, allowing selection based on accuracy and speed requirements. A demo iOS application is included to show real-world performance on mobile devices. The project builds on the LLaVA codebase, so those familiar with that framework will find the training and finetuning process straightforward.

The project maintains pretrained checkpoints for multiple model sizes and training stages, with detailed evaluation results referenced in the accompanying paper. Inference code is provided for standard PyTorch execution, and separate tooling in the model_export subfolder enables conversion to formats suitable for Apple Silicon devices. The repository includes practical usage examples and setup instructions to facilitate adoption.