nosuchjihyun commited on
Commit
fdc5ad5
·
verified ·
1 Parent(s): 5a3676a

Upload tokenizer

Browse files
Files changed (2) hide show
  1. chat_template.jinja +3 -4
  2. tokenizer.json +1 -6
chat_template.jinja CHANGED
@@ -1,4 +1,3 @@
1
- {{ bos_token }}{% for message in messages %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '
2
- ' + message['content'] | trim + '<end_of_turn>
3
- ' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model
4
- '}}{% endif %}
 
1
+ {{ bos_token }}{% for message in messages %}{% if (message['role'] == 'assistant') %}{% set role = 'Model' %}{% elif (message['role'] == 'user') %}{% set role = 'User' %}{% else %}{% set role = message['role'] %}{% endif %}{{ role + ':' + message['content'] | trim + '
2
+
3
+ ' }}{% endfor %}{% if add_generation_prompt %}{{'Model:'}}{% endif %}
 
tokenizer.json CHANGED
@@ -1,11 +1,6 @@
1
  {
2
  "version": "1.0",
3
- "truncation": {
4
- "direction": "Right",
5
- "max_length": 2014,
6
- "strategy": "LongestFirst",
7
- "stride": 0
8
- },
9
  "padding": null,
10
  "added_tokens": [
11
  {
 
1
  {
2
  "version": "1.0",
3
+ "truncation": null,
 
 
 
 
 
4
  "padding": null,
5
  "added_tokens": [
6
  {