dev7halo commited on
Commit
1263023
·
verified ·
1 Parent(s): 488039e

Upload tokenizer

Browse files
Files changed (3) hide show
  1. chat_template.jinja +1 -1
  2. tokenizer.json +1 -1
  3. tokenizer_config.json +1 -1
chat_template.jinja CHANGED
@@ -86,7 +86,7 @@
86
  {%- elif message.role == "tool" %}
87
  {{- '<|im_start|>tool/function_call\n' + content + '<|im_end|>\n' }}
88
  {%- else %}
89
- {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>\n' }}
90
  {%- endif %}
91
  {%- endfor %}
92
  {%- if add_generation_prompt %}
 
86
  {%- elif message.role == "tool" %}
87
  {{- '<|im_start|>tool/function_call\n' + content + '<|im_end|>\n' }}
88
  {%- else %}
89
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>\n<|im_start|>assistant' }}
90
  {%- endif %}
91
  {%- endfor %}
92
  {%- if add_generation_prompt %}
tokenizer.json CHANGED
@@ -2,7 +2,7 @@
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
- "max_length": 1024,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
 
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
+ "max_length": 2048,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
tokenizer_config.json CHANGED
@@ -494,7 +494,7 @@
494
  "clean_up_tokenization_spaces": true,
495
  "eos_token": "<|endoftext|>",
496
  "extra_special_tokens": {},
497
- "max_length": 1024,
498
  "model_max_length": 1000000000000000019884624838656,
499
  "pad_token": "<|endoftext|>",
500
  "stride": 0,
 
494
  "clean_up_tokenization_spaces": true,
495
  "eos_token": "<|endoftext|>",
496
  "extra_special_tokens": {},
497
+ "max_length": 2048,
498
  "model_max_length": 1000000000000000019884624838656,
499
  "pad_token": "<|endoftext|>",
500
  "stride": 0,