phi-4 / tokenizer_config.json
Gustavo de Rosa
chore(root): Initial files upload.
0d1cd29
raw
history blame
843 Bytes
{
"_commit_hash": null,
"_from_auto": true,
"added_tokens_decoder": {},
"auto_map": {
"AutoTokenizer": [
"tokenization_phi4.Phi4Tokenizer",
null
]
},
"bos_token": "<|endoftext|>",
"chat_template": "{% for message in messages %}{% if (message['role'] == 'system') %}{{'<|im_start|>system<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'user') %}{{'<|im_start|>user<|im_sep|>' + message['content'] + '<|im_end|><|im_start|>assistant<|im_sep|>'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|im_end|>'}}{% endif %}{% endfor %}",
"clean_up_tokenization_spaces": true,
"eos_token": "<|endoftext|>",
"extra_special_tokens": {},
"model_max_length": 16384,
"pad_token": "<|endoftext|>",
"tokenizer_class": "Phi4Tokenizer",
"trust_remote_code": true
}