SalgrAI_v2_Lite / tokenizer_config.json
salgr's picture
Upload 10 files
7292404 verified
Raw History Blame Contribute Delete
561 Bytes
{
"tokenizer_class": "PreTrainedTokenizerFast",
"bos_token": null,
"eos_token": "<|eos|>",
"pad_token": "<|pad|>",
"unk_token": null,
"additional_special_tokens": [
"<|user|>",
"<|assistant|>"
],
"model_max_length": 1024,
"clean_up_tokenization_spaces": false,
"chat_template": "{% for m in messages %}{% if m['role'] == 'user' %}{{ '<|user|>' + m['content'] }}{% elif m['role'] == 'assistant' %}{{ '<|assistant|>' + m['content'] + '<|eos|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>' }}{% endif %}"
}