Instructions to use google/gemma-4-E4B-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/gemma-4-E4B-it with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("google/gemma-4-E4B-it") model = AutoModelForImageTextToText.from_pretrained("google/gemma-4-E4B-it") - Notebooks
- Google Colab
- Kaggle
gemma-4-E4B-it
#32
by pppnnn - opened
- chat_template.jinja +0 -9
chat_template.jinja
CHANGED
|
@@ -295,15 +295,6 @@
|
|
| 295 |
{%- endif -%}
|
| 296 |
{%- endfor -%}
|
| 297 |
{{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
|
| 298 |
-
{%- for part in tool_body -%}
|
| 299 |
-
{%- if part.get('type') == 'image' -%}
|
| 300 |
-
{{- '<|image|>' -}}
|
| 301 |
-
{%- elif part.get('type') == 'audio' -%}
|
| 302 |
-
{{- '<|audio|>' -}}
|
| 303 |
-
{%- elif part.get('type') == 'video' -%}
|
| 304 |
-
{{- '<|video|>' -}}
|
| 305 |
-
{%- endif -%}
|
| 306 |
-
{%- endfor -%}
|
| 307 |
{%- else -%}
|
| 308 |
{{- format_tool_response_block(ns_tname.name, tool_body) -}}
|
| 309 |
{%- endif -%}
|
|
|
|
| 295 |
{%- endif -%}
|
| 296 |
{%- endfor -%}
|
| 297 |
{{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
{%- else -%}
|
| 299 |
{{- format_tool_response_block(ns_tname.name, tool_body) -}}
|
| 300 |
{%- endif -%}
|