alt.freeweights.vision / dinov2-small
From: facebook <huggingface.co/facebook>Newsgroups: alt.freeweights.visionSubject:

dinov2-small

Date: 2026-11-14Commit: ed25f3aSigned: 2DC28CC7B26A283B ✓

Image feature extraction model with 22M parameters. Safetensors weights, 177 MB in all. Published by facebook under Apache-2.0.

22M params177MBdinov2-smallsafetensorspermissive
FactsParams22MSize177 MBFormatssafetensorsTaskimage feature extractionLicenseApache-2.0From sourcepermissive
$ fw get facebook/dinov2-small
# manifest sha256 8dfa81f64c86… · 177 MB · 6 files
$ fw verify ./dinov2-small facebook/dinov2-small
From sourceHosted (signed)facebook/dinov2-smallLast check: 2026-11-14 21:36 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
177 MB
Weights
88.2 MB (safetensors)
Parameters
22M
Formats
safetensors
Task
image feature extraction
License
Apache-2.0 (permissive)
Files
6, each with a sha256
Publisher
facebook
Added
2026-11-14
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:36 UTCpassed

Model card

From the publisher at commit ed25f3a. Shown as plain text with links; images open at the publisher.

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

Files

6 files · 177 MBWeights 88.2 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 6 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.03 KB4c20dca454a8e5c670e8de5c7e6040f512aeca5438516f7623eedc4e3b00599c
config.json547 B1809f83e3bdb1609a501a610ad4a742f4fd8ae44d72ca4aa0df52d1f2ac8628d
model.safetensors88.2 MBae1e99fcefd534ed978cdeb8326f08030c96e28b7a81ffcbc98a857c84d14be1
preprocessor_config.json436 B14e780d86fa1861f8751f868d7f45425b5feb55c38ca26f152ca5097ab30f828
pytorch_model.bin88.3 MB1051e25b2ed69ddad24f3c41e7b6eed6e7f7d012103ea227e47eb82e87dc2050
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
ed25f3a31f pinned now manifest updated, same commit2026-11-14 21:36 UTC6 files · 177 MB
ed25f3a31f2026-11-14 21:36 UTC6 files · 177 MB

Use it

$ fw get facebook/dinov2-small
# manifest sha256 8dfa81f64c86… · 177 MB · 6 files
$ fw verify ./dinov2-small facebook/dinov2-small
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/facebook/dinov2-small.json --dir ./dinov2-small $ python3 fw.py verify ./dinov2-small ./facebook__dinov2-small.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/dinov2-small --revision ed25f3a31f01632728cabb09d1542f84ab7b0056 --local-dir ./dinov2-small

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
4c20dca454a8e5c670e8de5c7e6040f512aeca5438516f7623eedc4e3b00599c
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: facebook <huggingface.co/facebook>Newsgroups: alt.freeweights.visionSubject: dinov2-smallDate: 2026-11-14Commit: ed25f3aSigned: 2DC28CC7B26A283B ✓
Upstream
facebook/dinov2-small
Pinned commit
ed25f3a31f01632728cabb09d1542f84ab7b0056
Manifest
dinov2-small.json · .minisig
Manifest sha256
8dfa81f64c86ca60726e8a07c48b27e124fcea0bb802c3dc0cd9c515dfcf4bd9
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:36 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/facebook/dinov2-small.json $ curl -O https://freeweights.allternit.com/manifests/facebook/dinov2-small.json.minisig $ minisign -Vm dinov2-small.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

2 models in the catalog name this one as their parent.

Quantizations
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/dinov2-small
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. dinov2-small.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of dinov2-small. Each has its own license check and page.

From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX