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
Commit History
-
Add response_template to tokenizer_config.json (#43)
- Add response_template to tokenizer_config.json (6e8c319d55ae02b6feed78c5576e7062671d846c) - Add response_template to tokenizer_config.json (277d410b608fcfb08b7fa241cd38056e2dec5030) - Update README.md (03be7fbdf2a342429885b43267952ef251b819fe) Co-authored-by: Matthew Carrigan <Rocketknight1@users.noreply.huggingface.co>707f0a3
-
Update README (#47)
- Update README (f82caf94edf90ee1f34935982943d88506eb9f86)12ace6d -
fix: chat template — null handling, reasoning preservation, turn-tag balance, input validation (#35)
- fix: chat template — null handling, reasoning preservation, turn-tag balance, input validation (14d9d4bc3e6ace221dd4906495c83f67544545c0) - fix: restore model turn + thinking cue after tool responses (5330c5fff988120cc1fcb0b394dbda09c7019363) - fix: emit empty thought-channel primer on historical assistant turns for APC (706856c4cd89f5808166db543d84fda040caa492) - fix: prevent extra <turn|> when assistant has content + tool_calls + continuation (b1e00611d6d3c7d57c6ec8e1417bd44187345ef1) - fix: revert add_generation_prompt regression + preserve_thinking default (42363621b8cf6a560498839a355cc774123cbe6e) - fix: render thinking channel regardless of tool_calls presence (dfcf8d5b7fc94e9ffa3710fb13ff083309e34d44) - fix: update stale comment — thinking channel no longer tool-call-only (1f9aeb9c97221c68f95cbd0ca65b3d39c8cb35d5) - fix: remove APC primer from history, scope preserve_thinking to tool-call turns (aee1cb722d4d7650fccba2affb4f444961355a5d) - fix: remove APC primer from history, s…711c136
-
Add Technical Report
Verified signature0e2b105
-
Update max_position_embeddings to full context length (#21)
- Update max_position_embeddings to full context length (3a85a14daee049a05bc4e67c415cfb36e09be3b7) Co-authored-by: Douglas Reid <dougreid@users.noreply.huggingface.co>5926caa
-
Update README.md
Verified signature66bc78a -
Super-squash branch 'main' using huggingface_hub
Co-authored-by: osanseviero <osanseviero@users.noreply.huggingface.co> Co-authored-by: MaartenGr <MaartenGr@users.noreply.huggingface.co> Co-authored-by: douglas reid <douglas reid@users.noreply.huggingface.co>657684f