Help preserve open and free AI for humanity's future

← All models

HuggingFaceTB_SmolVLM2-500M-Video-Instruct

HuggingFaceTB · View on Hugging Face ↗

Compact instruct vision-language model (SmolVLM2) that also understands video — image, multi-image and video QA.

✓ verified · rehash-vs-hf-metadata at 2026-08-23T07:17:43Z

apache-2.01.90 GB (2,034,856,030 bytes)transformersonnxsafetensorssmolvlmimage-text-to-textconversationalendpoints_compatible1 language (en)paper: 2504.05299

Get this model

Download HuggingFaceTB_SmolVLM2-500M-Video-Instruct.torrent

Recommended — the .torrent carries the webseed url-list, so your client can fall back to plain HTTPS if the swarm is thin. See/verify for the full download + verification walkthrough.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


library_name: transformers license: apache-2.0 datasets:

  • HuggingFaceM4/the_cauldron
  • HuggingFaceM4/Docmatix
  • lmms-lab/LLaVA-OneVision-Data
  • lmms-lab/M4-Instruct-Data
  • HuggingFaceFV/finevideo
  • MAmmoTH-VL/MAmmoTH-VL-Instruct-12M
  • lmms-lab/LLaVA-Video-178K
  • orrzohar/Video-STaR
  • Mutonix/Vript
  • TIGER-Lab/VISTA-400K
  • Enxin/MovieChat-1K_train
  • ShareGPT4Video/ShareGPT4Video pipeline_tag: image-text-to-text language:
  • en base_model:
  • HuggingFaceTB/SmolVLM-500M-Instruct

SmolVLM2-500M-Video

SmolVLM2-500M-Video is a lightweight multimodal model designed to analyze video content. The model processes videos, images, and text inputs to generate text outputs - whether answering questions about media files, comparing visual content, or transcribing text from images. Despite its compact size, requiring only 1.8GB of GPU RAM for video inference, it delivers robust performance on complex multimodal tasks. This efficiency makes it particularly well-suited for on-device applications where computational resources may be limited.

Model Summary

  • Developed by: Hugging Face 🤗
  • Model type: Multi-modal model (image/multi-image/video/text)
  • Language(s) (NLP): English
  • License: Apache 2.0
  • Architecture: Based on Idefics3 (see technical summary)

Resources

Uses

SmolVLM2 can be used for inference on multimodal (video / image / text) tasks where the input consists of text queries along with video or one or more images. Text and media files can be interleaved arbitrarily, enabling tasks like captioning, visual question answering, and storytelling based on visual content. The model does not support image or video generation.

To fine-tune SmolVLM2 on a specific task, you can follow the fine-tuning tutorial.

Evaluation

We evaluated the performance of the SmolVLM2 family on the following scientific benchmarks:

Size Video-MME MLVU MVBench
2.2B 52.1 55.2 46.27
500M 42.2 47.3 39.73
256M 33.7 40.6 32.7

How to get started

You can use transformers to load, infer and fine-tune SmolVLM. Make sure you have num2words, flash-attn and latest transformers installed. You can load the model as follows.

from transformers import AutoProcessor, AutoModelForImageTextToText
import torch

model_path = "HuggingFaceTB/SmolVLM2-500M-Video-Instruct"
processor = AutoProcessor.from_pretrained(model_path)
model = AutoModelForImageTextToText.from_pretrained(
    model_path,
    torch_dtype=torch.bfloat16,
    _attn_implementation="flash_attention_2"
).to("cuda")

Simple Inference

You preprocess your inputs directly using chat templates and directly passing them

messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
            {"type": "text", "text": "Can you describe this image?"},
        ]
    },
]

inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device, dtype=torch.bfloat16)

generated_ids = model.generate(**inputs, do_sample=False, max_new_tokens=64)
generated_texts = processor.batch_decode(
    generated_ids,
    skip_special_tokens=True,
)
print(generated_texts[0])

Video Inference

To use SmolVLM2 for video inference, make sure you have decord installed.

messages = [
    {
        "role": "user",
        "content": [
            {"type": "video", "path": "path_to_video.mp4"},
            {"type": "text", "text": "Describe this video in detail"}
        ]
    },
]

inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device, dtype=torch.bfloat16)

generated_ids = model.generate(**inputs, do_sample=False, max_new_tokens=64)
generated_texts = processor.batch_decode(
    generated_ids,
    skip_special_tokens=True,
)

print(generated_texts[0])

Multi-image Interleaved Inference

You can interleave multiple media with text using chat templates.

import torch


