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
fix: update stale comment — thinking channel no longer tool-call-only
Browse files- chat_template.jinja +1 -1
chat_template.jinja
CHANGED
|
@@ -231,7 +231,7 @@
|
|
| 231 |
{%- endif -%}
|
| 232 |
{%- endif -%}
|
| 233 |
|
| 234 |
-
{#- Render reasoning/reasoning_content as thinking channel
|
| 235 |
{%- set thinking_text = message.get('reasoning') or message.get('reasoning_content') -%}
|
| 236 |
{%- set thinking_gate = (loop.index0 > ns_turn.last_user_idx) or preserve_thinking -%}
|
| 237 |
{%- if thinking_text and thinking_gate -%}
|
|
|
|
| 231 |
{%- endif -%}
|
| 232 |
{%- endif -%}
|
| 233 |
|
| 234 |
+
{#- Render reasoning/reasoning_content as thinking channel -#}
|
| 235 |
{%- set thinking_text = message.get('reasoning') or message.get('reasoning_content') -%}
|
| 236 |
{%- set thinking_gate = (loop.index0 > ns_turn.last_user_idx) or preserve_thinking -%}
|
| 237 |
{%- if thinking_text and thinking_gate -%}
|