summaryrefslogtreecommitdiff
path: root/llama.cpp/models/templates/google-gemma-2-2b-it.jinja
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-12 20:57:17 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-12 20:57:17 +0100
commitb333b06772c89d96aacb5490d6a219fba7c09cc6 (patch)
tree211df60083a5946baa2ed61d33d8121b7e251b06 /llama.cpp/models/templates/google-gemma-2-2b-it.jinja
downloadllmnpc-b333b06772c89d96aacb5490d6a219fba7c09cc6.tar.gz
Engage!
Diffstat (limited to 'llama.cpp/models/templates/google-gemma-2-2b-it.jinja')
-rw-r--r--llama.cpp/models/templates/google-gemma-2-2b-it.jinja4
1 files changed, 4 insertions, 0 deletions
diff --git a/llama.cpp/models/templates/google-gemma-2-2b-it.jinja b/llama.cpp/models/templates/google-gemma-2-2b-it.jinja
new file mode 100644
index 0000000..923ec25
--- /dev/null
+++ b/llama.cpp/models/templates/google-gemma-2-2b-it.jinja
@@ -0,0 +1,4 @@
+{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '
+' + message['content'] | trim + '<end_of_turn>
+' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model
+'}}{% endif %} \ No newline at end of file