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:
# pip install -U transformers accelerate # 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- AMD Developer Cloud
Download generation_config.json from google/gemma-4-12B-it: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/google/gemma-4-12B-it/resolve/a14eb044821f3b7bd05bdcf524ab4371c3ab3361/generation_config.json
- Command line
-
hf download hf://google/gemma-4-12B-it@a14eb044821f3b7bd05bdcf524ab4371c3ab3361/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/google/gemma-4-12B-it/resolve/a14eb044821f3b7bd05bdcf524ab4371c3ab3361/generation_config.json
260 Bytes
| { | |
| "bos_token_id": 2, | |
| "do_sample": true, | |
| "eos_token_id": [ | |
| 1, | |
| 106, | |
| 50 | |
| ], | |
| "pad_token_id": 0, | |
| "suppress_tokens": [ | |
| 258883, | |
| 258882 | |
| ], | |
| "temperature": 1.0, | |
| "top_k": 64, | |
| "top_p": 0.95, | |
| "transformers_version": "5.10.0.dev0" | |
| } | |