alt.freeweights.vision / TinyCLIP-ViT-40M-32-Text-19M-LAION400M
From: wkcn <huggingface.co/wkcn>Newsgroups: alt.freeweights.visionSubject:

TinyCLIP-ViT-40M-32-Text-19M-LAION400M

Date: 2026-11-15Commit: 95ec819Signed: 2DC28CC7B26A283B ✓

Zero shot image classification model with 84M parameters. Safetensors weights, 676 MB in all. Published by wkcn under MIT.

84M params676MBTinyCLIP-ViT-40M-32-Text-19M-LAION400Msafetensorspermissive
FactsParams84MSize676 MBFormatssafetensorsTaskzero shot image classificationLicenseMITFrom sourcepermissive
$ fw get wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M
# manifest sha256 c764b75fcc6c… · 676 MB · 9 files
$ fw verify ./TinyCLIP-ViT-40M-32-Text-19M-LAION400M wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M
From sourceHosted (signed)wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400MLast check: 2026-11-15 03:26 UTC

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

Works with

Runs with

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

Overview

Size
676 MB
Weights
337 MB (safetensors)
Parameters
84M
Formats
safetensors
Task
zero shot image classification
License
MIT (permissive)
Files
9, each with a sha256
Publisher
wkcn
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

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 03:26 UTCpassed

Model card

From the publisher at commit 95ec819. Shown as plain text with links; images open at the publisher.

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-40M-32-Text-19M-LAION400M")
processor = CLIPProcessor.from_pretrained("wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M")

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

9 files · 676 MBWeights 337 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes1.49 KBa7acd8d2972f5b45105390d6e8e3f281fd0f694d7e86d565c90c2e72ccf1bca4
README.md6.00 KB94767633254a912f3229060d5c1aa36038153e0f6377b98e5b75e9e0caa55aab
config.json4.60 KBb786ac49b5cdcb16496a33c8ab4884de036b2f64de27d0b73caf8391f94c9bee
figure/TinyCLIP.jpg356 KB178a108eca80b664b199396ca5b750bc33b13f197c75100f35a1a219b2b8e29f
figure/fig1.jpg124 KB5c513ee595b8f49650a04c6d8c9343395e060881952640d7d644a7477d95741b
model.safetensors337 MB1b08131ac0ac54429aab216c397c550527d31f5682afb5d21d35091ad39538ae
preprocessor_config.json316 B910e70b3956ac9879ebc90b22fb3bc8a75b6a0677814500101a4c072bd7857bd
pytorch_model.bin337 MBbddd6f6ba27156562c59045ffe506eea58295ff2f39d84a5aaf194f27d9b0447
tokenizer.json2.22 MBb556ac8c99757ffb677208af34bc8c6721572114111a6e0aaf5fa69ff0b8d842
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
95ec8197b3 pinned now2026-11-15 03:26 UTC9 files · 676 MB

Use it

$ fw get wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M
# manifest sha256 c764b75fcc6c… · 676 MB · 9 files
$ fw verify ./TinyCLIP-ViT-40M-32-Text-19M-LAION400M wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M.json --dir ./TinyCLIP-ViT-40M-32-Text-19M-LAION400M $ python3 fw.py verify ./TinyCLIP-ViT-40M-32-Text-19M-LAION400M ./wkcn__TinyCLIP-ViT-40M-32-Text-19M-LAION400M.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M --revision 95ec8197b3f2fe7f747865c61ca556cf0768b2f7 --local-dir ./TinyCLIP-ViT-40M-32-Text-19M-LAION400M

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
94767633254a912f3229060d5c1aa36038153e0f6377b98e5b75e9e0caa55aab
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: wkcn <huggingface.co/wkcn>Newsgroups: alt.freeweights.visionSubject: TinyCLIP-ViT-40M-32-Text-19M-LAION400MDate: 2026-11-15Commit: 95ec819Signed: 2DC28CC7B26A283B ✓
Upstream
wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M
Pinned commit
95ec8197b3f2fe7f747865c61ca556cf0768b2f7
Manifest
TinyCLIP-ViT-40M-32-Text-19M-LAION400M.json · .minisig
Manifest sha256
c764b75fcc6c78b9d4630e6a89443e3ce2694199307fff16d6021ef2bf502407
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:26 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M.json $ curl -O https://freeweights.allternit.com/manifests/wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M.json.minisig $ minisign -Vm TinyCLIP-ViT-40M-32-Text-19M-LAION400M.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

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download wkcn/TinyCLIP-ViT-40M-32-Text-19M-LAION400M
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-40M-32-Text-19M-LAION400M.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of TinyCLIP-ViT-40M-32-Text-19M-LAION400M. Each has its own license check and page.

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