SmolVLM is a 2‑billion‑parameter vision‑language model released by Hugging Face that emphasizes a minimal memory footprint and fast inference. The model family includes SmolVLM‑Base for fine‑tuning, SmolVLM‑Synthetic fine‑tuned on synthetic data, and SmolVLM‑Instruct ready for interactive use. All checkpoints, datasets, and training scripts are open‑source under Apache 2.0 and are integrated into the transformers library. SmolVLM follows the Idefics3 architecture, encoding 384×384 image patches into 81 tokens, resulting in a token count of about 1.2k for a single image and prompt, far fewer than competitors like Qwen2‑VL. This efficient encoding yields 3.3‑4.5× faster prefill throughput and 7.5‑16× faster generation throughput compared to Qwen2‑VL.
This blog post introduces SmolVLM, a 2B VLM, SOTA for its memory footprint. SmolVLM is small, fast, memory-efficient, and fully open-source. All model checkpoints, VLM datasets, training recipes and tools are released under the Apache 2.0 license.
This year has seen a boom in multimodal AI with many large vision language models released. The trends were to initially scale up compute, later scale up the data diversity by generating synthetic data with large models, and, recently, scale down to make these models more efficient. Small open models allow local deployment to browser or edge devices, cut inference costs, and enable user customization. Some notable examples of these models include PaliGemma 3B, moondream2, and Qwen2VL.
In this blog post, we introduce SmolVLM , a new family of 2B small vision language models that can be used commercially and deployed to smaller local setups, with completely open training pipelines.
Architecture Style: The architectural style combines elements of Hindu and Khmer styles seen commonly throughout Southeast Asia. You'll notice influences like stupas (dome-shaped structures), lotus flower carvings, and ornate details typical of these regions' religious buildings.
For SmolVLM, we closely followed the architecture from Idefics3, to the point that we use the same implementation in transformers. There are, however a few key differences:
To select the optimal checkpoint, we created a single metric by combining these benchmarks with different manually assigned weights to reflect their relative importance in assessing the model's capabilities. We used this single metric to select the best checkpoint. Generally, the models tended to do great on most benchmarks with more training, but their relative performance on DocVQA would decrease considerably.
We provide a notebook to fine-tune it on the VQAv2 dataset, optionally using LoRA, QLoRA or full fine-tuning. In the notebook, you can find some tricks to save up even more memory and have a larger batch size to fit SmolVLM inside consumer GPUs, like L4, for training. With batch sizes of 4, 8-bit loading with QLoRA and gradient checkpointing we can fine-tune in L4, and it consumes around ~16 GBs of VRAM. This makes it possible to fine-tune your SmolVLM using Colab! You can play around with the parameters to get a nice point in training duration-memory trade-off.
SmolLM2’s pre-training context window is insufficient for VLMs. Images are encoded into many tokens, and we wanted to support multiple images. To address this, we extended it to 16k tokens by increasing the RoPE base value from 10k to 273k, following the guidelines in “Scaling Laws of RoPE-based Extrapolation” . We fine-tuned the model on a mixture of long- and short-context datasets. For long-context datasets, we used the “books” subset of Dolma (primarily Project Gutenberg) and code documents with 8k+ tokens from The Stack, each contributing 20% to the final mixture. For short-context datasets, we streamlined the original SmolLM2 pre-training mix to include 20% FineWeb-Edu, 20% DCLM, and 20% from our math dataset (to be released soon). The math dataset was upsampled to mitigate a performance drop observed on GSM8k during the context extension process. All experiments were implemented using the EasyContext repository .
We release three models: SmolVLM-Base , which can be used for downstream fine-tuning, SmolVLM-Synthetic , the fine-tuned variant on synthetic data, and SmolVLM Instruct , the fine-tuned instruction variant, which can be used out of the box for interactive end-user applications.
This release comes with open-source models integrated into transformers, a demo built on SmolVLM Instruct , and a supervised fine-tuning script. We have used the datasets previously used for Idefics3: the Cauldron and Docmatix , which are also fully open-source.
The Main Building: Located at the center of the complex, the main building features intricate tile work with traditional Thai motifs that cover every inch of the structure. This includes patterns such as dragons, mythical creatures, flowers, and geometric shapes. The roofline has an elaborate design featuring multiple layers of tiles adorned with gold accents.
SmolVLM demonstrates that large‑scale vision‑language capabilities can be achieved with a small, efficient model, enabling local deployment and lower inference costs for industry and research.