Upload 9 files
Browse files- openvino_detokenizer.xml +1 -1
- openvino_tokenizer.xml +1 -1
- tokenizer_config.json +1 -1
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'] == '
|
97 |
<eos_token_id value="32000" />
|
98 |
<original_tokenizer_class value="<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') %}{{'<|user|>' + ' ' + message['content'] + '<|end|>' + ' ' + '<|assistant|>' + ' '}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|end|>' + ' '}}{% endif %}{% endfor %}" />
|
97 |
<eos_token_id value="32000" />
|
98 |
<original_tokenizer_class value="<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'] == '
|
433 |
<eos_token_id value="32000" />
|
434 |
<original_tokenizer_class value="<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') %}{{'<|user|>' + ' ' + message['content'] + '<|end|>' + ' ' + '<|assistant|>' + ' '}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|end|>' + ' '}}{% endif %}{% endfor %}" />
|
433 |
<eos_token_id value="32000" />
|
434 |
<original_tokenizer_class value="<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'] == '
|
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,
|