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, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("google/gemma-4-12B-it") model = AutoModelForImageTextToText.from_pretrained("google/gemma-4-12B-it") - Notebooks
- Google Colab
- Kaggle
fix max_position_embeddings 128Ki --> 256Ki
#11
by ddh0 - opened
The model card and blog post both say the model supports 256Ki tokens. The config did not reflect this. This PR changes the max_position_embeddings in the config.json from 131072 to 262144.
Thanks! This is now fixed.
osanseviero changed pull request status to closed