{ "add_bos_token": true, "add_eos_token": false, "additional_special_tokens": [ "▁
", "▁", "▁ ", "▁ " ], "bos_token": { "__type": "AddedToken", "content": " ", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eot_token": "▁>\\n' + system_message + '\\n< >\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content | trim + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content | trim + ' ' + eos_token }}{% endif %}{% endfor %}", "clean_up_tokenization_spaces": false, "eos_token": { "__type": "AddedToken", "content": "", "fill_token": " ", "legacy": null, "middle_token": "▁ ", "model_max_length": 1500, "pad_token": null, "padding_side": "right", "prefix_token": "▁ ", "sp_model_kwargs": {}, "suffix_first": false, "suffix_token": "▁", "tokenizer_class": "CodeLlamaTokenizer", "unk_token": { "__type": "AddedToken", "content": " ", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "use_default_system_prompt": false }