Update config.json
#1
by
djuna
- opened
- config.json +1 -1
- special_tokens_map.json +1 -1
- tokenizer_config.json +15 -15
config.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
"bos_token_id": 151643,
|
8 |
-
"eos_token_id": 151643,
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 5120,
|
11 |
"initializer_range": 0.02,
|
|
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
"bos_token_id": 151643,
|
8 |
+
"eos_token_id": [151643, 151645, 151665],
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 5120,
|
11 |
"initializer_range": 0.02,
|
special_tokens_map.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
"eos_token": {
|
18 |
-
"content": "<|
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
|
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
"eos_token": {
|
18 |
+
"content": "<|im_end|>",
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
tokenizer_config.json
CHANGED
@@ -5,58 +5,58 @@
|
|
5 |
"151643": {
|
6 |
"content": "<|endoftext|>",
|
7 |
"lstrip": false,
|
8 |
-
"normalized":
|
9 |
"rstrip": false,
|
10 |
"single_word": false,
|
11 |
-
"special":
|
12 |
},
|
13 |
"151644": {
|
14 |
"content": "<|im_start|>",
|
15 |
"lstrip": false,
|
16 |
-
"normalized":
|
17 |
"rstrip": false,
|
18 |
"single_word": false,
|
19 |
-
"special":
|
20 |
},
|
21 |
"151645": {
|
22 |
"content": "<|im_end|>",
|
23 |
"lstrip": false,
|
24 |
-
"normalized":
|
25 |
"rstrip": false,
|
26 |
"single_word": false,
|
27 |
-
"special":
|
28 |
},
|
29 |
"151646": {
|
30 |
"content": "<|object_ref_start|>",
|
31 |
"lstrip": false,
|
32 |
-
"normalized":
|
33 |
"rstrip": false,
|
34 |
"single_word": false,
|
35 |
-
"special":
|
36 |
},
|
37 |
"151647": {
|
38 |
"content": "<|object_ref_end|>",
|
39 |
"lstrip": false,
|
40 |
-
"normalized":
|
41 |
"rstrip": false,
|
42 |
"single_word": false,
|
43 |
-
"special":
|
44 |
},
|
45 |
"151648": {
|
46 |
"content": "<|box_start|>",
|
47 |
"lstrip": false,
|
48 |
-
"normalized":
|
49 |
"rstrip": false,
|
50 |
"single_word": false,
|
51 |
-
"special":
|
52 |
},
|
53 |
"151649": {
|
54 |
"content": "<|box_end|>",
|
55 |
"lstrip": false,
|
56 |
-
"normalized":
|
57 |
"rstrip": false,
|
58 |
"single_word": false,
|
59 |
-
"special":
|
60 |
},
|
61 |
"151650": {
|
62 |
"content": "<|quad_start|>",
|
@@ -253,7 +253,7 @@
|
|
253 |
"bos_token": null,
|
254 |
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
255 |
"clean_up_tokenization_spaces": false,
|
256 |
-
"eos_token": "<|
|
257 |
"errors": "replace",
|
258 |
"extra_special_tokens": {},
|
259 |
"model_max_length": 131072,
|
|
|
5 |
"151643": {
|
6 |
"content": "<|endoftext|>",
|
7 |
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
"rstrip": false,
|
10 |
"single_word": false,
|
11 |
+
"special": true
|
12 |
},
|
13 |
"151644": {
|
14 |
"content": "<|im_start|>",
|
15 |
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
"rstrip": false,
|
18 |
"single_word": false,
|
19 |
+
"special": true
|
20 |
},
|
21 |
"151645": {
|
22 |
"content": "<|im_end|>",
|
23 |
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
"rstrip": false,
|
26 |
"single_word": false,
|
27 |
+
"special": true
|
28 |
},
|
29 |
"151646": {
|
30 |
"content": "<|object_ref_start|>",
|
31 |
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
"rstrip": false,
|
34 |
"single_word": false,
|
35 |
+
"special": true
|
36 |
},
|
37 |
"151647": {
|
38 |
"content": "<|object_ref_end|>",
|
39 |
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
"rstrip": false,
|
42 |
"single_word": false,
|
43 |
+
"special": true
|
44 |
},
|
45 |
"151648": {
|
46 |
"content": "<|box_start|>",
|
47 |
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
"rstrip": false,
|
50 |
"single_word": false,
|
51 |
+
"special": true
|
52 |
},
|
53 |
"151649": {
|
54 |
"content": "<|box_end|>",
|
55 |
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
"rstrip": false,
|
58 |
"single_word": false,
|
59 |
+
"special": true
|
60 |
},
|
61 |
"151650": {
|
62 |
"content": "<|quad_start|>",
|
|
|
253 |
"bos_token": null,
|
254 |
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
255 |
"clean_up_tokenization_spaces": false,
|
256 |
+
"eos_token": "<|im_end|>",
|
257 |
"errors": "replace",
|
258 |
"extra_special_tokens": {},
|
259 |
"model_max_length": 131072,
|