nytopop commited on
Commit
c635281
·
verified ·
1 Parent(s): 0e69623

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. chat_template.jinja +19 -0
chat_template.jinja ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set begin_transcript = "<custom_token_3><|begin_of_text|>" -%}
2
+
3
+ {%- set end_transcript = "<|eot_id|><custom_token_4>" -%}
4
+
5
+ {%- set begin_audio = "<custom_token_5><custom_token_1>" -%}
6
+
7
+ {%- set end_audio = "<custom_token_2><custom_token_6>" -%}
8
+
9
+ {%- for message in messages -%}
10
+ {%- if message.role == 'user' -%}
11
+ {{- begin_transcript + message['content'] | trim + end_transcript -}}
12
+ {%- elif message.role == 'assistant' -%}
13
+ {{- begin_audio + message['content'] | trim + end_audio -}}
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+
17
+ {%- if add_generation_prompt -%}
18
+ {{- begin_audio -}}
19
+ {%- endif -%}