Upload tokenizer
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -315,6 +315,7 @@
|
|
315 |
}
|
316 |
},
|
317 |
"bos_token": "<|endoftext|>",
|
|
|
318 |
"clean_up_tokenization_spaces": true,
|
319 |
"eos_token": "<|endoftext|>",
|
320 |
"model_max_length": 2048,
|
|
|
315 |
}
|
316 |
},
|
317 |
"bos_token": "<|endoftext|>",
|
318 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token + ' ' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
319 |
"clean_up_tokenization_spaces": true,
|
320 |
"eos_token": "<|endoftext|>",
|
321 |
"model_max_length": 2048,
|