|
{ |
|
"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 |
|
}, |
|
"32000": { |
|
"content": "<|im_start|>", |
|
"lstrip": false, |
|
"normalized": true, |
|
"rstrip": false, |
|
"single_word": false, |
|
"special": false |
|
}, |
|
"32001": { |
|
"content": "<|im_end|>", |
|
"lstrip": false, |
|
"normalized": true, |
|
"rstrip": false, |
|
"single_word": false, |
|
"special": false |
|
} |
|
}, |
|
"additional_special_tokens": [], |
|
"bos_token": "<s>", |
|
"chat_template": "{{ bos_token }}{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<im_end>' + eos_token + '\n'}}{% elif message['role'] == 'user' %}{{ bos_token + '<|im_start|>' + message['role'] + '\n' + message['content'] + '<im_end>' + '\n'}}{% elif message['role'] == 'assistant' %}{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<im_end>' + eos_token + '\n'}}{% elif message['role'] == 'function_response' %}{{ bos_token + '<|im_start|>' + message['role'] + '\n' + message['content'] + '<im_end>' + '\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% elif messages[-1]['role'] == 'assistant' %}{{ eos_token }}{% endif %}", |
|
"clean_up_tokenization_spaces": false, |
|
"eos_token": "</s>", |
|
"legacy": true, |
|
"model_max_length": 1000000000000000019884624838656, |
|
"pad_token": "</s>", |
|
"sp_model_kwargs": {}, |
|
"spaces_between_special_tokens": false, |
|
"tokenizer_class": "LlamaTokenizer", |
|
"unk_token": "<unk>", |
|
"use_default_system_prompt": false |
|
} |
|
|