Run this model with HF Jobs
Run facebook/webssl-dino3b-heavy2b-224 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/facebook/webssl-dino3b-heavy2b-224. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/facebook/webssl-dino3b-heavy2b-224 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use facebook/webssl-dino3b-heavy2b-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/webssl-dino3b-heavy2b-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="facebook/webssl-dino3b-heavy2b-224")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("facebook/webssl-dino3b-heavy2b-224") model = AutoModel.from_pretrained("facebook/webssl-dino3b-heavy2b-224", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,394 Bytes
dd39c29 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | ---
library_name: transformers
license: cc-by-nc-4.0
inference: false
---
# Web-SSL DINO ViT-3B: Heavy Filtered 2B MetaCLIP data, 224 Resolution
A 3 billion parameter Vision Transformer (ViT) trained with DINOv2 self-supervised learning on heavily filtered web-scale image data without language supervision. Introduced in ["Scaling Language-Free Visual Representation Learning"](https://arxiv.org/abs/2504.01017) (Fan et al., 2025).
## Model Details
- **Architecture**: ViT (3072 width, 26 depth, 24 heads)
- **Parameters**: 3B
- **Resolution**: 224×224 pixels
- **Training**: Self-supervised Web-DINO on heavily filtered MetaCLIP data
## Model Descriptions
Web-SSL DINO 3B is a 3 billion parameter Vision Transformer model trained using self-supervised learning on heavily filtered web images without language supervision. The "heavy2b" designation indicates training on a subset of images containing charts, tables, and documents with readable text, representing only 1.3% of the original MetaCLIP dataset. This focused filtering significantly improves OCR & Chart understanding capabilities while maintaining strong performance on other vision tasks. This model demonstrates that pure visual learning, when scaled appropriately, can match or exceed the performance of language-supervised models like CLIP across various vision tasks.
<img src="webssl_teaser.png" alt="WebSSL Model Overview" width="600">
## Usage
```python
from transformers import AutoImageProcessor, Dinov2Model
import torch
from PIL import Image
processor = AutoImageProcessor.from_pretrained('facebook/webssl-dino3b-heavy2b-224')
model = Dinov2Model.from_pretrained('facebook/webssl-dino3b-heavy2b-224')
# Process an image
image = Image.open('path/to/image.jpg')
inputs = processor(images=image, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
cls_features = outputs.last_hidden_state[:, 0] # CLS token features
patch_features = outputs.last_hidden_state[:, 1:] # patch-wise token features
```
## Citation
```bibtex
@article{fan2025scaling,
title={Scaling Language-Free Visual Representation Learning},
author={David Fan and Shengbang Tong and Jiachen Zhu and Koustuv Sinha and Zhuang Liu and Xinlei Chen and Michael Rabbat and Nicolas Ballas and Yann LeCun and Amir Bar and Saining Xie},
year={2025},
eprint={2504.01017},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
``` |