45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
|
|
{
|
||
|
|
"add_prefix_space": null,
|
||
|
|
"backend": "tokenizers",
|
||
|
|
"bos_token": "<s>",
|
||
|
|
"clean_up_tokenization_spaces": false,
|
||
|
|
"eos_token": "</s>",
|
||
|
|
"extra_special_tokens": [],
|
||
|
|
"is_local": false,
|
||
|
|
"legacy": false,
|
||
|
|
"model_max_length": 32768,
|
||
|
|
"pad_token": "<unk>",
|
||
|
|
"padding_side": "left",
|
||
|
|
"sp_model_kwargs": {},
|
||
|
|
"spaces_between_special_tokens": false,
|
||
|
|
"tokenizer_class": "TokenizersBackend",
|
||
|
|
"unk_token": "<unk>",
|
||
|
|
"use_default_system_prompt": false,
|
||
|
|
"added_tokens_decoder": {
|
||
|
|
"0": {
|
||
|
|
"content": "<unk>",
|
||
|
|
"single_word": false,
|
||
|
|
"lstrip": false,
|
||
|
|
"rstrip": false,
|
||
|
|
"normalized": false,
|
||
|
|
"special": true
|
||
|
|
},
|
||
|
|
"1": {
|
||
|
|
"content": "<s>",
|
||
|
|
"single_word": false,
|
||
|
|
"lstrip": false,
|
||
|
|
"rstrip": false,
|
||
|
|
"normalized": false,
|
||
|
|
"special": true
|
||
|
|
},
|
||
|
|
"2": {
|
||
|
|
"content": "</s>",
|
||
|
|
"single_word": false,
|
||
|
|
"lstrip": false,
|
||
|
|
"rstrip": false,
|
||
|
|
"normalized": false,
|
||
|
|
"special": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{ '<s>[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'user' %}{{ '<s>[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + '</s>' }}{% endif %}{% endfor %}"
|
||
|
|
}
|