Instructions to use keras/siglip_base_patch16_512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/siglip_base_patch16_512 with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/siglip_base_patch16_512") - Keras
How to use keras/siglip_base_patch16_512 with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://keras/siglip_base_patch16_512") - Notebooks
- Google Colab
- Kaggle
| { | |
| "module": "keras_hub.src.models.siglip.siglip_tokenizer", | |
| "class_name": "SigLIPTokenizer", | |
| "config": { | |
| "name": "sig_lip_tokenizer", | |
| "trainable": true, | |
| "dtype": { | |
| "module": "keras", | |
| "class_name": "DTypePolicy", | |
| "config": { | |
| "name": "int32" | |
| }, | |
| "registered_name": null | |
| }, | |
| "config_file": "tokenizer.json", | |
| "proto": null, | |
| "sequence_length": null, | |
| "add_bos": false, | |
| "add_eos": true | |
| }, | |
| "registered_name": "keras_hub>SigLIPTokenizer" | |
| } |