apple / DFN2B-CLIP-ViT-B-16

huggingface.co
Total runs: 190.0K
24-hour runs: -3.5K
7-day runs: -59.4K
30-day runs: -162.8K
Model's Last Updated: March 01 2025

Introduction of DFN2B-CLIP-ViT-B-16

Model Details of DFN2B-CLIP-ViT-B-16

A CLIP (Contrastive Language-Image Pre-training) model trained on DFN-2B. Data Filtering Networks (DFNs) are small networks used to automatically filter large pools of uncurated data. This model was trained on 2B images that were filtered from a pool of 12.8B uncurated image-text pairs (12.8B image-text pairs from CommonPool-12.8B).

These weights are directly usable in OpenCLIP (image + text).

Model Details
  • Model Type: Contrastive Image-Text, Zero-Shot Image Classification.
  • Dataset: DFN-2b
  • Papers:
  • Examples Seen: 12.8B
Model Metrics
Dataset Metric
ImageNet 1k 0.76236
Caltech-101 0.942894
CIFAR-10 0.9672
CIFAR-100 0.8347
CLEVR Counts 0.232333
CLEVR Distance 0.245267
Country211 0.19545
Describable Textures 0.575532
EuroSAT 0.54
FGVC Aircraft 0.248503
Food-101 0.91303
GTSRB 0.469913
ImageNet Sketch 0.620684
ImageNet v2 0.682
ImageNet-A 0.482133
ImageNet-O 0.493
ImageNet-R 0.830967
KITTI Vehicle Distance 0.192686
MNIST 0.782
ObjectNet 0.631851
Oxford Flowers-102 0.819895
Oxford-IIIT Pet 0.936907
Pascal VOC 2007 0.788528
PatchCamelyon 0.521545
Rendered SST2 0.486546
RESISC45 0.61381
Stanford Cars 0.90735
STL-10 0.97525
SUN397 0.714162
SVHN 0.598955
Flickr 0.7728
MSCOCO 0.518773
WinoGAViL 0.541748
iWildCam 0.155574
Camelyon17 0.499283
FMoW 0.141149
Dollar Street 0.625
GeoDE 0.891023
Average 0.609232
Model Usage
With OpenCLIP
import torch
import torch.nn.functional as F
from urllib.request import urlopen
from PIL import Image
from open_clip import create_model_from_pretrained, get_tokenizer 

model, preprocess = create_model_from_pretrained('hf-hub:apple/DFN2B-CLIP-ViT-B-16')
tokenizer = get_tokenizer('ViT-B-16')

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

labels_list = ["a dog", "a cat", "a donut", "a beignet"]
text = tokenizer(labels_list, context_length=model.context_length)

with torch.no_grad(), torch.cuda.amp.autocast():
    image_features = model.encode_image(image)
    text_features = model.encode_text(text)
    image_features = F.normalize(image_features, dim=-1)
    text_features = F.normalize(text_features, dim=-1)

    text_probs = torch.sigmoid(image_features @ text_features.T * model.logit_scale.exp() + model.logit_bias)

zipped_list = list(zip(labels_list, [round(p.item(), 3) for p in text_probs[0]]))
print("Label probabilities: ", zipped_list)
Citation
@article{fang2023data,
  title={Data Filtering Networks},
  author={Fang, Alex and Jose, Albin Madappally and Jain, Amit and Schmidt, Ludwig and Toshev, Alexander and Shankar, Vaishaal},
  journal={arXiv preprint arXiv:2309.17425},
  year={2023}
}

Runs of apple DFN2B-CLIP-ViT-B-16 on huggingface.co

190.0K
Total runs
-3.5K
24-hour runs
-17.8K
3-day runs
-59.4K
7-day runs
-162.8K
30-day runs

More Information About DFN2B-CLIP-ViT-B-16 huggingface.co Model

More DFN2B-CLIP-ViT-B-16 license Visit here:

https://choosealicense.com/licenses/apple-amlr

DFN2B-CLIP-ViT-B-16 huggingface.co

DFN2B-CLIP-ViT-B-16 huggingface.co is an AI model on huggingface.co that provides DFN2B-CLIP-ViT-B-16's model effect (), which can be used instantly with this apple DFN2B-CLIP-ViT-B-16 model. huggingface.co supports a free trial of the DFN2B-CLIP-ViT-B-16 model, and also provides paid use of the DFN2B-CLIP-ViT-B-16. Support call DFN2B-CLIP-ViT-B-16 model through api, including Node.js, Python, http.

DFN2B-CLIP-ViT-B-16 huggingface.co Url

https://huggingface.co/apple/DFN2B-CLIP-ViT-B-16

