katuni4ka commited on
Commit
37cef05
1 Parent(s): 4f4eac6

Upload 9 files

Browse files
openvino_detokenizer.xml CHANGED
@@ -93,7 +93,7 @@
93
  </edges>
94
  <rt_info>
95
  <bos_token_id value="1" />
96
- <chat_template value="{% for message in messages %}{% if message['role'] == 'system' %}{{'&lt;|system|>&#10;' + message['content'] + '&lt;|end|>&#10;'}}{% elif message['role'] == 'user' %}{{'&lt;|user|>&#10;' + message['content'] + '&lt;|end|>&#10;'}}{% elif message['role'] == 'assistant' %}{{'&lt;|assistant|>&#10;' + message['content'] + '&lt;|end|>&#10;'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '&lt;|assistant|>&#10;' }}{% else %}{{ eos_token }}{% endif %}" />
97
  <eos_token_id value="32000" />
98
  <original_tokenizer_class value="&lt;class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
99
  <pad_token_id value="32000" />
 
93
  </edges>
94
  <rt_info>
95
  <bos_token_id value="1" />
96
+ <chat_template value="{% for message in messages %}{% if (message['role'] == 'user') %}{{'&lt;|user|>' + '&#10;' + message['content'] + '&lt;|end|>' + '&#10;' + '&lt;|assistant|>' + '&#10;'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '&lt;|end|>' + '&#10;'}}{% endif %}{% endfor %}" />
97
  <eos_token_id value="32000" />
98
  <original_tokenizer_class value="&lt;class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
99
  <pad_token_id value="32000" />
openvino_tokenizer.xml CHANGED
@@ -429,7 +429,7 @@
429
  </edges>
430
  <rt_info>
431
  <bos_token_id value="1" />
432
- <chat_template value="{% for message in messages %}{% if message['role'] == 'system' %}{{'&lt;|system|>&#10;' + message['content'] + '&lt;|end|>&#10;'}}{% elif message['role'] == 'user' %}{{'&lt;|user|>&#10;' + message['content'] + '&lt;|end|>&#10;'}}{% elif message['role'] == 'assistant' %}{{'&lt;|assistant|>&#10;' + message['content'] + '&lt;|end|>&#10;'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '&lt;|assistant|>&#10;' }}{% else %}{{ eos_token }}{% endif %}" />
433
  <eos_token_id value="32000" />
434
  <original_tokenizer_class value="&lt;class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
435
  <pad_token_id value="32000" />
 
429
  </edges>
430
  <rt_info>
431
  <bos_token_id value="1" />
432
+ <chat_template value="{% for message in messages %}{% if (message['role'] == 'user') %}{{'&lt;|user|>' + '&#10;' + message['content'] + '&lt;|end|>' + '&#10;' + '&lt;|assistant|>' + '&#10;'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '&lt;|end|>' + '&#10;'}}{% endif %}{% endfor %}" />
433
  <eos_token_id value="32000" />
434
  <original_tokenizer_class value="&lt;class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
435
  <pad_token_id value="32000" />
tokenizer_config.json CHANGED
@@ -117,7 +117,7 @@
117
  }
118
  },
119
  "bos_token": "<s>",
120
- "chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{'<|system|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'user' %}{{'<|user|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'assistant' %}{{'<|assistant|>\n' + message['content'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% else %}{{ eos_token }}{% endif %}",
121
  "clean_up_tokenization_spaces": false,
122
  "eos_token": "<|endoftext|>",
123
  "legacy": false,
 
117
  }
118
  },
119
  "bos_token": "<s>",
120
+ "chat_template": "{% for message in messages %}{% if (message['role'] == 'user') %}{{'<|user|>' + '\n' + message['content'] + '<|end|>' + '\n' + '<|assistant|>' + '\n'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|end|>' + '\n'}}{% endif %}{% endfor %}",
121
  "clean_up_tokenization_spaces": false,
122
  "eos_token": "<|endoftext|>",
123
  "legacy": false,