Marketplace · Text & chat

SmolVLM2-2.2B-Instruct-Q4_K_M

Call SmolVLM2-2.2B-Instruct-Q4_K_M through one OpenAI-compatible API. It's served by 3 hosts on the Inpherio grid, each at a price it sets — your request goes to the cheapest healthy one, and fails over to the next if it's down.

From
£0.06
per 1M output tokens
£1 buys about 17 million tokens (≈ 13 million words)
Hosts
3
Loaded now
0

At a glance.

vision tools

  • Type: Text & chat
  • Hosts serving it now: 3 (0 with it loaded in memory)
  • Engines: llama_cpp
  • Context window: up to 8,192 tokens
  • Rentable: a whole host from £0.10 an hour (rentals)
python · openai sdk
from openai import OpenAI
client = OpenAI(base_url="https://inpherio.co.uk/v1",
                api_key=INPHERIO_API_KEY)
reply = client.chat.completions.create(
    model="SmolVLM2-2.2B-Instruct-Q4_K_M",
    messages=[{"role": "user", "content": "Hello"}],
)

SmolVLM2-2.2B-Instruct-Q4_K_M in detail.

SmolVLM2-2.2B 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 5.2GB of GPU RAM for video inference, it delivers robust performance on complex multimodal

Published by
HuggingFaceTB
Parameters
2.2B
Format
transformers
Architecture
smolvlm
Licence
Apache 2.0
Based on
HuggingFaceTB/SmolVLM-Instruct
Task
image text to text
Library
transformers
Languages
en
First published
8 Feb 2025
Last updated
12 Nov 2026
Downloads (30 days)
194,328 on Hugging Face
Likes
343

smolvlm image-text-to-text video-text-to-text en

The model card

Published by the model's authors on Hugging Face — shown as they wrote it, unedited by Inpherio.

SmolVLM2 2.2B

SmolVLM2-2.2B 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 5.2GB 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

Vision Evaluation

ModelMathvistaMMMUOCRBenchMMStarAI2DChartQA_TestScience_QATextVQA ValDocVQA Val
SmolVLM2 2.2B51.54272.9467068.849073.2179.98
SmolVLM 2.2B43.938.365.541.884.571.684.572.179.7

Video Evaluation

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

SizeVideo-MMEMLVUMVBench
2.2B52.155.246.27
500M42.247.339.73
256M33.740.632.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-2.2B-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])
Read the rest of the model card

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 the shape-optimized 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 TypePercentage
Image34.4%
Text20.2%
Video33.0%
Multi-image12.3%

Granular dataset slices per modality

Text Datasets

DatasetPercentage
llava-onevision/magpie_pro_ft3_80b_mt6.8%
llava-onevision/magpie_pro_ft3_80b_tt6.8%
llava-onevision/magpie_pro_qwen2_72b_tt5.8%
llava-onevision/mathqa0.9%

Multi-image Datasets

DatasetPercentage
m4-instruct-data/m4_instruct_multiimage10.4%
mammoth/multiimage-cap61.9%

Image Datasets

DatasetPercentage
llava-onevision/other17.4%
llava-onevision/vision_flan3.9%
llava-onevision/mavis_math_metagen2.6%
llava-onevision/mavis_math_rule_geo2.5%
llava-onevision/sharegpt4o1.7%
llava-onevision/sharegpt4v_coco1.5%
llava-onevision/image_textualization1.3%
llava-onevision/sharegpt4v_llava0.9%
llava-onevision/mapqa0.9%
llava-onevision/qa0.8%
llava-onevision/textocr0.8%

Video Datasets

DatasetPercentage
llava-video-178k/1-2m7.3%
llava-video-178k/2-3m7.0%
other-video/combined5.7%
llava-video-178k/hound4.4%
llava-video-178k/0-30s2.4%
video-star/starb2.2%
vista-400k/combined2.2%
vript/long1.0%
ShareGPT4Video/all0.8%

Sources: HuggingFaceTB/SmolVLM2-2.2B-Instruct on Hugging Face. Collected from public sources on 24 Nov 2026; the host serving it may run a different build or quantisation — the marketplace shows each host's own measurements.

Who's serving it.

Every host benchmarked this model on its own hardware before serving it. Prices are set by each host; health is scored by the platform from what it observes.

Hosts serving SmolVLM2-2.2B-Instruct-Q4_K_M right now
HostTierPriceMeasured speedHealthStateRent
Mac mini M4 (Live Market)L1£0.03 in · £0.06 out80 tok/s · 24 ms first token80loads on request—
iPhone 14 Pro Max · on-deviceL1£0.03 in · £0.06 out36 tok/s · 47 ms first token77loads on request£0.10/h
iPad Pro M1 · Inpherio+L1£0.03 in · £0.06 out34 tok/s · 52 ms first token59loads on request—

Live data, refreshed on every visit. How billing works.

Room on the grid for your machine.

3 machines serve SmolVLM2-2.2B-Instruct-Q4_K_M today. Every extra host is somewhere a request can fail over to when one drops, and spare capacity when demand spikes. The router weighs price, measured speed, health and whether the model is already loaded — so a host with a sharper price or quicker hardware wins the next call.

Hosts now
3
0 loaded in memory
Price to beat
£0.06
per 1M output tokens
Fastest measured
80 tok/s

Set your own price — you keep 85% of what it earns, and new hosts start with 12 months fee-free (up to £250 of earnings). A payout fee of £2 + 1% per payout to a UK bank account, £2 + 2% to any other country applies when you're paid. Install the connector, load SmolVLM2-2.2B-Instruct-Q4_K_M, and the platform benchmarks it on your hardware before your first request.