Instructions to use google/gemma-4-12B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-12B-it with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("google/gemma-4-12B-it") model = AutoModelForMultimodalLM.from_pretrained("google/gemma-4-12B-it") - Notebooks
- Google Colab
- Kaggle
Commit ·
5926caa
1
Parent(s): 66bc78a
Update max_position_embeddings to full context length (#21)
Browse files- Update max_position_embeddings to full context length (3a85a14daee049a05bc4e67c415cfb36e09be3b7)
Co-authored-by: Douglas Reid <dougreid@users.noreply.huggingface.co>
- config.json +1 -1
config.json
CHANGED
|
@@ -106,7 +106,7 @@
|
|
| 106 |
"sliding_attention",
|
| 107 |
"full_attention"
|
| 108 |
],
|
| 109 |
-
"max_position_embeddings":
|
| 110 |
"model_type": "gemma4_unified_text",
|
| 111 |
"moe_intermediate_size": null,
|
| 112 |
"num_attention_heads": 16,
|
|
|
|
| 106 |
"sliding_attention",
|
| 107 |
"full_attention"
|
| 108 |
],
|
| 109 |
+
"max_position_embeddings": 262144,
|
| 110 |
"model_type": "gemma4_unified_text",
|
| 111 |
"moe_intermediate_size": null,
|
| 112 |
"num_attention_heads": 16,
|