All models

maxxvit_rmlp_nano_rw_256

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

Image classification · 782 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 (28 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
16.8M
Operations
782
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
m5767
Graph hash
6b57b7cfee7ca2b4c05721d6279ba3c623dbad5141cbc99f1d98cc51028b598e
Skeleton hash
ddf0fed2e7c6da34389130cf62cb9e372539586dd352359f6d1ccd1bc1f18c31
Architecture hash
96c0de18705bab1abea2926a690eddfe006db5661b8f01f8e822bff3ec0bbca3
Diagram SHA-256
d8946bed01b09609bdf359abec27a4cc33da54f263429999e6b0efbad86dcee4
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_nano_rw_256', pretrained=False)

What it is

This model is the nano-size MaxxViT with relative position MLP, defined for 256x256 input.

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}, 
}