Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- chat_template.jinja +4 -6
chat_template.jinja
CHANGED
|
@@ -29,10 +29,8 @@
|
|
| 29 |
{{ message['content'] | trim }}
|
| 30 |
{%- elif message['content'] is iterable -%}
|
| 31 |
{%- for item in message['content'] -%}
|
| 32 |
-
{%- if item['type'] == '
|
| 33 |
-
{{ '<
|
| 34 |
-
{%- elif item['type'] == 'image' -%}
|
| 35 |
-
{{ '<image_soft_token>' }}
|
| 36 |
{%- elif item['type'] == 'text' -%}
|
| 37 |
{{ item['text'] | trim }}
|
| 38 |
{%- endif -%}
|
|
@@ -44,6 +42,6 @@
|
|
| 44 |
' }}
|
| 45 |
{%- endfor -%}
|
| 46 |
{%- if add_generation_prompt -%}
|
| 47 |
-
{{'<start_of_turn>model
|
| 48 |
-
'}}
|
| 49 |
{%- endif -%}
|
|
|
|
| 29 |
{{ message['content'] | trim }}
|
| 30 |
{%- elif message['content'] is iterable -%}
|
| 31 |
{%- for item in message['content'] -%}
|
| 32 |
+
{%- if item['type'] == 'image' -%}
|
| 33 |
+
{{ '<start_of_image>' }}
|
|
|
|
|
|
|
| 34 |
{%- elif item['type'] == 'text' -%}
|
| 35 |
{{ item['text'] | trim }}
|
| 36 |
{%- endif -%}
|
|
|
|
| 42 |
' }}
|
| 43 |
{%- endfor -%}
|
| 44 |
{%- if add_generation_prompt -%}
|
| 45 |
+
{{ '<start_of_turn>model
|
| 46 |
+
' }}
|
| 47 |
{%- endif -%}
|