Skip to page content
SAVRN
Search Plan a project

Open-weight model · Zero shot image classification

clip-vit-base-patch16

by Dang Quoc Dung dungdq1/clip-vit-base-patch16

clip-vit-base-patch16 is an open-weight model for zero shot image classification from Dang Quoc Dung. It has 77-token context. Its published files total 2.1 GB.

https://huggingface.co/openai/clip-vit-base-patch16 with ONNX weights to be compatible with Transformers.js.

Parameters—
Context77
Weights2.1 GB
License—
AccessOpen weights
Monthly Downloads—

Model Card

https://huggingface.co/openai/clip-vit-base-patch16 with ONNX weights to be compatible with Transformers.js. If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Example: Perform zero-shot image classification with the pipeline API. Example: Compute vision embeddings with CLIPVisionModelWithProjection. Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Excerpt from the card by Dang Quoc Dung.

Configuration

Architecture
CLIPModel
Context length (tokens)
77
Layers
12
Hidden size
512
Feed-forward size
2,048
Attention heads
8
Vocabulary size
49,408
Model type
clip

Identity and Version

Repository
dungdq1/clip-vit-base-patch16
Publisher
Dang Quoc Dung
Task
Zero shot image classification
Modality
Other
Library
transformers.js
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
985e6aa2b5cda0afa6dd968711a1c82660df2194
First published
2026-10-01
Last updated
2026-10-01

Files and Weights

18 files, 2.1 GB in total. The weights are 9 files totalling 2.1 GB in onnx.

Weights9 files · 2.1 GB
Configuration3 files · 5.5 KB
Tokenizer4 files · 3.6 MB
Documentation1 file · 4.3 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
onnx/model.onnxWeights599.2 MB 46e265705ee3
onnx/model_fp16.onnxWeights300.2 MB a9a7cda54aab
onnx/model_quantized.onnxWeights152.0 MB cf5b03d7c03c
onnx/text_model.onnxWeights254.1 MB 19f40c7988af
onnx/text_model_fp16.onnxWeights127.3 MB 9e423931894e
onnx/text_model_quantized.onnxWeights64.5 MB 9106b51e6c66
onnx/vision_model.onnxWeights345.1 MB b5170b47c0ec
onnx/vision_model_fp16.onnxWeights172.8 MB 3e261924f7d6
onnx/vision_model_quantized.onnxWeights87.5 MB 44eece4fe5fe
config.jsonConfiguration4.5 KB —
preprocessor_config.jsonConfiguration520 B —
special_tokens_map.jsonConfiguration472 B —
README.mdDocumentation4.3 KB —
.gitattributesRepository1.5 KB —
merges.txtTokenizer524.6 KB —
tokenizer.jsonTokenizer2.2 MB —
tokenizer_config.jsonTokenizer775 B —
vocab.jsonTokenizer862.3 KB —

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
2.1 GB
Download from Dang Quoc Dung

Released by Dang Quoc Dung through its official repository on Hugging Face.

Built From

Memory Requirements

PrecisionWeights in memory
As published2.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About clip-vit-base-patch16

What is clip-vit-base-patch16's context length?

77 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Zero shot image classification

clip-vit-base-patch32

OpenAI

Disclaimer: The model card is taken and modified from the official CLIP repository, it can be found here. The CLIP model was developed by researchers at OpenAI to learn about what contributes to robustness in computer vision tasks. The model was also developed to test the ability of models to generalize to arbitrary image classification tasks in a zero-shot manner. It was not developed for general model deployment - to deploy models like CLIP, researchers will first need to carefully study their capabilities in relation to the specific context they’re being deployed within. January 2021 The model uses a ViT-B/32 Transformer architecture as an image encoder and uses a masked self-attention…

Open weights 77 tokens transformers

Model · Zero shot image classification

clip-vit-large-patch14-336

OpenAI

This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set: The following hyperparameters were used during training: - trainingprecision: float32 - Transformers 4.21.3 - TensorFlow 2.8.2 - Tokenizers 0.12.1

Open weights 77 tokens transformers

Model · Zero shot image classification

CLIP-convnext_base_w-laion2B-s13B-b82K-augreg

LAION eV

A series of CLIP ConvNeXt-Base (w/ wide embed dim) models trained on subsets LAION-5B (https://laion.ai/blog/laion-5b/) using OpenCLIP (https://github.com/mlfoundations/openclip). Explore an alternative to ViT and ResNet (w/ AttentionPooling) CLIP models that scales well with model size and image resolution First known ConvNeXt CLIP models trained at scale in the range of CLIP ViT-B/16 and RN50x4 models First released model weights exploring increase of augmentation + regularization for image tower via adding (greater scale range of RRC, random erasing, stochastic depth) The models utilize the timm ConvNeXt-Base model (convnextbase) as the image tower, and the same text tower as the RN50x4…

Open weights mit open_clip

Model · Zero shot image classification

clip-vit-base-patch16

OpenAI

Disclaimer: The model card is taken and modified from the official CLIP repository, it can be found here. The CLIP model was developed by researchers at OpenAI to learn about what contributes to robustness in computer vision tasks. The model was also developed to test the ability of models to generalize to arbitrary image classification tasks in a zero-shot manner. It was not developed for general model deployment - to deploy models like CLIP, researchers will first need to carefully study their capabilities in relation to the specific context they’re being deployed within. January 2021 The base model uses a ViT-B/16 Transformer architecture as an image encoder and uses a masked…

Open weights 77 tokens transformers

Model · Zero shot image classification

DermLIP_ViT-B-16

Siyuan Yan

DermLIP is a vision-language model for dermatology, trained on the Derm1M dataset—the largest dermatological image-text corpus to date. python import openclip from PIL import Image import torch model,, preprocess = openclip.createmodelandtransforms( 'hf-hub:redlessone/DermLIPViT-B-16' model.eval() tokenizer = openclip.gettokenizer('hf-hub:redlessone/DermLIPViT-B-16') image = preprocess(Image.open("yourskinimage.png")).unsqueeze(0) PADCLASSNAMES = [ "nevus", "basal cell carcinoma", "actinic keratosis", "seborrheic keratosis", "squamous cell carcinoma", "melanoma" template = lambda c: f'This is a skin image of {c}' text = tokenizer([template(c) for c in PADCLASSNAMES]) with torch.nograd()…

Open weights cc-by-4.0 transformers

Model · Zero shot image classification

DermFM-Zero

Siyuan Yan

DermFM-Zero: A Vision-Language Foundation Model for Zero-shot Clinical Collaboration and Automated Concept Discovery in Dermatology DermFM-Zero pairs a PanDerm ViT-L/16 vision encoder with a knowledge-enhanced PubMedBERT text encoder, aligned on dermatology image–text pairs with multi-aspect knowledge contrastive learning. It classifies dermoscopic and clinical images from text prompts without task-specific training, retrieves images from text and text from images, serves as a backbone for multimodal fine-tuning and VQA, and exposes interpretable concepts through sparse autoencoders. In the paper, it was evaluated on diverse benchmarks and in three multinational reader studies with 761…

Access requested at publisher cc-by-nc-4.0 open_clip