Instructions to use kerasformers/gemma-4-e2b-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/gemma-4-e2b-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-e2b-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-e2b-it") - Notebooks
- Google Colab
- Kaggle
Rename model_class to the split generation class
Browse files- kf_config.json +2 -2
kf_config.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"library_name": "kerasformers",
|
| 3 |
"kerasformers_version": "1.2.1",
|
| 4 |
"model_module": "kerasformers.models.gemma4",
|
| 5 |
-
"model_class": "
|
| 6 |
"variant": "gemma-4-e2b-it",
|
| 7 |
"weights": "model.weights.json",
|
| 8 |
"schema_version": 2,
|
|
@@ -112,4 +112,4 @@
|
|
| 112 |
"audio_token_id": 258881,
|
| 113 |
"pad_token_id": 0,
|
| 114 |
"use_bidirectional_vision": false
|
| 115 |
-
}
|
|
|
|
| 2 |
"library_name": "kerasformers",
|
| 3 |
"kerasformers_version": "1.2.1",
|
| 4 |
"model_module": "kerasformers.models.gemma4",
|
| 5 |
+
"model_class": "Gemma4ConditionalGenerate",
|
| 6 |
"variant": "gemma-4-e2b-it",
|
| 7 |
"weights": "model.weights.json",
|
| 8 |
"schema_version": 2,
|
|
|
|
| 112 |
"audio_token_id": 258881,
|
| 113 |
"pad_token_id": 0,
|
| 114 |
"use_bidirectional_vision": false
|
| 115 |
+
}
|