Instructions to use google/gemma-4-E2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-E2B with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/gemma-4-E2B") model = AutoModelForMultimodalLM.from_pretrained("google/gemma-4-E2B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -381,7 +381,10 @@ Compared to Gemma 3, the models use standard `system`, `assistant`, and `user` r
|
|
| 381 |
|
| 382 |
### 4. Modality order
|
| 383 |
|
| 384 |
-
|
|
|
|
|
|
|
|
|
|
| 385 |
|
| 386 |
### 5. Variable Image Resolution
|
| 387 |
|
|
|
|
| 381 |
|
| 382 |
### 4. Modality order
|
| 383 |
|
| 384 |
+
For optimal performance with multimodal inputs, place:
|
| 385 |
+
|
| 386 |
+
* Image content **before** the text in your prompt.
|
| 387 |
+
* Audio content **after** the text in your prompt.
|
| 388 |
|
| 389 |
### 5. Variable Image Resolution
|
| 390 |
|