Multimodal

Patch embedding

Slices the image into fixed-size patches and projects each one into a token. How pixels become a sequence.

First page of An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleIntroduced inOct 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleDosovitskiy et al. · arXiv 2010.11929 ↗
Patch embedding: pixels become tokensimage → fixed-size patches→ one token per patch→ into the transformer, like any text sequence

Vision transformers do not see pixels; they see patches. The image is cut into a grid of fixed-size squares, each flattened and linearly projected into an embedding. One ‘visual token’ per patch. From that point on the vision encoder is just a transformer over a sequence, which is exactly why the same machinery works for text and images.

Adoption over time

Share of new models that have included patch embedding over time.

30%2022202320242025202630%20222023202420252026

See it in real models

Open any of these on hfviewer to find this block in the interactive architecture graph.

Comfy-Org/MiniMax-H3 architecture graphComfy-Org/MiniMax-H3↓ 23.3M · ♡ 2kOpen in visualizer openai/clip-vit-base-patch32 architecture graphopenai/clip-vit-base-patch32zero-shot-image-classification · ↓ 21.9M · ♡ 2kOpen in visualizer amazon/chronos-2 architecture graphamazon/chronos-2time-series-forecasting · ↓ 17.8M · ♡ 540Open in visualizer google/vit-base-patch16-224 architecture graphgoogle/vit-base-patch16-224image-classification · ↓ 15.4M · ♡ 1kOpen in visualizer autogluon/chronos-2 architecture graphautogluon/chronos-2time-series-forecasting · ↓ 8.7M · ♡ 72Open in visualizer Qwen/Qwen3.5-9B architecture graphQwen/Qwen3.5-9Bimage-text-to-text · ↓ 8.6M · ♡ 2kOpen in visualizer google/gemma-4-31B-it architecture graphgoogle/gemma-4-31B-itimage-text-to-text · ↓ 8.3M · ♡ 4kOpen in visualizer openai/clip-vit-large-patch14 architecture graphopenai/clip-vit-large-patch14zero-shot-image-classification · ↓ 8.1M · ♡ 2kOpen in visualizer laion/clap-htsat-fused architecture graphlaion/clap-htsat-fusedaudio-classification · ↓ 7.8M · ♡ 149Open in visualizer amazon/chronos-bolt-small architecture graphamazon/chronos-bolt-smalltime-series-forecasting · ↓ 7.7M · ♡ 49Open in visualizer Qwen/Qwen3.8-27B architecture graphQwen/Qwen3.8-27Bimage-text-to-text · ↓ 7.5M · ♡ 19kOpen in visualizer Qwen/Qwen2.5-VL-7B-Instruct architecture graphQwen/Qwen2.5-VL-7B-Instructimage-text-to-text · ↓ 6.9M · ♡ 2kOpen in visualizer

View 2,689 catalog matches for Patch embedding →

Related concepts

hfviewer renders the full architecture of 12,800+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.

Browse all model graphs →