From bf6a3b969bf283358e7a59af4d270dc6e3faabaa Mon Sep 17 00:00:00 2001 From: Gnurro Date: Tue, 30 Apr 2024 18:45:05 +0200 Subject: [PATCH] Change Emu2 template to contain 255 image tokens (this is not random) --- backends/model_registry.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/model_registry.json b/backends/model_registry.json index 5047b76ad1..eb69086bc4 100644 --- a/backends/model_registry.json +++ b/backends/model_registry.json @@ -449,6 +449,6 @@ "eos_to_cull": "[Assistant]:", "padding": false, "premade_chat_template": false, - "custom_chat_template": "{%- for message in messages -%}{% if message['role'] == 'user' %}[USER]: [IMG][/IMG] {{ message['content'] }}{% else %}[ASSISTANT]: {{ message['content'] }} {% endif %}{% endfor %}[ASSISTANT]:" + "custom_chat_template": "{%- for message in messages -%}{% if message['role'] == 'user' %}[USER]: [IMG][/IMG] {{ message['content'] }}{% else %}[ASSISTANT]: {{ message['content'] }} {% endif %}{% endfor %}[ASSISTANT]:" } ] \ No newline at end of file