alt.freeweights.vision / TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX

Date: 2026-11-15Commit: 9463a9cSigned: 2DC28CC7B26A283B ✓

Zero shot image classification model. Onnx weights, 368 MB in all. Published by onnx-community under MIT.

vision368MBTinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNXonnxpermissive
FactsParamsnot statedSize368 MBFormatsonnxTaskzero shot image classificationLicenseMITFrom sourcepermissive
$ fw get onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX
# manifest sha256 c5518cca9103… · 368 MB · 18 files
$ fw verify ./TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX
From sourceHosted (signed)onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNXLast check: 2026-11-15 05:04 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of TinyCLIP-ViT-8M-16-Text-3M-YFCC15M.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Scan with

Overview

Size
368 MB
Weights
24.3 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
zero shot image classification
License
MIT (permissive)
Files
18, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: wkcn/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:04 UTCpassed

Model card

From the publisher at commit 9463a9c. Shown as plain text with links; images open at the publisher.

TinyCLIP-ViT-8M-16-Text-3M-YFCC15M (ONNX)#

This is an ONNX version of wkcn/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for zero-shot-image-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ZeroShotImageClassificationPipeline


TinyCLIP: CLIP Distillation via Affinity Mimicking and Weight Inheritance#

[ICCV 2023] - TinyCLIP: CLIP Distillation via Affinity Mimicking and Weight Inheritance

TinyCLIP is a novel cross-modal distillation method for large-scale language-image pre-trained models. The method introduces two core techniques: affinity mimicking and weight inheritance. This work unleashes the capacity of small CLIP models, fully leveraging large-scale models as well as pre-training data and striking the best trade-off between speed and accuracy.

Image: image

Use with Transformers#

from PIL import Image
import requests

from transformers import CLIPProcessor, CLIPModel

model = CLIPModel.from_pretrained("wkcn/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M")
processor = CLIPProcessor.from_pretrained("wkcn/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M")

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

inputs = processor(text=["a photo of a cat", "a photo of a dog"], images=image, return_tensors="pt", padding=True)

outputs = model(**inputs)
logits_per_image = outputs.logits_per_image # this is the image-text similarity score
probs = logits_per_image.softmax(dim=1) # we can take the softmax to get the label probabilities

Highlights#

Image: image

  • TinyCLIP ViT-45M/32 uses only half parameters of ViT-B/32 to achieves comparable zero-shot performance.
  • TinyCLIP ResNet-19M reduces the parameters by 50\% while getting 2x inference speedup, and obtains 56.4\% accuracy on ImageNet.

Model Zoo#

ModelWeight inheritancePretrainIN-1K Acc@1(%)MACs(G)Throughput(pairs/s)Link

TinyCLIP ViT-39M/16 Text-19M | manual | YFCC-15M | 63.5 | 9.5 | 1,469 | Model TinyCLIP ViT-8M/16 Text-3M | manual | YFCC-15M | 41.1 | 2.0 | 4,150 | Model TinyCLIP ResNet-30M Text-29M | manual | LAION-400M | 59.1 | 6.9 | 1,811 | Model TinyCLIP ResNet-19M Text-19M | manual | LAION-400M | 56.4 | 4.4 | 3,024| Model TinyCLIP ViT-61M/32 Text-29M | manual | LAION-400M | 62.4 | 5.3 | 3,191|Model TinyCLIP ViT-40M/32 Text-19M | manual | LAION-400M | 59.8 | 3.5 | 4,641|Model TinyCLIP ViT-63M/32 Text-31M | auto | LAION-400M | 63.9 | 5.6 | 2,905|Model TinyCLIP ViT-45M/32 Text-18M | auto | LAION-400M | 61.4 | 3.7 | 3,682|Model TinyCLIP ViT-22M/32 Text-10M | auto | LAION-400M | 53.7 | 1.9 | 5,504|Model TinyCLIP ViT-63M/32 Text-31M | auto | LAION+YFCC-400M | 64.5 | 5.6| 2,909 | Model TinyCLIP ViT-45M/32 Text-18M | auto | LAION+YFCC-400M | 62.7 | 1.9 | 3,685 | Model

Note: The configs of models with auto inheritance are generated automatically.

