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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- AMD Developer Cloud
Update config.json
Browse files- config.json +5 -0
config.json
CHANGED
|
@@ -57,6 +57,11 @@
|
|
| 57 |
"1904": "no",
|
| 58 |
"4443": "yes"
|
| 59 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
"image_token_id": 258880,
|
| 61 |
"initializer_range": 0.02,
|
| 62 |
"model_type": "gemma4",
|
|
|
|
| 57 |
"1904": "no",
|
| 58 |
"4443": "yes"
|
| 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,
|
| 67 |
"model_type": "gemma4",
|