All models

InternVL Pixel Shuffle Connector

The InternVL 1.5 connector: pixel shuffle cuts visual tokens to a quarter, then an MLP projects them.

Multimodal · 14 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (15 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
116.4M
Operations
14
Framework
PyTorch
Recurrent
No
Published
Science China Information Sciences (arXiv 2024)
Cited by
329 (as of 28 October 2026)
Authors
Zhe Chen, Weiyun Wang, Hao Tian and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17596
Graph hash
b8cc0216b6c71313955af692ced484d762c73e8e93f5cb4d03bc25a3e07f0c74
Skeleton hash
4135b58b0625958a4b27dea6f573e041e48d635508d3678ae05a2fb4e763cfc8
Architecture hash
efb99a1de374420be407e170108d69fb7f04b3dec24712b9c30d5373d580b73a
Diagram SHA-256
2a949b5bdba396db8a5ee87ba8d7e10d4c44c50703f01d812109c152b3ac2a91
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model is the connector of InternVL 1.5: the pixel shuffle and MLP projector that join its vision encoder to its language model. InternVL 1.5 is an open-source multimodal large language model that follows what its paper calls the ViT-MLP-LLM configuration.

The pixel shuffle operation reduces the number of visual tokens to one-quarter of the original, so that a 448×448 image is represented by 256 visual tokens. The paper says it was added to enhance scalability for high resolution. Images are divided into 448×448 tiles, and with the maximum of 40 tiles at test time the paper counts 10,496 visual tokens.

The MLP projector was randomly initialized, while the InternViT-6B vision encoder and the InternLM2-20B language model were pre-trained. According to the model card, the learnable components in the pre-training stage were the ViT and the MLP, and the fine-tuning stage added the LLM.

Key idea. InternVL 1.5 uses a simple pixel shuffle to reduce the number of visual tokens to one-quarter before an MLP projector passes them to the language model.

  • InternVL Pixel Shuffle Connector
  • InternVL mlp1 projector
  • InternVL
  • InternVL 1.5 connector
  • pixel shuffle
  • MLP projector
  • vision-language connector
  • visual token reduction
  • multimodal projector

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{chen2024fargpt4vclosinggap,
      title={How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suites}, 
      author={Zhe Chen and Weiyun Wang and Hao Tian and Shenglong Ye and Zhangwei Gao and Erfei Cui and Wenwen Tong and Kongzhi Hu and Jiapeng Luo and Zheng Ma and Ji Ma and Jiaqi Wang and Xiaoyi Dong and Hang Yan and Hewei Guo and Conghui He and Botian Shi and Zhenjiang Jin and Chao Xu and Bin Wang and Xingjian Wei and Wei Li and Wenjian Zhang and Bo Zhang and Pinlong Cai and Licheng Wen and Xiangchao Yan and Min Dou and Lewei Lu and Xizhou Zhu and Tong Lu and Dahua Lin and Yu Qiao and Jifeng Dai and Wenhai Wang},
      year={2024},
      eprint={2404.16821},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2404.16821}, 
}