34 lines
1.5 KiB
JSON
34 lines
1.5 KiB
JSON
|
{
|
||
|
"added_tokens_decoder": {
|
||
|
"64790": {
|
||
|
"content": "[gMASK]",
|
||
|
"lstrip": false,
|
||
|
"normalized": true,
|
||
|
"rstrip": false,
|
||
|
"single_word": false,
|
||
|
"special": false
|
||
|
},
|
||
|
"64792": {
|
||
|
"content": "sop",
|
||
|
"lstrip": false,
|
||
|
"normalized": true,
|
||
|
"rstrip": false,
|
||
|
"single_word": false,
|
||
|
"special": false
|
||
|
}
|
||
|
},
|
||
|
"auto_map": {
|
||
|
"AutoTokenizer": [
|
||
|
"tokenization_chatglm.ChatGLMTokenizer",
|
||
|
null
|
||
|
]
|
||
|
},
|
||
|
"chat_template": "{% set ns = namespace() %}[gMASK]sop{% for message in messages %}{% if loop.first %}{% set ns.bot_name = message['bot_name'] %}{% set ns.user_name = message['user_name'] %}以下是一段{{ message['bot_name'] }}和{{ message['user_name'] }}之间的对话。{%+ if message['bot_profile'] is defined and message['bot_profile']|length +%}\n关于{{ message['bot_name'] }}的信息:{{ message['bot_profile']|replace('\n', ' ') }}{% endif %}{%+ if message['user_profile'] is defined and message['user_profile']|length +%}\n关于{{ message['user_name'] }}的信息:{{ message['user_profile']|replace('\n', ' ') }}{% endif %}{%+ else +%}\n[{% if message['role'] == 'user' %}{{ ns.user_name }}{% else %}{{ ns.bot_name }}{% endif %}]{{ message['content']|replace('\n', ' ') }}{% endif %}{% endfor %}{%+ if add_generation_prompt +%}\n[{{ ns.bot_name }}]{% endif %}",
|
||
|
"clean_up_tokenization_spaces": true,
|
||
|
"do_lower_case": false,
|
||
|
"model_max_length": 1000000000000000019884624838656,
|
||
|
"padding_side": "left",
|
||
|
"remove_space": false,
|
||
|
"tokenizer_class": "ChatGLMTokenizer"
|
||
|
}
|