Instructions to use google/gemma-4-E2B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-E2B-it with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("google/gemma-4-E2B-it") model = AutoModelForImageTextToText.from_pretrained("google/gemma-4-E2B-it") - Notebooks
- Google Colab
- Kaggle
fun config
#33
by baseten-admin - opened
- config.json +4 -0
config.json
CHANGED
|
@@ -53,6 +53,10 @@
|
|
| 53 |
1,
|
| 54 |
106
|
| 55 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
"image_token_id": 258880,
|
| 57 |
"initializer_range": 0.02,
|
| 58 |
"model_type": "gemma4",
|
|
|
|
| 53 |
1,
|
| 54 |
106
|
| 55 |
],
|
| 56 |
+
"id2label": {"0": "no", "1": "yes"},
|
| 57 |
+
"label2id": {"no": 0, "yes": 1},
|
| 58 |
+
"classifier_token_ids": {"no": 1904, "yes": 4443},
|
| 59 |
+
"max_position_embeddings": 26214,
|
| 60 |
"image_token_id": 258880,
|
| 61 |
"initializer_range": 0.02,
|
| 62 |
"model_type": "gemma4",
|