aimeri commited on
Commit
100b534
·
verified ·
1 Parent(s): d7ba759

Upload scripts/thrasher.jinja with huggingface_hub

Browse files
Files changed (1) hide show
  1. scripts/thrasher.jinja +8 -0
scripts/thrasher.jinja ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {%- for message in messages -%}
2
+ {{- '<|im_start|>' + message['role'] + '\n' -}}
3
+ {{- message['content'] | trim -}}
4
+ {{- '<|im_end|>\n' -}}
5
+ {%- endfor -%}
6
+ {%- if add_generation_prompt -%}
7
+ {{- '<|im_start|>assistant\n' -}}
8
+ {%- endif -%}