All models

dinov2 (MMPretrain)

DINOv2, a vision foundation model that uses a ViT as a feature extractor, with an image classification output.

Image classification · 80 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 (20 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
dinov2
Parameters
731.4K
Operations
80
Framework
PyTorch
Recurrent
No
Source
transformers 5.18.0
Name in source
mmpretrain:dinov2
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
m6966
Graph hash
9d1d7b9ab9db6202cee04f8037e542e05aba0cbee3b30f5e3673cb94399f36ed
Skeleton hash
eaebfaac77f7396ea35836f3ec2dc58c924917a7d9beb124d58f46d0fe267fe7
Architecture hash
bef4f21e0a9353bbcae1840ff9ed49a6e1370ec1f8964af19581ca907c0b338b
Diagram SHA-256
cbd9f78fd8897bb2685babee45dc9dd3427afa8c95965b4d82321ff318a91ad6
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

menagerie.classics.wave_b_openmmlab:build_mmpretrain: build({})

What it is

About this model's family

DINOv2 is a vision foundation model that uses a Vision Transformer (ViT) as a feature extractor for multiple downstream tasks, such as image classification and depth estimation. It focuses on stabilizing and accelerating training, through techniques that include a faster memory-efficient attention, sequence packing, improved stochastic depth and model distillation.

The backbone's output tensor splits into two kinds of embedding. One is an embedding for the whole image, commonly referred to as a CLS token, which is useful for classification and retrieval. The other is a set of local embeddings, one for each 14x14 patch of the input image, which are useful for dense tasks such as semantic segmentation.

Key idea. DINOv2 is a vision foundation model whose ViT features serve multiple downstream tasks, with training stabilized and accelerated by techniques such as memory-efficient attention and model distillation.

  • dinov2
  • dino v2
  • vision foundation model
  • vit feature extractor
  • image embeddings
  • image classification
  • patch features

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