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
-
Adding ONNX file of this model
Verified signatureBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [linhtoroi09](https://huggingface.co/linhtoroi09), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!80bc176
-
Adding `safetensors` variant of this model (#19)
- Adding `safetensors` variant of this model (78db1d97a78c70ba57615039e5182007da42ca97) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>32bd642
-
Add widget example input (#6)
- Add widget example input (062ad2fd655c2e50816804ba1f212c8d294afcfd)8d052a0
-
Fix syntax highlighting
e117ec5
-
Update config.json (#4)
- Update config.json (e073d58e5fea2f33477c3561de63fc5da34697ef) Co-authored-by: Arda Ölmez <arda13olmez@users.noreply.huggingface.co>e45c025 -
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