Instructions to use openai/clip-vit-large-patch14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openai/clip-vit-large-patch14 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="openai/clip-vit-large-patch14") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("openai/clip-vit-large-patch14") model = AutoModelForZeroShotImageClassification.from_pretrained("openai/clip-vit-large-patch14", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
remove trailing commas that break json formatting
fixes json document formatting to allow parsing by validators7ba26a1 -
Update config.json
eb96ff9 -
Update config.json
352f696
-
Update README.md
0993c71
-
add tokenizer.json
2cea2ab
-
Create README.md
e5f64a1 -
add tokenizer and feature extractor
54e5da6 -
add model
e4d7ab3 -
initial commit
149620b