AI SeedbankHelp preserve open and free AI for humanity's future

← All models

apple_DFN2B-CLIP-ViT-B-16

apple · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apple-amlr license_name: apple-sample-code-license license_link: LICENSE

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:
    • Data Filtering Networks: https://arxiv.org/abs/2309.17425
  • 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}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:586134b454455476063465862a0e5a9b2159758b&dn=apple_DFN2B-CLIP-ViT-B-16

Open magnet in torrent client · infohash 586134b454455476063465862a0e5a9b2159758b

Files & hashes

PathSizesha1sha256
LICENSE5.7 KB (5,820 B)487fa8773b55f599017d4a40d7ee9826e0e62340d8f5d9dfbdb60dc81b8f1720421699e7811070f0b46f6668f90253d5ac8c0b20
README.md3.6 KB (3,707 B)32aeffa0c3e327a7f99d48c057801c218010d5becbb1a81c3ce864dc6258a359e7e5a16205d269a32a91399c6c7acc92ebed8418
eval_results.jsonl16.2 KB (16,544 B)a63127feb0b1d247ba39de1f5a9afe6e998e450b544646354f365ea8538404ddb99fac223b1c2bb530d520b214b6dad39ca81944
merges.txt512.4 KB (524,657 B)bbfec752c9a675946c6dce106def6f35c882dcc2f526393189112391ce6f9795d4695f704121ce452c3aad1f5335cc41337eba85
open_clip_config.json469 B (469 B)2bddb0b078de92c5034e7c602272e84a9709e31086d418d7046fa9212ab70eb7cb3deeef02be46f39d7948bad5dc7649f8277208
open_clip_pytorch_model.bin570.9 MB (598,597,605 B)b4bb894c550c3954d13a90863b11523be0c2315301832e9567e6f668928c6ef493fe9c0985f9df146e0212bdccc87f3e25e37084
special_tokens_map.json472 B (472 B)2c2130b544c0c5a72d5d00da071ba130a9800fb2c4864a9376a8401918425bed71fc14fc0e81f9b59ec45c1cf96cccb2df508eac
tokenizer.json2.1 MB (2,224,053 B)c450dc623f789418ff9dcce68b0df76ffba82b99d8b124290bc4bcd18cd3f72747f525e2a1d8c266cf3089e52da38ee417564ac5
tokenizer_config.json806 B (806 B)5ba7bf706515bc60487ad0e1816b4929b82542d600439066fcba73de57644cf41e4e3b9f2dbb09d7f3fc2005898ba52399045882
vocab.json842.1 KB (862,328 B)182766ce89b439768edadda342519f33802f53645047b556ce86ccaf6aa22b3ffccfc52d391ea4accdab9c2f2407da5b742d4363

Cite this release

Canonical URL
https://aiseedbank.org/models/apple_DFN2B-CLIP-ViT-B-16/
Slug
apple_DFN2B-CLIP-ViT-B-16
Infohash
586134b454455476063465862a0e5a9b2159758b
License
apple-amlr
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: apple_DFN2B-CLIP-ViT-B-16.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryapple/DFN2B-CLIP-ViT-B-16
Revision (pinned)8b023e8bb8b0a27c17859af548c9fc3105d6c29c
Fetched at2026-09-03T20:56:16Z
License at fetchapple-amlr
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T20:56:24Z

apple-amlr574.3 MB (602,236,461 bytes)open_clippaper: 2309.17425