Instructions to use Xenova/siglip-base-patch16-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/siglip-base-patch16-512 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('zero-shot-image-classification', 'Xenova/siglip-base-patch16-512');
Download tokenizer_config.json from Xenova/siglip-base-patch16-512: direct link, hf CLI and curl.
- Browser
- Download file 741 Bytes
-
https://huggingface.co/Xenova/siglip-base-patch16-512/resolve/d7d1114ceb5c1be4a0114cb3967bb11f937edc44/tokenizer_config.json
- Command line
-
hf download hf://Xenova/siglip-base-patch16-512@d7d1114ceb5c1be4a0114cb3967bb11f937edc44/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Xenova/siglip-base-patch16-512/resolve/d7d1114ceb5c1be4a0114cb3967bb11f937edc44/tokenizer_config.json
741 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": 64, | |
| "pad_token": "</s>", | |
| "processor_class": "SiglipProcessor", | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "SiglipTokenizer", | |
| "trust_remote_code": false, | |
| "unk_token": "<unk>" | |
| } | |