All models

maxxvit_rmlp_tiny_rw_256

A MaxxViT model from timm's implementation of the MaxViT and CoAtNet transformer-CNN hybrids.

Image classification · 1,218 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 (17 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

Family
maxxvit
Parameters
29.6M
Operations
1,218
Framework
PyTorch
Recurrent
No
Published
Lecture Notes in Computer Science (arXiv 2022)
Cited by
896 (as of 9 October 2026)
Authors
Zhengzhong Tu, Hossein Talebi, Han Zhang and others
License
Apache-2.0
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
m5769
Graph hash
d1b7ae64a08c796d50c03fbb2fbcc4f24df4cca80c46a4dfcc8b75536e0529e6
Skeleton hash
6a71469f9a0f6a26474bc45af832f2b6b2671de074eb5c005da087e1093f1aed
Architecture hash
ddd0722aa877168349e10867a0d6b16e88a5b3e25fd126992658eeda1cf3738c
Diagram SHA-256
f7bc4b742d4dc90b2481fb5458b29db59bc3cea2cdac98e0059d753422cbbbce
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

timm.create_model('maxxvit_rmlp_tiny_rw_256', pretrained=False)

What it is

This model is the tiny-size MaxxViT with relative position MLP.

About this model's family

MaxxViT models are defined in the timm library's implementation of MaxVit and CoAtNet, two architectures that mix vision transformers with convolutional networks. That implementation was written from scratch in PyTorch, and its author reports that 99% of it was done from the papers, with some late adjustments based on the public MaxViT code release.

The MaxViT paper's central idea is multi-axis attention, which decomposes full-size attention into two sparse forms, one local and one global. Block attention performs self-attention within windows, while grid attention attends globally to pixels in a sparse, uniform grid laid over the entire 2D space. Both have linear complexity in input size. A MaxViT block applies the two one after the other, preceded by an MBConv block with a squeeze-and-excitation module.

The "rw" in these model names typically marks configurations that the library's author wrote before referring to the official code. The author notes that these configurations appear to be a bit faster and lower in resource use than the paper's.

Key idea. The MaxViT paper introduces multi-axis attention, combining blocked local and dilated global attention with linear complexity, and stacks it with convolutions into a hierarchical vision backbone.

  • maxxvit
  • maxxvit rmlp
  • maxxvit_rmlp
  • multi-axis attention
  • relative position mlp
  • hybrid vision transformer
  • image classification

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

Cite the paper

@misc{tu2022maxvitmultiaxisvisiontransformer,
      title={MaxViT: Multi-Axis Vision Transformer}, 
      author={Zhengzhong Tu and Hossein Talebi and Han Zhang and Feng Yang and Peyman Milanfar and Alan Bovik and Yinxiao Li},
      year={2022},
      eprint={2204.01697},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2204.01697}, 
}