{ | |
"add_bos_token": true, | |
"add_eos_token": false, | |
"added_tokens_decoder": { | |
"0": { | |
"content": "<unk>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
}, | |
"1": { | |
"content": "<s>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
}, | |
"2": { | |
"content": "</s>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
}, | |
"3": { | |
"content": "<MASK|LLM-jp>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
}, | |
"4": { | |
"content": "<PAD|LLM-jp>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
}, | |
"5": { | |
"content": "<CLS|LLM-jp>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
}, | |
"6": { | |
"content": "<SEP|LLM-jp>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
}, | |
"7": { | |
"content": "<EOD|LLM-jp>", | |
"lstrip": false, | |
"normalized": false, | |
"rstrip": false, | |
"single_word": false, | |
"special": true | |
} | |
}, | |
"bos_token": "<s>", | |
"chat_template": "{{ bos_token }}\n\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n {{- '以下は、タスクを説明する指示です。要求を適切に満たす応答を書きなさい。' }}\n {%- elif message['role'] == 'user' %}\n {{- '\n\n### 指示:\n' + message['content'] }}\n {%- if additional_instruction is not none and additional_instruction != '' %}\n {{- '\n\n' + additional_instruction }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {{- '\n\n### 応答:\n' + message['content'] + eos_token }}\n {%- endif %}\n{%- endfor %}\n\n{%- if add_generation_prompt %}\n {{- '\n\n### 応答:\n' }}\n{%- endif %}", | |
"clean_up_tokenization_spaces": false, | |
"cls_token": "<CLS|LLM-jp>", | |
"eod_token": "</s>", | |
"eos_token": "</s>", | |
"extra_ids": 0, | |
"extra_special_tokens": {}, | |
"mask_token": "<MASK|LLM-jp>", | |
"model_input_names": [ | |
"input_ids", | |
"attention_mask" | |
], | |
"model_max_length": 1000000000000000019884624838656, | |
"pad_token": "<PAD|LLM-jp>", | |
"sep_token": "<SEP|LLM-jp>", | |
"sp_model_kwargs": {}, | |
"tokenizer_class": "PreTrainedTokenizerFast", | |
"unk_token": "<unk>" | |
} | |