jaigouk commited on
Commit
a3ace84
·
1 Parent(s): 34a2922

Upload tokenizer

Browse files
Files changed (3) hide show
  1. special_tokens_map.json +29 -0
  2. tokenizer.json +0 -0
  3. tokenizer_config.json +70 -0
special_tokens_map.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|user|>",
4
+ "<|system|>",
5
+ "<|assistant|>"
6
+ ],
7
+ "bos_token": {
8
+ "content": "<s>",
9
+ "lstrip": false,
10
+ "normalized": false,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "eos_token": {
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "pad_token": "<|pad|>",
22
+ "unk_token": {
23
+ "content": "<unk>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false
28
+ }
29
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "32000": {
28
+ "content": "<|user|>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "32001": {
36
+ "content": "<|system|>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "32002": {
44
+ "content": "<|assistant|>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "additional_special_tokens": [
53
+ "<|user|>",
54
+ "<|system|>",
55
+ "<|assistant|>"
56
+ ],
57
+ "bos_token": "<s>",
58
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'function_metadata' %}GPT4 Correct User: You have access to the following functions. Use them if required:\n\n{{ message['content'] }}\n\n{% elif message['role'] == 'user' and loop.index0 == 1 %}{{ message['content'] }}{{ eos_token }}GPT4 Correct Assistant:\n\n{% elif message['role'] == 'assistant' %}{{ message['content'] }}{{ eos_token }}GPT4 Correct User: {% elif message['role'] == 'function_call' %}Function call: {{ message['content'] }}{{ eos_token }}GPT4 Correct User: {% elif message['role'] == 'function_response' %}Here is the response to the function call. If helpful, use it to respond to my question/request:\n\n{{ message['content'] }}{{ eos_token }}GPT4 Correct Assistant:\n\n{% elif message['role'] == 'user' and loop.index0 != 1 %}{{ message['content'] }}{{ eos_token }}GPT4 Correct Assistant:\n\n{% endif %}{% endfor %}",
59
+ "clean_up_tokenization_spaces": false,
60
+ "eos_token": "</s>",
61
+ "legacy": true,
62
+ "model_max_length": 2048,
63
+ "pad_token": "<|pad|>",
64
+ "padding_side": "right",
65
+ "sp_model_kwargs": {},
66
+ "spaces_between_special_tokens": false,
67
+ "tokenizer_class": "LlamaTokenizer",
68
+ "unk_token": "<unk>",
69
+ "use_default_system_prompt": true
70
+ }