Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- chat_template.jinja +12 -4
chat_template.jinja
CHANGED
|
@@ -1,4 +1,12 @@
|
|
| 1 |
-
{%
|
| 2 |
-
|
| 3 |
-
|
| 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:
|