All models

test_vit2

timm's miniature test backbones, swept into the roster because the library lists them.

Image classification · 240 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 (31 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
455.7K
Operations
240
Framework
PyTorch
Recurrent
No
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
m10493
Graph hash
7cb1622f3c9a11e22202b391d157793ddd6f974fdfc647337baa0ae394a19b6c
Skeleton hash
82ea7d2de13ae6246add927499a8920a4780160173e5454fe83f2515010eab1a
Architecture hash
b113e14bb842ef94274a517ee399200274e1f825288f91aa1e4a3a3a19b235d4
Diagram SHA-256
6d19929307159aaba6a6737e74c3c0a87b8d7e04904db4ae453514c49fc48278
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('test_vit2', pretrained=False)

What it is

About this model's family

These are timm's own internal test models: miniature registrations of its ByobNet, ConvNeXt, EfficientNet, MambaOut, NFNet, ResNet and Vision Transformer code paths, exposed by list_models and so swept into the roster. The test_byobnet model comes from Bring-Your-Own-Blocks Network, a flexible network with a dataclass-based config for stacking blocks, and is described as a minimal test ResNet. The ConvNeXt tests sit in the module implementing A ConvNet for the 2020s and ConvNeXt V2, where several small model definitions are timm originals. The EfficientNet tests, including evos, group-norm and layer-norm variants, come from the module covering the EfficientNet family and relatives such as MixNet, MnasNet, FBNet and TinyNet. The MambaOut test comes from code adapted from timm, MetaFormer and InceptionNeXt.

All fifteen members run from random initialisation at a 160x160 input and emit 1000-way logits, which is what the library's own tests exercise.

Key idea. Tiny registrations of timm's main backbone code paths, kept to test the library rather than to classify images well.

  • timm test models
  • test_byobnet
  • test_convnext
  • test_efficientnet
  • test_mambaout
  • test_nfnet
  • test_resnet
  • test_vit
  • timm internal test registration
  • timm
  • Ross Wightman

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