ThingsAI commited on
Commit
f862712
·
verified ·
1 Parent(s): 3b21d3f

BPE tokenizer 32768 vocab with thinking/tool tokens

Browse files
Files changed (3) hide show
  1. special_tokens_map.json +24 -0
  2. tokenizer.json +0 -0
  3. tokenizer_config.json +11 -0
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|im_start|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|pad|>",
5
+ "additional_special_tokens": [
6
+ "<|im_end|>",
7
+ "<|thinking|>",
8
+ "<|/thinking|>",
9
+ "<|tool_calls|>",
10
+ "<|/tool_calls|>",
11
+ "<|tool_response|>",
12
+ "<|/tool_response|>",
13
+ "<|code|>",
14
+ "<|/code|>",
15
+ "<|analysis|>",
16
+ "<|/analysis|>",
17
+ "<|result|>",
18
+ "<|/result|>",
19
+ "<|tool|>",
20
+ "<|system|>",
21
+ "<|user|>",
22
+ "<|assistant|>"
23
+ ]
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tokenizer_class": "PreTrainedTokenizerFast",
3
+ "bos_token": "<|im_start|>",
4
+ "eos_token": "<|endoftext|>",
5
+ "pad_token": "<|pad|>",
6
+ "model_max_length": 32768,
7
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'system' %}<|im_start|>system\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'user' %}<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}\n{% if message.get('thinking') %}<|thinking|>\n{{ message['thinking'] }}<|/thinking|>{% endif %}\n{% if message.get('tool_calls') %}<|tool_calls|>\n{{ message['tool_calls'] }}<|/tool_calls|>{% endif %}\n<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'tool' %}<|im_start|>tool\n{{ message['content'] }}<|im_end|>\n{% endif %}\n{% endfor %}\n{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
8
+ "add_bos_token": false,
9
+ "add_eos_token": false,
10
+ "clean_up_tokenization_spaces": true
11
+ }