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: remove APC primer from history, scope preserve_thinking to tool-call turns, remove extra newline in continuation turns
Browse files- chat_template.jinja +0 -1
chat_template.jinja
CHANGED
|
@@ -363,7 +363,6 @@
|
|
| 363 |
{%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
|
| 364 |
{{- '<|tool_response>' -}}
|
| 365 |
{%- elif continues_into_next -%}
|
| 366 |
-
{{- '\n' -}}
|
| 367 |
{%- elif not (ns_tr_out.flag and not has_content) -%}
|
| 368 |
{{- '<turn|>\n' -}}
|
| 369 |
{%- endif -%}
|
|
|
|
| 363 |
{%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
|
| 364 |
{{- '<|tool_response>' -}}
|
| 365 |
{%- elif continues_into_next -%}
|
|
|
|
| 366 |
{%- elif not (ns_tr_out.flag and not has_content) -%}
|
| 367 |
{{- '<turn|>\n' -}}
|
| 368 |
{%- endif -%}
|