Instructions to use google/siglip2-base-patch16-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/siglip2-base-patch16-256 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="google/siglip2-base-patch16-256") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("google/siglip2-base-patch16-256", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload config
Browse files- config.json +0 -4
config.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
| 1 |
{
|
| 2 |
-
"architectures": [
|
| 3 |
-
"SiglipModel"
|
| 4 |
-
],
|
| 5 |
"initializer_factor": 1.0,
|
| 6 |
"model_type": "siglip",
|
| 7 |
"text_config": {
|
| 8 |
"model_type": "siglip_text_model",
|
| 9 |
"vocab_size": 256000
|
| 10 |
},
|
| 11 |
-
"torch_dtype": "float32",
|
| 12 |
"transformers_version": "4.49.0.dev0",
|
| 13 |
"vision_config": {
|
| 14 |
"image_size": 256,
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
| 2 |
"initializer_factor": 1.0,
|
| 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": {
|
| 10 |
"image_size": 256,
|