apple / FastVLM-7B

huggingface.co
Total runs: 1.8K
24-hour runs: 0
7-day runs: -111
30-day runs: 266
Model's Last Updated: September 03 2025
text-generation

Introduction of FastVLM-7B

Model Details of FastVLM-7B

FastVLM: Efficient Vision Encoding for Vision Language Models

FastVLM was introduced in FastVLM: Efficient Vision Encoding for Vision Language Models . (CVPR 2025)

Accuracy vs latency figure.

Highlights
  • We introduce FastViTHD, a novel hybrid vision encoder designed to output fewer tokens and significantly reduce encoding time for high-resolution images.
  • Our smallest variant outperforms LLaVA-OneVision-0.5B with 85x faster Time-to-First-Token (TTFT) and 3.4x smaller vision encoder.
  • Our larger variants using Qwen2-7B LLM outperform recent works like Cambrian-1-8B while using a single image encoder with a 7.9x faster TTFT.
Evaluations
Benchmark FastVLM-0.5B FastVLM-1.5B FastVLM-7B
Ai2D 68.0 77.4 83.6
ScienceQA 85.2 94.4 96.7
MMMU 33.9 37.8 45.4
VQAv2 76.3 79.1 80.8
ChartQA 76.0 80.1 85.0
TextVQA 64.5 70.4 74.9
InfoVQA 46.4 59.7 75.8
DocVQA 82.5 88.3 93.2
OCRBench 63.9 70.2 73.1
RealWorldQA 56.1 61.2 67.2
SeedBench-Img 71.0 74.2 75.4
Usage Example

To run inference of PyTorch checkpoint, follow the instruction in the official repo:

Download the model

huggingface-cli download apple/FastVLM-7B

Run inference using predict.py from the official repo.

python predict.py --model-path /path/to/checkpoint-dir \
                  --image-file /path/to/image.png \
                  --prompt "Describe the image."
Run inference with Transformers (Remote Code)

To run inference with transformers we can leverage trust_remote_code along with the following snippet:

import torch
from PIL import Image
from transformers import AutoTokenizer, AutoModelForCausalLM
MID = "apple/FastVLM-7B"
IMAGE_TOKEN_INDEX = -200  # what the model code looks for

# Load
tok = AutoTokenizer.from_pretrained(MID, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    MID,
    torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
    device_map="auto",
    trust_remote_code=True,
)

# Build chat -> render to string (not tokens) so we can place <image> exactly
messages = [
    {"role": "user", "content": "<image>\nDescribe this image in detail."}
]
rendered = tok.apply_chat_template(
    messages, add_generation_prompt=True, tokenize=False
)
pre, post = rendered.split("<image>", 1)

# Tokenize the text *around* the image token (no extra specials!)
pre_ids  = tok(pre,  return_tensors="pt", add_special_tokens=False).input_ids
post_ids = tok(post, return_tensors="pt", add_special_tokens=False).input_ids

# Splice in the IMAGE token id (-200) at the placeholder position
img_tok = torch.tensor([[IMAGE_TOKEN_INDEX]], dtype=pre_ids.dtype)
input_ids = torch.cat([pre_ids, img_tok, post_ids], dim=1).to(model.device)
attention_mask = torch.ones_like(input_ids, device=model.device)

# Preprocess image via the model's own processor
img = Image.open("test-2.jpg").convert("RGB")
px = model.get_vision_tower().image_processor(images=img, return_tensors="pt")["pixel_values"]
px = px.to(model.device, dtype=model.dtype)

# Generate
with torch.no_grad():
    out = model.generate(
        inputs=input_ids,
        attention_mask=attention_mask,
        images=px,
        max_new_tokens=128,
    )
print(tok.decode(out[0], skip_special_tokens=True))
Citation

If you found this model useful, please cite the following paper:

@InProceedings{fastvlm2025,
  author = {Pavan Kumar Anasosalu Vasu, Fartash Faghri, Chun-Liang Li, Cem Koc, Nate True, Albert Antony, Gokul Santhanam, James Gabriel, Peter Grasch, Oncel Tuzel, Hadi Pouransari},
  title = {FastVLM: Efficient Vision Encoding for Vision Language Models},
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  month = {June},
  year = {2025},
}

Runs of apple FastVLM-7B on huggingface.co

1.8K
Total runs
0
24-hour runs
14
3-day runs
-111
7-day runs
266
30-day runs

More Information About FastVLM-7B huggingface.co Model

More FastVLM-7B license Visit here:

https://choosealicense.com/licenses/apple-amlr

