jc-detoxio commited on
Commit
4efa55b
·
verified ·
1 Parent(s): 1068c4d

Upload model trained with Unsloth

Browse files

Upload model trained with Unsloth 2x faster

Files changed (1) hide show
  1. chat_template.jinja +4 -12
chat_template.jinja CHANGED
@@ -1,12 +1,4 @@
1
- {% set user_msgs = messages | selectattr('role','equalto','user') | list %}
2
- {% set instruction = (user_msgs[0]['content'] if user_msgs|length > 0 else '') | trim %}
3
- {% set input = (user_msgs[1]['content'] if user_msgs|length > 1 else '') | trim %}
4
- Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
5
-
6
- ### Instruction:
7
- {{ instruction }}
8
-
9
- ### Input:
10
- {{ input }}
11
-
12
- ### Response:
 
1
+ {% for message in messages %}{{'<|im_start|>' + message['role'] + '
2
+ ' + message['content'] + '<|im_end|>' + '
3
+ '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
4
+ ' }}{% endif %}