Instructions to use zeromodels/clip_vit_base_32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use zeromodels/clip_vit_base_32 with KerasFormers:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Keras
How to use zeromodels/clip_vit_base_32 with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/clip_vit_base_32") - Notebooks
- Google Colab
- Kaggle
| { | |
| "library_name": "kerasformers", | |
| "kerasformers_version": "1.2.1", | |
| "model_module": "kerasformers.models.clip", | |
| "model_class": "CLIPZeroShotClassify", | |
| "variant": "clip_vit_base_32", | |
| "weights": "model.weights.h5", | |
| "schema_version": 2, | |
| "weight_dtype": "float32", | |
| "model_type": "clip", | |
| "text_config": { | |
| "hidden_dim": 512, | |
| "num_heads": 8, | |
| "num_layers": 12, | |
| "mlp_ratio": 4.0, | |
| "vocab_size": 49408, | |
| "max_seq_len": 77 | |
| }, | |
| "vision_config": { | |
| "num_layers": 12, | |
| "hidden_dim": 768, | |
| "patch_size": 32, | |
| "mlp_ratio": 4.0, | |
| "image_size": 224 | |
| }, | |
| "embed_dim": 512, | |
| "hidden_act": "quick_gelu", | |
| "layer_norm_eps": 1e-05 | |
| } |