Vectorrent commited on
Commit
40994ca
·
verified ·
1 Parent(s): 1d2d139

Sync tokenizer_config.json to consistent state (without chat_template field)

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +17 -9
tokenizer_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "added_tokens_decoder": {
3
  "0": {
4
- "content": "<|endoftext|>",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
@@ -9,7 +9,7 @@
9
  "special": true
10
  },
11
  "1": {
12
- "content": "<|im_start|>",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
@@ -17,7 +17,15 @@
17
  "special": true
18
  },
19
  "2": {
20
- "content": "<|im_end|>",
 
 
 
 
 
 
 
 
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
@@ -25,12 +33,12 @@
25
  "special": true
26
  }
27
  },
28
- "bos_token": "<|im_start|>",
29
  "clean_up_tokenization_spaces": false,
30
- "eos_token": "<|im_end|>",
31
  "extra_special_tokens": {},
32
  "model_max_length": 1000000000000000019884624838656,
33
- "pad_token": "<|endoftext|>",
34
- "tokenizer_class": "PreTrainedTokenizer",
35
- "chat_template": "{% for message in messages %}\n{% if message['role'] == 'system' %}\n{{ bos_token }}system\n{{ message['content'] }}\n{{ sep_token }}\n{% elif message['role'] == 'developer' %}\n{{ bos_token }}developer\n{{ message['content'] }}\n{{ sep_token }}\n{% elif message['role'] == 'user' %}\n{{ bos_token }}user\n{{ message['content'] }}\n{{ sep_token }}\n{% elif message['role'] == 'assistant' %}\n{{ bos_token }}assistant\n{{ message['content'] }}\n{% if message.tool_calls is defined %}\n{% for tool_call in message.tool_calls %}\n<tool_call>\n{\"name\": \"{{ tool_call.function.name }}\", \"arguments\": {{ tool_call.function.arguments | tojson }}}\n</tool_call>\n{% endfor %}\n{% endif %}\n{{ sep_token }}\n{% endif %}\n{% endfor %}\n{% if add_generation_prompt %}\n{{ bos_token }}assistant\n{% endif %}"
36
- }
 
1
  {
2
  "added_tokens_decoder": {
3
  "0": {
4
+ "content": "[PAD]",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
 
9
  "special": true
10
  },
11
  "1": {
12
+ "content": "[BOS]",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
 
17
  "special": true
18
  },
19
  "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[EOS]",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
 
33
  "special": true
34
  }
35
  },
36
+ "bos_token": "[BOS]",
37
  "clean_up_tokenization_spaces": false,
38
+ "eos_token": "[EOS]",
39
  "extra_special_tokens": {},
40
  "model_max_length": 1000000000000000019884624838656,
41
+ "pad_token": "[PAD]",
42
+ "sep_token": "[SEP]",
43
+ "tokenizer_class": "PreTrainedTokenizerFast"
44
+ }