apple DFN2B-CLIP-ViT-B-16 online free

DFN2B-CLIP-ViT-B-16 huggingface.co is an online trial and call api platform, which integrates DFN2B-CLIP-ViT-B-16's modeling effects, including api services, and provides a free online trial of DFN2B-CLIP-ViT-B-16, you can try DFN2B-CLIP-ViT-B-16 online for free by clicking the link below.

apple DFN2B-CLIP-ViT-B-16 online free url in huggingface.co:

https://huggingface.co/apple/DFN2B-CLIP-ViT-B-16

DFN2B-CLIP-ViT-B-16 install

DFN2B-CLIP-ViT-B-16 is an open source model from GitHub that offers a free installation service, and any user can find DFN2B-CLIP-ViT-B-16 on GitHub to install. At the same time, huggingface.co provides the effect of DFN2B-CLIP-ViT-B-16 install, users can directly use DFN2B-CLIP-ViT-B-16 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

DFN2B-CLIP-ViT-B-16 install url in huggingface.co:

https://huggingface.co/apple/DFN2B-CLIP-ViT-B-16

Url of DFN2B-CLIP-ViT-B-16

DFN2B-CLIP-ViT-B-16 huggingface.co Url

Provider of DFN2B-CLIP-ViT-B-16 huggingface.co

apple
ORGANIZATIONS

Other API from apple

huggingface.co

Total runs: 26.9K
Run Growth: 1.1K
Growth Rate: 4.02%
Updated:March 01 2025
huggingface.co

Total runs: 8.9K
Run Growth: -604
Growth Rate: -6.82%
Updated:February 25 2025
huggingface.co

Total runs: 6.5K
Run Growth: -2.8K
Growth Rate: -42.73%
Updated:September 03 2025
huggingface.co

Total runs: 5.7K
Run Growth: 2.8K
Growth Rate: 49.89%
Updated:March 01 2025
huggingface.co

Total runs: 4.6K
Run Growth: 2.5K
Growth Rate: 53.55%
Updated:March 01 2025
huggingface.co

Total runs: 2.9K
Run Growth: 2.1K
Growth Rate: 70.65%
Updated:March 01 2025
huggingface.co

Total runs: 2.4K
Run Growth: 288
Growth Rate: 12.03%
Updated:December 19 2025
huggingface.co

Total runs: 2.1K
Run Growth: 1.6K
Growth Rate: 76.81%
Updated:March 01 2025
huggingface.co

Total runs: 2.0K
Run Growth: -755
Growth Rate: -38.50%
Updated:September 03 2025
huggingface.co

Total runs: 2.0K
Run Growth: 1.5K
Growth Rate: 76.74%
Updated:September 23 2026
huggingface.co

Total runs: 1.2K
Run Growth: 490
Growth Rate: 40.10%
Updated:September 03 2025
huggingface.co

Total runs: 454
Run Growth: 57
Growth Rate: 12.56%
Updated:March 01 2025
huggingface.co

Total runs: 358
Run Growth: -4.5K
Growth Rate: -1253.91%
Updated:July 26 2024
huggingface.co

Total runs: 303
Run Growth: 14
Growth Rate: 4.62%
Updated:October 10 2025
huggingface.co

Total runs: 287
Run Growth: 49
Growth Rate: 17.07%
Updated:April 25 2026
huggingface.co

Total runs: 240
Run Growth: 85
Growth Rate: 35.42%
Updated:October 10 2025
huggingface.co

Total runs: 214
Run Growth: 17
Growth Rate: 7.94%
Updated:September 03 2025
huggingface.co

Total runs: 161
Run Growth: 69
Growth Rate: 42.86%
Updated:March 01 2025
huggingface.co

Total runs: 148
Run Growth: 48
Growth Rate: 32.43%
Updated:June 14 2024
huggingface.co

Total runs: 110
Run Growth: 67
Growth Rate: 60.91%
Updated:March 01 2025
huggingface.co

Total runs: 79
Run Growth: 55
Growth Rate: 69.62%
Updated:August 06 2024
huggingface.co

Total runs: 70
Run Growth: 65
Growth Rate: 92.86%
Updated:April 15 2026
huggingface.co

Total runs: 55
Run Growth: 12
Growth Rate: 21.82%
Updated:October 10 2025
huggingface.co

Total runs: 54
Run Growth: -41
Growth Rate: -75.93%
Updated:August 02 2024
huggingface.co

Total runs: 51
Run Growth: 5
Growth Rate: 9.80%
Updated:September 03 2025
huggingface.co

Total runs: 46
Run Growth: -24
Growth Rate: -52.17%
Updated:March 01 2025