SAVRN
Search Contact SAVRN

Open-weight model · Image feature extraction

vit_small_patch14_dinov2.lvd142m

by PyTorch Image Models timm/vit_small_patch14_dinov2.lvd142m

A Vision Transformer (ViT) image feature model. Pretrained on LVD-142M with self-supervised DINOv2 method.

Parameters22M
Context
Weights176.5 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads1.2M

Runs On

What it takes to serve vit_small_patch14_dinov2.lvd142m (22M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.0 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By PyTorch Image Models, published under apache-2.0, revision 4610ca143709.

Model card for vit_small_patch14_dinov2.lvd142m

A Vision Transformer (ViT) image feature model. Pretrained on LVD-142M with self-supervised DINOv2 method.

Model Details

  • Model Type: Image classification / feature backbone
  • Model Stats:
  • Params (M): 22.1
  • GMACs: 46.8
  • Activations (M): 198.8
  • Image size: 518 x 518
  • Papers:
  • DINOv2: Learning Robust Visual Features without Supervision: https://arxiv.org/abs/2304.07193
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: https://arxiv.org/abs/2010.11929v2
  • Original: https://github.com/facebookresearch/dinov2
  • Pretrain Dataset: LVD-142M

Model Usage

Image Classification

from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model('vit_small_patch14_dinov2.lvd142m', pretrained=True)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # unsqueeze single image into batch of 1

top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)

Image Embeddings

Read the full model card (399 words)

Identity and Version

Repository
timm/vit_small_patch14_dinov2.lvd142m
Publisher
PyTorch Image Models
Task
Image feature extraction
Modality
Other
Library
timm
Parameters
22M parameters
Languages
Not stated by the source
Revision
4610ca143709d58a633b6397a74412c2c3842454
First published
2023-05-09
Last updated
2025-01-21

Files and Weights

5 files, 176.5 MB in total. The weights are 2 files totalling 176.5 MB in bin, safetensors.

Weights2 files · 176.5 MB
Configuration1 file · 615 B
Documentation1 file · 4.0 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights88.2 MB 04d27f3400d0
pytorch_model.binWeights88.3 MB 120606d7ac09
config.jsonConfiguration615 B
README.mdDocumentation4.0 KB
.gitattributesRepository1.5 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
176.5 MB
Download from PyTorch Image Models

Released by PyTorch Image Models through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published176.5 MB
16-bit0.0 GB
8-bit0.0 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Compare vit_small_patch14_dinov2.lvd142m

Questions About vit_small_patch14_dinov2.lvd142m

How much GPU memory does vit_small_patch14_dinov2.lvd142m need?

About 0.1 GB at 16-bit and 0 GB at 4-bit: the weights (22M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run vit_small_patch14_dinov2.lvd142m on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use vit_small_patch14_dinov2.lvd142m commercially?

Yes. vit_small_patch14_dinov2.lvd142m is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Image feature extraction

dinov2-small

AI at Meta

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. 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…

Open weights apache-2.0 22M parameters transformers

Model · Image feature extraction

vit-base-patch16-224-in21k

Google

Vision Transformer (ViT) model pre-trained on ImageNet-21k (14 million images, 21,843 classes) at resolution 224x224. It was introduced in the paper An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale by Dosovitskiy et al. and first released in this repository. However, the weights were converted from the timm repository by Ross Wightman, who already converted the weights from JAX to PyTorch. Credits go to him. Disclaimer: The team releasing ViT did not write a model card for this model so this model card has been written by the Hugging Face team. The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a…

Open weights apache-2.0 86M parameters transformers

Model · Image feature extraction

dinov2-base

AI at Meta

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. 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…

Open weights apache-2.0 87M parameters transformers

Model · Image feature extraction

dinov3-vitl16-pretrain-lvd1689m

Camenduru

DINOv3 is a family of versatile vision foundation models that outperforms the specialized state of the art across a broad range of settings, without fine-tuning. DINOv3 produces high-quality dense features that achieve outstanding performance on various vision tasks, significantly surpassing previous self- and weakly-supervised foundation models. These are Vision Transformer and ConvNeXt models trained following the method described in the DINOv3 paper. 12 models are provided: - 10 models pretrained on web data (LVD-1689M dataset) - 1 ViT-7B trained from scratch, - 5 ViT-S/S+/B/L/H+ models distilled from the ViT-7B, - 4 ConvNeXt-{T/S/B/L} models distilled from the ViT-7B, - 2 models…

Open weights other 303M parameters transformers

Model · Image feature extraction

dinov2-large

AI at Meta

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. 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…

Open weights apache-2.0 304M parameters transformers