Instructions to use Harsh13/clip_hindi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Harsh13/clip_hindi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="Harsh13/clip_hindi") 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("Harsh13/clip_hindi") model = AutoModelForZeroShotImageClassification.from_pretrained("Harsh13/clip_hindi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Harsh13/clip_hindi: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/Harsh13/clip_hindi/resolve/main/config.json
- Command line
-
hf download hf://Harsh13/clip_hindi/config.json
-
curl -L -o config.json https://huggingface.co/Harsh13/clip_hindi/resolve/main/config.json
383 Bytes
| { | |
| "_name_or_path": "/content/clip", | |
| "architectures": [ | |
| "CLIPModel" | |
| ], | |
| "initializer_factor": 1.0, | |
| "logit_scale_init_value": 2.6592, | |
| "model_type": "clip", | |
| "projection_dim": 512, | |
| "text_config": { | |
| "model_type": "clip_text_model" | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.38.2", | |
| "vision_config": { | |
| "model_type": "clip_vision_model" | |
| } | |
| } | |