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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/gemma-4-E2B-it") model = AutoModelForMultimodalLM.from_pretrained("google/gemma-4-E2B-it") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -8
config.json
CHANGED
|
@@ -53,14 +53,9 @@
|
|
| 53 |
1,
|
| 54 |
106
|
| 55 |
],
|
| 56 |
-
"id2label": {
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
},
|
| 60 |
-
"label2id": {
|
| 61 |
-
"no": 1904,
|
| 62 |
-
"yes": 4443
|
| 63 |
-
},
|
| 64 |
"max_position_embeddings": 26214,
|
| 65 |
"image_token_id": 258880,
|
| 66 |
"initializer_range": 0.02,
|
|
|
|
| 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,
|