Instructions to use Sheryl815/clip-vit-base-patch32-purr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sheryl815/clip-vit-base-patch32-purr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="Sheryl815/clip-vit-base-patch32-purr") 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("Sheryl815/clip-vit-base-patch32-purr") model = AutoModelForZeroShotImageClassification.from_pretrained("Sheryl815/clip-vit-base-patch32-purr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download __pycache__/handler.cpython-38.pyc from Sheryl815/clip-vit-base-patch32-purr: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/Sheryl815/clip-vit-base-patch32-purr/resolve/main/__pycache__/handler.cpython-38.pyc
- Command line
-
hf download hf://Sheryl815/clip-vit-base-patch32-purr/__pycache__/handler.cpython-38.pyc
-
curl -L -o handler.cpython-38.pyc https://huggingface.co/Sheryl815/clip-vit-base-patch32-purr/resolve/main/__pycache__/handler.cpython-38.pyc
2 kB
This file contains binary data. It cannot be displayed, but you can still download it.