File size: 857 Bytes
abf7537
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  "add_prefix_space": false,
  "backend": "tokenizers",
  "bos_token": "<|bos|>",
  "eos_token": "<|eos|>",
  "errors": "replace",
  "extra_special_tokens": [
    "<|user_start|>",
    "<|user_end|>",
    "<|assistant_start|>",
    "<|assistant_end|>",
    "<|system_start|>",
    "<|system_end|>"
  ],
  "is_local": false,
  "model_max_length": 1024,
  "pad_token": null,
  "tokenizer_class": "GPT2Tokenizer",
  "unk_token": "<|endoftext|>",
  "chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}<|system_start|>{{ message['content'] }}<|system_end|>{% elif message['role'] == 'user' %}<|user_start|>{{ message['content'] }}<|user_end|>{% elif message['role'] == 'assistant' %}<|assistant_start|>{{ message['content'] }}<|assistant_end|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|assistant_start|>{% endif %}"
}