AltCLIP
BAAI · BAAI/AltCLIP
Weights license: CreativeML OpenRAIL-M · code and components may use other terms
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
# transformers version >= 4.21.0
from modeling_altclip import AltCLIP
from processing_altclip import AltCLIPProcessor
# now our repo's in private, so we need `use_auth_token=True`
model = AltCLIP.from_pretrained("BAAI/AltCLIP")
processor = AltCLIPProcessor.from_pretrained("BAAI/AltCLIP")
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
- BAAI/AltCLIP
- Task
- zero-shot-image-classification
- Architecture
- AltCLIPModel
- Library in source
- transformers
- Weight license
- CreativeML OpenRAIL-M
- Commercial use
- Allowed CreativeML OpenRAIL-M (CompVis/stable-diffusion LICENSE) · read 2026-10-18license text
- Languages
- zhModel card metadata · read 2026-10-25source
Every stored field
- Revision checked
- 17788d7d45af0e41d0f10682fe91d655ac96435c
- Architecture
- AltCLIPModel
- Library
- transformers
- Hub task tag
- zero-shot-image-classification
- Formats
- bin, pytorch, transformers
- Access
- Open download
- Publisher kind
- Official
- Repository created
- 2022-11-15creation is not the model's release
- Repository updated
- 2025-04-16a commit is not a release date
- Hub downloads (30 days) · likes
- 2,671 · 32this repository only · read 2026-11-19
- Read from the Hub page
- transformers class, task tagsHub overview and file listing · read 2026-10-18
- 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.