AI SeedbankHelp preserve open and free AI for humanity's future

← All models

facebook_dinov2-small

facebook · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0 tags:

  • dino
  • vision

Vision Transformer (small-sized model) trained using DINOv2

Vision Transformer (ViT) model trained using the DINOv2 method. It was introduced in the paper DINOv2: Learning Robust Visual Features without Supervision by Oquab et al. and first released in this repository.

Disclaimer: The team releasing DINOv2 did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a self-supervised fashion.

Images are presented to the model as a sequence of fixed-size patches, which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder.

Note that this model does not include any fine-tuned heads.

By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image.

Intended uses & limitations

You can use the raw model for feature extraction. See the model hub to look for fine-tuned versions on a task that interests you.

How to use

Here is how to use this model:

from transformers import AutoImageProcessor, AutoModel
from PIL import Image
import requests

url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)

processor = AutoImageProcessor.from_pretrained('facebook/dinov2-small')
model = AutoModel.from_pretrained('facebook/dinov2-small')

inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state

BibTeX entry and citation info

misc{oquab2023dinov2,
      title={DINOv2: Learning Robust Visual Features without Supervision}, 
      author={Maxime Oquab and Timothée Darcet and Théo Moutakanni and Huy Vo and Marc Szafraniec and Vasil Khalidov and Pierre Fernandez and Daniel Haziza and Francisco Massa and Alaaeldin El-Nouby and Mahmoud Assran and Nicolas Ballas and Wojciech Galuba and Russell Howes and Po-Yao Huang and Shang-Wen Li and Ishan Misra and Michael Rabbat and Vasu Sharma and Gabriel Synnaeve and Hu Xu and Hervé Jegou and Julien Mairal and Patrick Labatut and Armand Joulin and Piotr Bojanowski},
      year={2023},
      eprint={2304.07193},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:21997aa2c3f800000364e615d0ba586744f9593a&dn=facebook_dinov2-small

Open magnet in torrent client · infohash 21997aa2c3f800000364e615d0ba586744f9593a

Files & hashes

PathSizesha1sha256
README.md3.0 KB (3,033 B)6b3380957df44ed203ec1d5102e1245accbbbba94c20dca454a8e5c670e8de5c7e6040f512aeca5438516f7623eedc4e3b00599c
config.json547 B (547 B)5664b325e6258d3960fad8c4c1cff958f3cc22721809f83e3bdb1609a501a610ad4a742f4fd8ae44d72ca4aa0df52d1f2ac8628d
model.safetensors84.2 MB (88,249,960 B)4ae3100d3bb4d8916b06175aedf74a7b78977f74ae1e99fcefd534ed978cdeb8326f08030c96e28b7a81ffcbc98a857c84d14be1
preprocessor_config.json436 B (436 B)ff5b47c2edcd1d3556d63c01a65d93b58b9efce114e780d86fa1861f8751f868d7f45425b5feb55c38ca26f152ca5097ab30f828
pytorch_model.bin84.2 MB (88,297,097 B)fc09d726355aed481cc61ed8c975c32420a257861051e25b2ed69ddad24f3c41e7b6eed6e7f7d012103ea227e47eb82e87dc2050

Cite this release

Canonical URL
https://aiseedbank.org/models/facebook_dinov2-small/
Slug
facebook_dinov2-small
Infohash
21997aa2c3f800000364e615d0ba586744f9593a
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: facebook_dinov2-small.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryfacebook/dinov2-small
Revision (pinned)ed25f3a31f01632728cabb09d1542f84ab7b0056
Fetched at2026-09-03T22:33:53Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T22:34:00Z

apache-2.0168.4 MB (176,551,073 bytes)transformerspytorchsafetensorsdinov2image-feature-extractiondinovisionendpoints_compatiblepaper: 2304.07193