Official PyTorch Implementation#

https://github.com/microsoft/Cream/tree/main/TinyCLIP

Citation#

If this repo is helpful for you, please consider to cite it. :mega: Thank you! :)

@InProceedings{tinyclip,
    title     = {TinyCLIP: CLIP Distillation via Affinity Mimicking and Weight Inheritance},
    author    = {Wu, Kan and Peng, Houwen and Zhou, Zhenghong and Xiao, Bin and Liu, Mengchen and Yuan, Lu and Xuan, Hong and Valenzuela, Michael and Chen, Xi (Stephen) and Wang, Xinggang and Chao, Hongyang and Hu, Han},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2023},
    pages     = {21970-21980}
}

Acknowledge#

Our code is based on CLIP, OpenCLIP, CoFi and PyTorch. Thank contributors for their awesome contribution!

License#

Files

18 files · 368 MBWeights 24.3 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md6.59 KBb5a6cc513ffe2190354ff91a21f474eb6d24893c698527ba6b841c86c1b51933
config.json850 B0ca46b868f12305e959a1cfa2b8085e7bffd521f68769ec3bf2999986b55bec3
merges.txt525 KB9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a
onnx/model.onnx94.1 MB31d28cb07209533d10fc4fef73ac324ce17de6741a2372e7e1531a4ac8fdaeb2
onnx/model_bnb4.onnx58.0 MBa05e32b645bdd784c4d0a62554b4235af75e772ea70e1833fb2c197573dd42d2
onnx/model_fp16.onnx47.2 MB16c1359af7f557c3a0966f707f30f115c275972db8847eb7b20bfa2cb69f0d2d
onnx/model_int8.onnx24.3 MB844d1a46ab18acf50c989e541b12fe3b6dc7f8d6004725b4e992d142788e0600
onnx/model_q4.onnx58.7 MBda0a8a3d997374bdc28885524d50d0bec80589791f7c0ca5a3afb22440075a8d
onnx/model_q4f16.onnx32.1 MB67389ec90efcaf43917410617db5d236d24817f31748aa87d6a740a05eaecb8b
onnx/model_quantized.onnx24.3 MB10921310ddef06557ec1598d1260470a0a4db53f70ffe0deb60b946dcad6d27a
onnx/model_uint8.onnx24.3 MB10921310ddef06557ec1598d1260470a0a4db53f70ffe0deb60b946dcad6d27a
preprocessor_config.json468 B5df7e578c37e907a431daf47fd592fc49fa50d23ed4c41285a0a34a58a9d2e06
quantize_config.json310 B9b60b5877b9a1687b5cddbc06124a974cb7536af9dbf5295279bf73c3823170c
special_tokens_map.json133 B92e1e31d71a7f63cd75b4dfa1469377bd2cd6b8292cf70b3ff5b7082b0edc1c9
tokenizer.json3.64 MB6d9109cc838977f3ca94a379eec36aecc7c807e1785cd729660ca2fc0171fb35
tokenizer_config.json726 Bf97b07bf147d9e4dbdb5f98941d35fc0b9412263a183483f73893adf756ede3e
vocab.json862 KB5047b556ce86ccaf6aa22b3ffccfc52d391ea4accdab9c2f2407da5b742d4363
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
9463a9c508 pinned now2026-11-15 05:04 UTC18 files · 368 MB

Use it

$ fw get onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX
# manifest sha256 c5518cca9103… · 368 MB · 18 files
$ fw verify ./TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX.json --dir ./TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX $ python3 fw.py verify ./TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX ./onnx-community__TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX --revision 9463a9c508a344c837ffefe9d724f3827bf2dc79 --local-dir ./TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
b5a6cc513ffe2190354ff91a21f474eb6d24893c698527ba6b841c86c1b51933
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNXDate: 2026-11-15Commit: 9463a9cSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX
Pinned commit
9463a9c508a344c837ffefe9d724f3827bf2dc79
Manifest
TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX.json · .minisig
Manifest sha256
c5518cca91030d9307c66ecfecc0650537119b7ef86f3bd6bb77fbdf154ccfc0
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:04 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX.json.minisig $ minisign -Vm TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

wkcn/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX