Multimodal

Patch merger / pixel shuffle

Merges neighboring visual tokens into fewer, wider ones so the language model reads a shorter sequence.

First page of Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural NetworkGoes back toSep 2016Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural NetworkShi et al. · arXiv 1609.05158 ↗
Patch merger: fewer, wider tokens2×2 neighborhoods of visual tokens fuse into one · the LLM reads 4× less16 tokens4 tokens, each wider

A full-resolution vision encoder emits far more tokens than a language model wants to attend over. Patch mergers (or pixel-shuffle/unshuffle stages) fuse each small neighborhood of visual tokens into one wider token. Commonly a 4× reduction. Before handing them to the LLM. It is a large inference-cost saving with modest information loss.

Adoption over time

Share of new models that have included a patch merger over time.

26%2022202320242025202626%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 Qwen/Qwen3-VL-8B-Instruct architecture graphQwen/Qwen3-VL-8B-Instructimage-text-to-text · ↓ 19.7M · ♡ 1kOpen in visualizer Qwen/Qwen3.5-9B architecture graphQwen/Qwen3.5-9Bimage-text-to-text · ↓ 9.2M · ♡ 2kOpen in visualizer nvidia/Qwen3.6-35B-A3B-NVFP4 architecture graphnvidia/Qwen3.6-35B-A3B-NVFP4text-generation · ↓ 8.0M · ♡ 628Open in visualizer Qwen/Qwen3.8-27B architecture graphQwen/Qwen3.8-27Bimage-text-to-text · ↓ 7.3M · ♡ 16kOpen in visualizer Qwen/Qwen2.5-VL-7B-Instruct architecture graphQwen/Qwen2.5-VL-7B-Instructimage-text-to-text · ↓ 6.9M · ♡ 2kOpen in visualizer Qwen/Qwen3.8-27B-FP8 architecture graphQwen/Qwen3.8-27B-FP8image-text-to-text · ↓ 6.9M · ♡ 846Open in visualizer Qwen/Qwen3.5-4B architecture graphQwen/Qwen3.5-4Bimage-text-to-text · ↓ 6.8M · ♡ 943Open in visualizer Comfy-Org/Qwen-Image-2.1 architecture graphComfy-Org/Qwen-Image-2.1↓ 6.0MOpen in visualizer Qwen/Qwen3.6-27B-FP8 architecture graphQwen/Qwen3.6-27B-FP8image-text-to-text · ↓ 5.6M · ♡ 357Open in visualizer zai-org/GLM-5.3-Flash architecture graphzai-org/GLM-5.3-Flashimage-text-to-text · ↓ 5.4M · ♡ 3kOpen in visualizer Qwen/Qwen3.6-35B-A3B-FP8 architecture graphQwen/Qwen3.6-35B-A3B-FP8image-text-to-text · ↓ 5.3M · ♡ 412Open in visualizer

View 1,052 catalog matches for Patch merger / pixel shuffle →

Related concepts

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

Browse all model graphs →