AI Pulse by Inblix

SmolVLM packs video analysis and 16x faster throughput into a 2B model

Hugging Face Blog · Nov 26, 2024 · 2 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: SmolVLM packs video analysis and 16x faster throughput into a 2B model

The race to build smaller, cheaper multimodal models just got a serious new contender. Hugging Face has dropped SmolVLM, a family of 2-billion-parameter vision language models that resets expectations for what can run on a laptop. The headline number that should make developers sit up: generation throughput clocks in 7.5 to 16 times faster than Qwen2-VL, while prefill is 3.3 to 4.5 times quicker. That’s the difference between a sluggish demo and something that feels interactive.

The secret isn’t just the small parameter count — it’s aggressive visual compression. SmolVLM uses a pixel shuffle strategy to squash image information by a factor of 9, encoding each 384×384 image patch into a mere 81 tokens. For a typical prompt with one image, the model uses about 1,200 tokens. Qwen2-VL, by comparison, chews through 16,000 tokens for the same job. That compression cascades into everything: lower memory, fewer computations, and the ability to handle multiple images without watching GPU memory spike into the danger zone.

Under the hood, the team swapped Idefics3’s Llama 3.1 8B language backbone for SmolLM2 1.7B and switched to a shape-optimized SigLIP vision encoder with 384×384 patches. Three variants are out now: a base model for fine-tuning, a version trained on synthetic data, and an instruction-tuned model ready for end-user applications. Everything — checkpoints, datasets, training recipes — is Apache 2.0 licensed, which means no licensing gymnastics for commercial use.

What caught my eye wasn’t just the efficiency benchmarks. The team tested video understanding with a dead-simple pipeline: extract up to 50 frames, don’t resize them internally, and feed them in. On the CinePile benchmark, SmolVLM scored 27.14%, landing between InternVL2 (2B) and the much larger Video LLaVa (7B). A qualitative example from the FineVideo dataset shows it correctly identifying ingredients on a kitchen counter and describing a cooking scene, though it fumbled temporal ordering — mistaking a sequence of pointed-at ingredients for a simultaneous display. For a 2B model with no specialized video training, that’s surprisingly useful. It’s not going to unseat GPT-4V for film analysis, but for quick video triage when compute is tight, it’s a genuinely practical option.

💡 Key Takeaways

  1. SmolVLM achieves 7.5 to 16 times faster generation throughput than Qwen2-VL by aggressively compressing image patches into just 81 tokens each.
  2. The model's memory efficiency allows it to handle multiple images without the sharp GPU memory spikes seen in competitors like InternVL.
  3. Despite having only 2B parameters, SmolVLM scored 27.14% on the CinePile video benchmark, outperforming some larger models with a simple 50-frame extraction pipeline.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

Learn more

Glossary terms

← Back to all articles