messages = [
    {
        "role": "user",
        "content": [
          {"type": "text", "text": "What is the similarity between these two images?"},
          {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
          {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/0052a70beed5bf71b92610a43a52df6d286cd5f3/diffusers/rabbit.jpg"},            
        ]
    },
]

inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device, dtype=torch.bfloat16)

generated_ids = model.generate(**inputs, do_sample=False, max_new_tokens=64)
generated_texts = processor.batch_decode(
    generated_ids,
    skip_special_tokens=True,
)
print(generated_texts[0])

Model optimizations

Misuse and Out-of-scope Use

SmolVLM is not intended for high-stakes scenarios or critical decision-making processes that affect an individual's well-being or livelihood. The model may produce content that appears factual but may not be accurate. Misuse includes, but is not limited to:

  • Prohibited Uses:
    • Evaluating or scoring individuals (e.g., in employment, education, credit)
    • Critical automated decision-making
    • Generating unreliable factual content
  • Malicious Activities:
    • Spam generation
    • Disinformation campaigns
    • Harassment or abuse
    • Unauthorized surveillance

License

SmolVLM2 is built upon SigLIP as image encoder and SmolLM2 for text decoder part.

We release the SmolVLM2 checkpoints under the Apache 2.0 license.

Citation information

You can cite us in the following way:

@article{marafioti2025smolvlm,
  title={SmolVLM: Redefining small and efficient multimodal models}, 
  author={Andrés Marafioti and Orr Zohar and Miquel Farré and Merve Noyan and Elie Bakouch and Pedro Cuenca and Cyril Zakka and Loubna Ben Allal and Anton Lozhkov and Nouamane Tazi and Vaibhav Srivastav and Joshua Lochner and Hugo Larcher and Mathieu Morlon and Lewis Tunstall and Leandro von Werra and Thomas Wolf},
  journal={arXiv preprint arXiv:2504.05299},
  year={2025}
}

Training Data

SmolVLM2 used 3.3M samples for training originally from ten different datasets: LlaVa Onevision, M4-Instruct, Mammoth, LlaVa Video 178K, FineVideo, VideoStar, VRipt, Vista-400K, MovieChat and ShareGPT4Video. In the following plots we give a general overview of the samples across modalities and the source of those samples.

Data Split per modality

Data Type Percentage
Image 34.4%
Text 20.2%
Video 33.0%
Multi-image 12.3%

Granular dataset slices per modality

Text Datasets

Dataset Percentage
llava-onevision/magpie_pro_ft3_80b_mt 6.8%
llava-onevision/magpie_pro_ft3_80b_tt 6.8%
llava-onevision/magpie_pro_qwen2_72b_tt 5.8%
llava-onevision/mathqa 0.9%

Multi-image Datasets

Dataset Percentage
m4-instruct-data/m4_instruct_multiimage 10.4%
mammoth/multiimage-cap6 1.9%

Image Datasets

Dataset Percentage
llava-onevision/other 17.4%
llava-onevision/vision_flan 3.9%
llava-onevision/mavis_math_metagen 2.6%
llava-onevision/mavis_math_rule_geo 2.5%
llava-onevision/sharegpt4o 1.7%
llava-onevision/sharegpt4v_coco 1.5%
llava-onevision/image_textualization 1.3%
llava-onevision/sharegpt4v_llava 0.9%
llava-onevision/mapqa 0.9%
llava-onevision/qa 0.8%
llava-onevision/textocr 0.8%

Video Datasets

Dataset Percentage
llava-video-178k/1-2m 7.3%
llava-video-178k/2-3m 7.0%
other-video/combined 5.7%
llava-video-178k/hound 4.4%
llava-video-178k/0-30s 2.4%
video-star/starb 2.2%
vista-400k/combined 2.2%
vript/long 1.0%
ShareGPT4Video/all 0.8%

Magnet link (secondary — no webseeds)

Opens the swarm directly, but carries no webseed url-list. Prefer the.torrent download above — HTTP fallback seeds ride inside it.

magnet:?xt=urn:btih:add1ebfe353308002fd8c9ece6acc3e30d48c412&dn=HuggingFaceTB_SmolVLM2-500M-Video-Instruct

Open magnet in torrent client · infohash add1ebfe353308002fd8c9ece6acc3e30d48c412

Files & hashes

PathSizeMethodHash
README.md10.6 KB (10,865 B)sha1-git-blob6121eec63636b076e23d9e2ceb019d5029cb73fb
added_tokens.json4.6 KB (4,739 B)sha1-git-blob71dc811700b6aa9274d3697ee7d4fb2d5375e766
chat_template.json430 B (430 B)sha1-git-blob1d342e4f070c962a14ba4ece4e06212bc70d8e36
config.json3.7 KB (3,767 B)sha1-git-blob2463e842695989a207176fdb249327a494b05cfb
generation_config.json136 B (136 B)sha1-git-blobeace9aa6d392fd94dbe0c90825074c53fd7ecd4a
merges.txt455.5 KB (466,391 B)sha1-git-blob69503b13f727ba3812b6803e97442a6de05ef5eb
model.safetensors1.89 GB (2,029,990,624 B)sha256-lfsb9bfd456c9472c0acd5719d6e514c4b859891af205ee1a736552fd3497b8b0c3
preprocessor_config.json599 B (599 B)sha1-git-blobbf7669a38692ad141d333db3be18bd55cb6e2c59
processor_config.json67 B (67 B)sha1-git-blob83df8c48da1f41e1a9129a4bc2aba000eb2b529f
special_tokens_map.json868 B (868 B)sha1-git-blob2b5aee28d56c0e9d89ff6bc70818fba986a90ca9
tokenizer.json3.4 MB (3,548,256 B)sha1-git-bloba4005d1cf3170a31600a5c96f95768166cbc2b28
tokenizer_config.json28.0 KB (28,626 B)sha1-git-blobe4042a1126290fdb96ece2a4ad8dd7108c5de484
vocab.json781.9 KB (800,662 B)sha1-git-blob0ad5ecc2035b7031b88afb544ee95e2d49baa484

Provenance

Upstream repositoryHuggingFaceTB/SmolVLM2-500M-Video-Instruct
Revision (pinned)7b375e1b73b11138ff12fe22c8f2822d8fe03467
Fetched at2026-08-23T07:16:19Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

Webseeds