From: facebook <huggingface.co/facebook>Newsgroups: alt.freeweights.visionSubject:

dino-vitb8

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

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

86M params687MBdino-vitb8safetensorspermissive
FactsParams86MSize687 MBFormatssafetensorsTaskimage feature extractionLicenseApache-2.0From sourcepermissive
$ fw get facebook/dino-vitb8
# manifest sha256 47d0b907352b… · 687 MB · 6 files
$ fw verify ./dino-vitb8 facebook/dino-vitb8
From sourceHosted (signed)facebook/dino-vitb8Last check: 2026-11-14 21:36 UTC

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

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
687 MB
Weights
343 MB (safetensors)
Parameters
86M
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 f1ca762. Shown as plain text with links; images open at the publisher.

Vision Transformer (base-sized model, patch size 8) trained using DINO#

Vision Transformer (ViT) model trained using the DINO method. It was introduced in the paper Emerging Properties in Self-Supervised Vision Transformers by Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, Armand Joulin and first released in this repository.

Disclaimer: The team releasing DINO 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, namely ImageNet-1k, at a resolution of 224x224 pixels.

Images are presented to the model as a sequence of fixed-size patches (resolution 8x8), 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 image classification. 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 ViTImageProcessor, ViTModel
from PIL import Image
import requests

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

processor = ViTImageProcessor.from_pretrained('facebook/dino-vitb8')
model = ViTModel.from_pretrained('facebook/dino-vitb8')

inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
BibTeX entry and citation info#
@article{DBLP:journals/corr/abs-2104-14294,
  author    = {Mathilde Caron and
               Hugo Touvron and
               Ishan Misra and
               Herv{\'{e}} J{\'{e}}gou and
               Julien Mairal and
               Piotr Bojanowski and
               Armand Joulin},
  title     = {Emerging Properties in Self-Supervised Vision Transformers},
  journal   = {CoRR},
  volume    = {abs/2104.14294},
  year      = {2021},
  url       = {https://arxiv.org/abs/2104.14294},
  archivePrefix = {arXiv},
  eprint    = {2104.14294},
  timestamp = {Tue, 04 May 2021 15:12:43 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2104-14294.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Files

6 files · 687 MBWeights 343 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 6 files with their sha256
FileSizesha256
.gitattributes1.23 KB98ccb431c012ebfe976280fbd45aea4cec7409935868ccecf3954370f96732a1
README.md3.26 KB068a8b3ded3bc227b448197f46290701ab28734778843c72a61032f86592b1a5
config.json453 Bcc35e8f8ae47d68ced2198a0fe4d08f63a04622b964ee78943c3b0333a70ac6f
model.safetensors343 MBf51c99ce793d1eb87daf2a670b9e11e50927fd00334d2cac75cbd30666d13f6b
preprocessor_config.json244 B44298553bf686c8c3d1b128f24fae01f76235f66bda5516f1c6c0c57bba1b47f
pytorch_model.bin343 MB5050bfb328f303d0a4c8c052b793eb62dc8e066dfe2d7d049cc841a55f055744
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
f1ca762fe3 pinned now manifest updated, same commit2026-11-14 21:36 UTC6 files · 687 MB
f1ca762fe32026-11-14 21:36 UTC6 files · 687 MB

Use it

$ fw get facebook/dino-vitb8
# manifest sha256 47d0b907352b… · 687 MB · 6 files
$ fw verify ./dino-vitb8 facebook/dino-vitb8
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/facebook/dino-vitb8.json --dir ./dino-vitb8 $ python3 fw.py verify ./dino-vitb8 ./facebook__dino-vitb8.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/dino-vitb8 --revision f1ca762fe312f2617c0f37f3d56a5af83847bf6c --local-dir ./dino-vitb8

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
068a8b3ded3bc227b448197f46290701ab28734778843c72a61032f86592b1a5
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: dino-vitb8Date: 2026-11-14Commit: f1ca762Signed: 2DC28CC7B26A283B ✓
Upstream
facebook/dino-vitb8
Pinned commit
f1ca762fe312f2617c0f37f3d56a5af83847bf6c
Manifest
dino-vitb8.json · .minisig
Manifest sha256
47d0b907352b187171b404079ee5d8c8fbff7aa2d1e92d809c326bc6698ada04
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/dino-vitb8.json $ curl -O https://freeweights.allternit.com/manifests/facebook/dino-vitb8.json.minisig $ minisign -Vm dino-vitb8.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

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/dino-vitb8
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. dino-vitb8.json. Provenance. Takedown history: none.
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