lattice-quark-1.5b-mlx / tokenizer_config.json
oli-mebberson's picture
Add tokenizer_config with chat template
557f866 verified
Raw
History Blame
677 Bytes
{
"tokenizer_class": "PreTrainedTokenizerFast",
"bos_token": "<|bos|>",
"eos_token": "<|assistant_end|>",
"unk_token": null,
"model_max_length": 2048,
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = true %}{% endif %}<|bos|>{% for message in messages %}{% if message['role'] == 'user' %}<|user_start|>{{ message['content'] }}<|user_end|><|assistant_start|>{% elif message['role'] == 'assistant' %}{{ message['content'] }}<|assistant_end|>{% endif %}{% endfor %}{% if not add_generation_prompt %}<|assistant_end|>{% endif %}",
"add_bos_token": false,
"add_eos_token": false,
"clean_up_tokenization_spaces": false
}