File size: 534 Bytes
8240a08
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
{
  "tokenizer_class": "PreTrainedTokenizerFast",
  "bos_token": "<bos>",
  "eos_token": "<end>",
  "unk_token": "<unk>",
  "pad_token": "<unk>",
  "model_max_length": 4096,
  "clean_up_tokenization_spaces": false,
  "chat_template": "{% for m in messages %}{% if m['role'] == 'user' %}<question>{{ m['content'] }}{% elif m['role'] == 'tool' %}<tool_response>{{ m['content'] }}</tool_response>{% elif m['role'] == 'assistant' %}<answer>{{ m['content'] }}<end>{% endif %}{% endfor %}{% if add_generation_prompt %}<answer>{% endif %}"
}