Instructions to use dleemiller/siglip2-math-base-patch16-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dleemiller/siglip2-math-base-patch16-256 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="dleemiller/siglip2-math-base-patch16-256") 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("dleemiller/siglip2-math-base-patch16-256") model = AutoModelForZeroShotImageClassification.from_pretrained("dleemiller/siglip2-math-base-patch16-256", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from dleemiller/siglip2-math-base-patch16-256: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/dleemiller/siglip2-math-base-patch16-256/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://dleemiller/siglip2-math-base-patch16-256/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/dleemiller/siglip2-math-base-patch16-256/resolve/main/special_tokens_map.json
636 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<start_of_turn>", | |
| "<end_of_turn>" | |
| ], | |
| "bos_token": { | |
| "content": "<bos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<eos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |