clip-vit-base-patch32
openai · openai/clip-vit-base-patch32
Weights license: Not declared by the source
Not benchmarked or estimated yet
No comparable score, no memory figure to match against hardware and no published speed measurement for this checkpoint. Nothing is guessed.
How to run
Runtime compatibility and speed have not been measured for this entry. Published metadata does not prove a successful local run; check the files and terms at the source first.
Documented ways to run it
Copied as printed in the linked source (read 2026-10-18); not run by this site.
from PIL import Image
import requests
from transformers import CLIPProcessor, CLIPModel
model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
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 probabilitiesTechnical details
What the source and the catalog store for this checkpoint. Missing fields are left out, never zero.
- Checkpoint / source
- openai/clip-vit-base-patch32
- Task
- zero-shot-image-classification
- Architecture
- CLIPModel
- Library in source
- transformers
Every stored field
- Revision checked
- 3d74acf9a28c67741b2f4f2ea7635f0aaf6f0268
- Architecture
- CLIPModel
- Library
- transformers
- Hub task tag
- zero-shot-image-classification
- Formats
- bin, h5, pytorch, transformers
- Access
- Open download
- Publisher kind
- Official
- Repository created
- 2022-03-02creation is not the model's release
- Repository updated
- 2024-02-29a commit is not a release date
- Hub downloads (30 days) · likes
- 17,606,629 · 1,288this repository only · read 2026-11-19
- Read from the Hub page
- transformers class, task tagsHub overview and file listing · read 2026-10-19
- Catalog state
- Hub config or weights found; no inventory benchmark link
Sources
Valid source snapshot: 2026-11-19. This source record has not received a complete technical review. Missing data remain unknown; a repository commit is not a model release date.