apple / DFN2B-CLIP-ViT-L-14

huggingface.co
Total runs: 29.3K
24-hour runs: -86
7-day runs: 8.0K
30-day runs: 21.6K
Model's Last Updated: March 01 2025

Introduction of DFN2B-CLIP-ViT-L-14

Model Details of DFN2B-CLIP-ViT-L-14

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

This model has been converted to PyTorch from the original JAX checkpoints from Axlearn ( https://github.com/apple/axlearn ). 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
Eval Dataset Metric
ImageNet 1k 0.81396
Caltech-101 0.953141
CIFAR-10 0.9836
CIFAR-100 0.8835
CLEVR Counts 0.3338
CLEVR Distance 0.248733
Country211 0.28237
Describable Textures 0.66117
EuroSAT 0.646296
FGVC Aircraft 0.395945
Food-101 0.945861
GTSRB 0.616152
ImageNet Sketch 0.683311
ImageNet v2 0.7453
ImageNet-A 0.6676
ImageNet-O 0.3915
ImageNet-R 0.900033
KITTI Vehicle Distance 0.201125
MNIST 0.8468
ObjectNet 0.739367
Oxford Flowers-102 0.865822
Oxford-IIIT Pet 0.954941
Pascal VOC 2007 0.81644
PatchCamelyon 0.63028
Rendered SST2 0.551345
RESISC45 0.733175
Stanford Cars 0.947146
STL-10 0.976625
SUN397 0.754565
SVHN 0.653503
Flickr 0.8244
MSCOCO 0.570363
WinoGAViL 0.551645
iWildCam 0.18877
Camelyon17 0.626179
FMoW 0.222137
Dollar Street 0.688084
GeoDE 0.91023
Average 0.668558
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-L-14')
tokenizer = get_tokenizer('ViT-L-14')

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-L-14 on huggingface.co

29.3K
Total runs
-86
24-hour runs
1.7K
3-day runs
8.0K
7-day runs
21.6K
30-day runs

More Information About DFN2B-CLIP-ViT-L-14 huggingface.co Model

More DFN2B-CLIP-ViT-L-14 license Visit here:

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

DFN2B-CLIP-ViT-L-14 huggingface.co

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

DFN2B-CLIP-ViT-L-14 huggingface.co Url

https://huggingface.co/apple/DFN2B-CLIP-ViT-L-14

apple DFN2B-CLIP-ViT-L-14 online free

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

apple DFN2B-CLIP-ViT-L-14 online free url in huggingface.co:

https://huggingface.co/apple/DFN2B-CLIP-ViT-L-14

DFN2B-CLIP-ViT-L-14 install

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

DFN2B-CLIP-ViT-L-14 install url in huggingface.co:

https://huggingface.co/apple/DFN2B-CLIP-ViT-L-14

Url of DFN2B-CLIP-ViT-L-14

DFN2B-CLIP-ViT-L-14 huggingface.co Url

Provider of DFN2B-CLIP-ViT-L-14 huggingface.co

apple
ORGANIZATIONS

Other API from apple

huggingface.co

Total runs: 25.6K
Run Growth: -5.3K
Growth Rate: -20.77%
Updated:March 01 2025
huggingface.co

Total runs: 9.6K
Run Growth: 1.5K
Growth Rate: 15.10%
Updated:February 25 2025
huggingface.co

Total runs: 8.3K
Run Growth: -11.6K
Growth Rate: -140.97%
Updated:September 03 2025
huggingface.co

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

Total runs: 3.9K
Run Growth: -3.0K
Growth Rate: -77.52%
Updated:March 01 2025
huggingface.co

Total runs: 2.0K
Run Growth: -1.4K
Growth Rate: -66.18%
Updated:December 19 2025
huggingface.co

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

Total runs: 1.6K
Run Growth: -915
Growth Rate: -58.17%
Updated:March 01 2025
huggingface.co

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

Total runs: 792
Run Growth: 60
Growth Rate: 7.58%
Updated:September 03 2025
huggingface.co

Total runs: 383
Run Growth: 84
Growth Rate: 21.93%
Updated:March 01 2025
huggingface.co

Total runs: 275
Run Growth: -6.6K
Growth Rate: -2410.91%
Updated:July 26 2024
huggingface.co

Total runs: 221
Run Growth: -87
Growth Rate: -39.37%
Updated:April 25 2026
huggingface.co

Total runs: 188
Run Growth: 63
Growth Rate: 33.51%
Updated:October 10 2025
huggingface.co

Total runs: 184
Run Growth: 157
Growth Rate: 85.33%
Updated:March 01 2025
huggingface.co

Total runs: 179
Run Growth: 0
Growth Rate: 0.00%
Updated:September 03 2025
huggingface.co

Total runs: 169
Run Growth: 14
Growth Rate: 8.28%
Updated:October 10 2025
huggingface.co

Total runs: 101
Run Growth: 1
Growth Rate: 0.99%
Updated:March 01 2025
huggingface.co

Total runs: 96
Run Growth: -49
Growth Rate: -51.04%
Updated:June 14 2024
huggingface.co

Total runs: 89
Run Growth: 36
Growth Rate: 40.45%
Updated:August 02 2024
huggingface.co

Total runs: 83
Run Growth: -55
Growth Rate: -66.27%
Updated:September 03 2025
huggingface.co

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

Total runs: 67
Run Growth: 10
Growth Rate: 14.93%
Updated:March 01 2025
huggingface.co

Total runs: 61
Run Growth: 35
Growth Rate: 57.38%
Updated:March 01 2025
huggingface.co

Total runs: 45
Run Growth: -2
Growth Rate: -4.44%
Updated:October 10 2025
huggingface.co

Total runs: 45
Run Growth: -6
Growth Rate: -13.33%
Updated:April 15 2026