hiroyachiba
commited on
Commit
•
84469d8
1
Parent(s):
a211f2b
Upload tokenizer
Browse files- tokenizer.json +6 -1
- tokenizer_config.json +1 -1
tokenizer.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
-
"truncation":
|
|
|
|
|
|
|
|
|
|
|
4 |
"padding": null,
|
5 |
"added_tokens": [
|
6 |
{
|
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
+
"truncation": {
|
4 |
+
"direction": "Right",
|
5 |
+
"max_length": 512,
|
6 |
+
"strategy": "LongestFirst",
|
7 |
+
"stride": 0
|
8 |
+
},
|
9 |
"padding": null,
|
10 |
"added_tokens": [
|
11 |
{
|
tokenizer_config.json
CHANGED
@@ -68,7 +68,7 @@
|
|
68 |
}
|
69 |
},
|
70 |
"bos_token": "<s>",
|
71 |
-
"chat_template": "{{bos_token}}{% for message in messages %}{% if message['role'] == 'user' %}{{ '\n\n### 指示:\n' + '<USER_INPUT>\n' + message['content'] + '\n</USER_INPUT>' }}{% elif message['role'] == 'system' %}{{ '
|
72 |
"clean_up_tokenization_spaces": false,
|
73 |
"cls_token": "<CLS|LLM-jp>",
|
74 |
"eod_token": "</s>",
|
|
|
68 |
}
|
69 |
},
|
70 |
"bos_token": "<s>",
|
71 |
+
"chat_template": "{{bos_token}}{% for message in messages %}{% if message['role'] == 'user' %}{{ '\n\n### 指示:\n' + '<USER_INPUT>\n' + message['content'] + '\n</USER_INPUT>' }}{% elif message['role'] == 'system' %}{{ '以下は、タスクを説明する指示です。要求を適切に満たす応答を書きなさい。\nタスクを説明する指示とAIが生成した応答を <USER_INPUT> と <AI_OUTPUT> セクションで提供します。' }}{% elif message['role'] == 'assistant' %}{{ '\n\n### 応答:\n' + '<AI_OUTPUT>\n' + message['content'] + '\n</AI_OUTPUT>' + eos_token }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '\n\n### 応答:\n' + '<AI_OUTPUT>\n' }}{% endif %}{% endfor %}",
|
72 |
"clean_up_tokenization_spaces": false,
|
73 |
"cls_token": "<CLS|LLM-jp>",
|
74 |
"eod_token": "</s>",
|