Instructions to use google/siglip2-base-patch16-naflex with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/siglip2-base-patch16-naflex 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-naflex") 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("google/siglip2-base-patch16-naflex") model = AutoModelForZeroShotImageClassification.from_pretrained("google/siglip2-base-patch16-naflex", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from google/siglip2-base-patch16-naflex: direct link, hf CLI and curl.
- Browser
- Download file 1.5 GB
-
https://huggingface.co/google/siglip2-base-patch16-naflex/resolve/main/model.safetensors
- Command line
-
hf download hf://google/siglip2-base-patch16-naflex/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/google/siglip2-base-patch16-naflex/resolve/main/model.safetensors
1.5 GB
- Xet hash:
- 5f4fbfa6292d47a73eb91430def60ae70f7c45de31e3ba6cd7702502952d1a56
- Size of remote file:
- 1.5 GB
- SHA256:
- ac5f28bbdf92c0c1696ccbd3ce716426049cd67ad8045b66d0d938b0f9c8bbec
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.