|
{ |
|
"add_bos_token": true, |
|
"add_eos_token": false, |
|
"add_prefix_space": null, |
|
"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": "<|im_end|>", |
|
"lstrip": false, |
|
"normalized": false, |
|
"rstrip": false, |
|
"single_word": false, |
|
"special": true |
|
}, |
|
"32000": { |
|
"content": "<function_call>", |
|
"lstrip": false, |
|
"normalized": false, |
|
"rstrip": false, |
|
"single_word": false, |
|
"special": true |
|
}, |
|
"32001": { |
|
"content": "</function_call>", |
|
"lstrip": false, |
|
"normalized": false, |
|
"rstrip": false, |
|
"single_word": false, |
|
"special": true |
|
} |
|
}, |
|
"additional_special_tokens": [ |
|
"<function_call>", |
|
"</function_call>" |
|
], |
|
"bos_token": "<s>", |
|
"chat_template": "{% if 'role' in messages[0] %}{% for message in messages %}{% if message['role'] == 'user' %}{{'<|im_start|>user\n' + message['content'] + eos_token + '\n'}}{% elif message['role'] == 'assistant' %}{{'<|im_start|>assistant\n' + message['content'] + eos_token + '\n' }}{% elif message['role'] == 'docs' %}{{'<|im_start|>docs\n' + message['content'] + eos_token + '\n' }}{% elif message['role'] == 'func_response' %}{{'<|im_start|>function_response\n' + message['content'] + eos_token + '\n' }}{% else %}{{ '<|im_start|>system\n' + message['content'] + eos_token + '\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}{% else %}{% for message in messages %}{% if message['from'] == 'human' %}{{'<|im_start|>user\n' + message['value'] + eos_token + '\n'}}{% elif message['from'] == 'gpt' %}{{'<|im_start|>assistant\n' + message['value'] + eos_token + '\n' }}{% elif message['from'] == 'docs' %}{{'<|im_start|>docs\n' + message['value'] + eos_token + '\n' }}{% elif message['from'] == 'func_response' %}{{'<|im_start|>function_response\n' + message['value'] + eos_token + '\n' }}{% else %}{{ '<|im_start|>system\n' + message['value'] + eos_token + '\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}{% endif %}", |
|
"clean_up_tokenization_spaces": false, |
|
"eos_token": "<|im_end|>", |
|
"extra_special_tokens": {}, |
|
"legacy": true, |
|
"model_max_length": 32768, |
|
"pad_token": "<unk>", |
|
"padding_side": "left", |
|
"tokenizer_class": "LlamaTokenizer", |
|
"unk_token": "<unk>", |
|
"use_default_system_prompt": false |
|
} |
|
|