FastVLM-7B huggingface.co

FastVLM-7B huggingface.co is an AI model on huggingface.co that provides FastVLM-7B's model effect (), which can be used instantly with this apple FastVLM-7B model. huggingface.co supports a free trial of the FastVLM-7B model, and also provides paid use of the FastVLM-7B. Support call FastVLM-7B model through api, including Node.js, Python, http.

FastVLM-7B huggingface.co Url

https://huggingface.co/apple/FastVLM-7B

apple FastVLM-7B online free

FastVLM-7B huggingface.co is an online trial and call api platform, which integrates FastVLM-7B's modeling effects, including api services, and provides a free online trial of FastVLM-7B, you can try FastVLM-7B online for free by clicking the link below.

apple FastVLM-7B online free url in huggingface.co:

https://huggingface.co/apple/FastVLM-7B

FastVLM-7B install

FastVLM-7B is an open source model from GitHub that offers a free installation service, and any user can find FastVLM-7B on GitHub to install. At the same time, huggingface.co provides the effect of FastVLM-7B install, users can directly use FastVLM-7B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

FastVLM-7B install url in huggingface.co:

https://huggingface.co/apple/FastVLM-7B

Url of FastVLM-7B

FastVLM-7B huggingface.co Url

Provider of FastVLM-7B huggingface.co

apple
ORGANIZATIONS

Other API from apple

huggingface.co

Total runs: 25.8K
Run Growth: -2.6K
Growth Rate: -10.39%
Updated:March 01 2025
huggingface.co

Total runs: 9.5K
Run Growth: 844
Growth Rate: 8.93%
Updated:February 25 2025
huggingface.co

Total runs: 9.3K
Run Growth: -11.0K
Growth Rate: -123.06%
Updated:September 03 2025
huggingface.co

Total runs: 4.8K
Run Growth: 4.6K
Growth Rate: 92.37%
Updated:July 26 2024
huggingface.co

Total runs: 2.8K
Run Growth: -6.7K
Growth Rate: -235.69%
Updated:March 01 2025
huggingface.co

Total runs: 2.1K
Run Growth: 825
Growth Rate: 38.79%
Updated:March 01 2025
huggingface.co

Total runs: 2.1K
Run Growth: -1.3K
Growth Rate: -61.78%
Updated:December 19 2025
huggingface.co

Total runs: 2.0K
Run Growth: -755
Growth Rate: -38.50%
Updated:September 03 2025
huggingface.co

Total runs: 864
Run Growth: -4.3K
Growth Rate: -524.85%
Updated:March 01 2025
huggingface.co

Total runs: 492
Run Growth: 194
Growth Rate: 41.01%
Updated:March 01 2025
huggingface.co

Total runs: 397
Run Growth: 109
Growth Rate: 29.14%
Updated:March 01 2025
huggingface.co

Total runs: 238
Run Growth: 239
Growth Rate: 67.90%
Updated:April 25 2026
huggingface.co

Total runs: 197
Run Growth: 56
Growth Rate: 29.47%
Updated:September 03 2025
huggingface.co

Total runs: 188
Run Growth: 63
Growth Rate: 33.51%
Updated:October 10 2025
huggingface.co

Total runs: 173
Run Growth: 118
Growth Rate: 79.19%
Updated:March 01 2025
huggingface.co

Total runs: 100
Run Growth: -51
Growth Rate: -50.00%
Updated:June 14 2024
huggingface.co

Total runs: 92
Run Growth: -30
Growth Rate: -32.61%
Updated:October 10 2025
huggingface.co

Total runs: 92
Run Growth: 11
Growth Rate: 12.50%
Updated:March 01 2025
huggingface.co

Total runs: 83
Run Growth: -55
Growth Rate: -66.27%
Updated:September 03 2025
huggingface.co

Total runs: 70
Run Growth: -3
Growth Rate: -4.35%
Updated:March 01 2025
huggingface.co

Total runs: 70
Run Growth: 65
Growth Rate: 92.86%
Updated:April 15 2026
huggingface.co

Total runs: 51
Run Growth: -1.7K
Growth Rate: -3217.31%
Updated:March 01 2025
huggingface.co

Total runs: 46
Run Growth: 32
Growth Rate: 71.11%
Updated:September 03 2025
huggingface.co

Total runs: 45
Run Growth: -2
Growth Rate: -4.44%
Updated:October 10 2025
huggingface.co

Total runs: 45
Run Growth: -6
Growth Rate: -13.33%
Updated:April 15 2026