Instructions to use keras/clip_vit_base_patch16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/clip_vit_base_patch16 with KerasHub:
import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/clip_vit_base_patch16") - Keras
How to use keras/clip_vit_base_patch16 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/clip_vit_base_patch16") - Notebooks
- Google Colab
- Kaggle
File size: 582 Bytes
b1fd067 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | {
"module": "keras_hub.src.models.clip.clip_tokenizer",
"class_name": "CLIPTokenizer",
"config": {
"name": "clip_tokenizer",
"trainable": true,
"dtype": {
"module": "keras",
"class_name": "DTypePolicy",
"config": {
"name": "int32"
},
"registered_name": null
},
"config_file": "tokenizer.json",
"sequence_length": null,
"add_prefix_space": false,
"pad_with_end_token": true
},
"registered_name": "keras_hub>CLIPTokenizer"
} |