Instructions to use kerasformers/gemma-4-e4b-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/gemma-4-e4b-it 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 kerasformers/gemma-4-e4b-it with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://kerasformers/gemma-4-e4b-it") - Notebooks
- Google Colab
- Kaggle
| { | |
| "library_name": "kerasformers", | |
| "kerasformers_version": "1.2.1", | |
| "preprocessor_module": "kerasformers.models.gemma4", | |
| "preprocessor_class": "Gemma4ImageProcessor", | |
| "variant": "gemma-4-e4b-it", | |
| "patch_size": 16, | |
| "max_soft_tokens": 280, | |
| "pooling_kernel_size": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "image_mean": [ | |
| 0.0, | |
| 0.0, | |
| 0.0 | |
| ], | |
| "image_std": [ | |
| 1.0, | |
| 1.0, | |
| 1.0 | |
| ] | |
| } |