Instructions to use Veritone/siglip2-base-patch16-512-text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Veritone/siglip2-base-patch16-512-text with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="Veritone/siglip2-base-patch16-512-text") 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("Veritone/siglip2-base-patch16-512-text") model = AutoModelForZeroShotImageClassification.from_pretrained("Veritone/siglip2-base-patch16-512-text", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload text model tensors
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -3,7 +3,8 @@
|
|
| 3 |
"model_type": "siglip",
|
| 4 |
"text_config": {
|
| 5 |
"model_type": "siglip_text_model",
|
| 6 |
-
"vocab_size": 256000
|
|
|
|
| 7 |
},
|
| 8 |
"transformers_version": "4.49.0.dev0",
|
| 9 |
"vision_config": {
|
|
|
|
| 3 |
"model_type": "siglip",
|
| 4 |
"text_config": {
|
| 5 |
"model_type": "siglip_text_model",
|
| 6 |
+
"vocab_size": 256000,
|
| 7 |
+
"pad_token_id": 0
|
| 8 |
},
|
| 9 |
"transformers_version": "4.49.0.dev0",
|
| 10 |
"vision_config": {
|