File size: 1,237 Bytes
b0cbeb8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  "add_prefix_space": false,
  "added_tokens_decoder": {
    "0": {
      "content": "<|rwkv_tokenizer_end_of_text|>",
      "lstrip": false,
      "normalized": false,
      "rstrip": false,
      "single_word": false,
      "special": true
    }
  },
  "auto_map": {
    "AutoTokenizer": [
      "hf_rwkv_tokenizer.RwkvTokenizer",
      null
    ]
  },
  "bos_token": "<|rwkv_tokenizer_end_of_text|>",
  "pad_token": "<|rwkv_tokenizer_end_of_text|>",
  "clean_up_tokenization_spaces": false,
  "eos_token": "",
  "model_max_length": 1000000000000000019884624838656,
  "tokenizer_class": "RwkvTokenizer",
  "unk_token": "<|rwkv_tokenizer_end_of_text|>",
  "use_fast": false,
  "chat_template": "{% set image_count = namespace(value=0) %}{% for message in messages %}{% if message['role'] == 'user' %}\u0016User:{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}<image>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}\u0017{% elif message['role'] == 'assistant' %}\u0016Assistant:{{ message['content'] }}{% endif %}{% endfor %}{% if add_generation_prompt %}\u0016Assistant:{% endif %}"
}