Instructions to use CollectionStudio/siglip-so400m-patch14-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CollectionStudio/siglip-so400m-patch14-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="CollectionStudio/siglip-so400m-patch14-224") 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("CollectionStudio/siglip-so400m-patch14-224") model = AutoModelForZeroShotImageClassification.from_pretrained("CollectionStudio/siglip-so400m-patch14-224", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from CollectionStudio/siglip-so400m-patch14-224: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/CollectionStudio/siglip-so400m-patch14-224/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://CollectionStudio/siglip-so400m-patch14-224/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/CollectionStudio/siglip-so400m-patch14-224/resolve/main/tokenizer_config.json
711 Bytes
| { | |
| "added_tokens_decoder": { | |
| "1": { | |
| "content": "</s>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": true, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "<unk>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": true, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [], | |
| "clean_up_tokenization_spaces": true, | |
| "do_lower_case": true, | |
| "eos_token": "</s>", | |
| "model_input_names": [ | |
| "input_ids" | |
| ], | |
| "model_max_length": 16, | |
| "pad_token": "</s>", | |
| "processor_class": "SiglipProcessor", | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "SiglipTokenizer", | |
| "unk_token": "<unk>" | |
| } | |