srang992 commited on
Commit
b17827a
1 Parent(s): 1b9f72d

initial commit

Browse files
added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "F:\\original hf models\\Qwen2.5-3B-Instruct",
3
+ "architectures": [
4
+ "Qwen2ForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151645,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 2048,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 11008,
13
+ "max_position_embeddings": 32768,
14
+ "max_window_layers": 70,
15
+ "model_type": "qwen2",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 36,
18
+ "num_key_value_heads": 2,
19
+ "rms_norm_eps": 1e-06,
20
+ "rope_theta": 1000000.0,
21
+ "sliding_window": null,
22
+ "tie_word_embeddings": true,
23
+ "torch_dtype": "bfloat16",
24
+ "transformers_version": "4.44.2",
25
+ "use_cache": true,
26
+ "use_sliding_window": false,
27
+ "vocab_size": 151936
28
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.44.2"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
openvino_detokenizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:604a616715346ed0b7a2978cfaf1d36b24e9dbe728533d34b23ef07c06bfe7dc
3
+ size 1976445
openvino_detokenizer.xml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <net name="detokenizer" version="11">
3
+ <layers>
4
+ <layer id="0" name="Parameter_412450" type="Parameter" version="opset1">
5
+ <data shape="?,?" element_type="i64" />
6
+ <output>
7
+ <port id="0" precision="I64" names="Parameter_412450">
8
+ <dim>-1</dim>
9
+ <dim>-1</dim>
10
+ </port>
11
+ </output>
12
+ </layer>
13
+ <layer id="1" name="Convert_412461" type="Convert" version="opset1">
14
+ <data destination_type="i32" />
15
+ <input>
16
+ <port id="0" precision="I64">
17
+ <dim>-1</dim>
18
+ <dim>-1</dim>
19
+ </port>
20
+ </input>
21
+ <output>
22
+ <port id="1" precision="I32">
23
+ <dim>-1</dim>
24
+ <dim>-1</dim>
25
+ </port>
26
+ </output>
27
+ </layer>
28
+ <layer id="2" name="Constant_412353" type="Const" version="opset1">
29
+ <data element_type="u8" shape="1976445" offset="0" size="1976445" />
30
+ <output>
31
+ <port id="0" precision="U8">
32
+ <dim>1976445</dim>
33
+ </port>
34
+ </output>
35
+ </layer>
36
+ <layer id="3" name="StringTensorUnpack_412354" type="StringTensorUnpack" version="extension">
37
+ <data mode="begins_ends" />
38
+ <input>
39
+ <port id="0" precision="U8">
40
+ <dim>1976445</dim>
41
+ </port>
42
+ </input>
43
+ <output>
44
+ <port id="1" precision="I32">
45
+ <dim>-1</dim>
46
+ </port>
47
+ <port id="2" precision="I32">
48
+ <dim>-1</dim>
49
+ </port>
50
+ <port id="3" precision="U8">
51
+ <dim>-1</dim>
52
+ </port>
53
+ </output>
54
+ </layer>
55
+ <layer id="4" name="VocabDecoder_412451" type="VocabDecoder" version="extension">
56
+ <data skip_tokens="151643, 151644, 151645, 151646, 151647, 151648, 151649, 151650, 151651, 151652, 151653, 151654, 151655, 151656" />
57
+ <input>
58
+ <port id="0" precision="I32">
59
+ <dim>-1</dim>
60
+ <dim>-1</dim>
61
+ </port>
62
+ <port id="1" precision="I32">
63
+ <dim>-1</dim>
64
+ </port>
65
+ <port id="2" precision="I32">
66
+ <dim>-1</dim>
67
+ </port>
68
+ <port id="3" precision="U8">
69
+ <dim>-1</dim>
70
+ </port>
71
+ </input>
72
+ <output>
73
+ <port id="4" precision="I32">
74
+ <dim>-1</dim>
75
+ </port>
76
+ <port id="5" precision="I32">
77
+ <dim>-1</dim>
78
+ </port>
79
+ <port id="6" precision="I32">
80
+ <dim>-1</dim>
81
+ </port>
82
+ <port id="7" precision="I32">
83
+ <dim>-1</dim>
84
+ </port>
85
+ <port id="8" precision="U8">
86
+ <dim>-1</dim>
87
+ </port>
88
+ </output>
89
+ </layer>
90
+ <layer id="5" name="CharsToBytes_412452" type="CharsToBytes" version="extension">
91
+ <input>
92
+ <port id="0" precision="I32">
93
+ <dim>-1</dim>
94
+ </port>
95
+ <port id="1" precision="I32">
96
+ <dim>-1</dim>
97
+ </port>
98
+ <port id="2" precision="I32">
99
+ <dim>-1</dim>
100
+ </port>
101
+ <port id="3" precision="I32">
102
+ <dim>-1</dim>
103
+ </port>
104
+ <port id="4" precision="U8">
105
+ <dim>-1</dim>
106
+ </port>
107
+ </input>
108
+ <output>
109
+ <port id="5" precision="I32">
110
+ <dim>-1</dim>
111
+ </port>
112
+ <port id="6" precision="I32">
113
+ <dim>-1</dim>
114
+ </port>
115
+ <port id="7" precision="U8">
116
+ <dim>-1</dim>
117
+ </port>
118
+ </output>
119
+ </layer>
120
+ <layer id="6" name="StringTensorPack_412453" type="StringTensorPack" version="extension">
121
+ <data mode="begins_ends" />
122
+ <input>
123
+ <port id="0" precision="I32">
124
+ <dim>-1</dim>
125
+ </port>
126
+ <port id="1" precision="I32">
127
+ <dim>-1</dim>
128
+ </port>
129
+ <port id="2" precision="U8">
130
+ <dim>-1</dim>
131
+ </port>
132
+ </input>
133
+ <output>
134
+ <port id="3" precision="STRING" names="string_output">
135
+ <dim>-1</dim>
136
+ </port>
137
+ </output>
138
+ </layer>
139
+ <layer id="7" name="Result_412454" type="Result" version="opset1">
140
+ <input>
141
+ <port id="0" precision="STRING">
142
+ <dim>-1</dim>
143
+ </port>
144
+ </input>
145
+ </layer>
146
+ </layers>
147
+ <edges>
148
+ <edge from-layer="0" from-port="0" to-layer="1" to-port="0" />
149
+ <edge from-layer="1" from-port="1" to-layer="4" to-port="0" />
150
+ <edge from-layer="2" from-port="0" to-layer="3" to-port="0" />
151
+ <edge from-layer="3" from-port="1" to-layer="4" to-port="1" />
152
+ <edge from-layer="3" from-port="2" to-layer="4" to-port="2" />
153
+ <edge from-layer="3" from-port="3" to-layer="4" to-port="3" />
154
+ <edge from-layer="4" from-port="4" to-layer="5" to-port="0" />
155
+ <edge from-layer="4" from-port="5" to-layer="5" to-port="1" />
156
+ <edge from-layer="4" from-port="6" to-layer="5" to-port="2" />
157
+ <edge from-layer="4" from-port="7" to-layer="5" to-port="3" />
158
+ <edge from-layer="4" from-port="8" to-layer="5" to-port="4" />
159
+ <edge from-layer="5" from-port="5" to-layer="6" to-port="0" />
160
+ <edge from-layer="5" from-port="6" to-layer="6" to-port="1" />
161
+ <edge from-layer="5" from-port="7" to-layer="6" to-port="2" />
162
+ <edge from-layer="6" from-port="3" to-layer="7" to-port="0" />
163
+ </edges>
164
+ <rt_info>
165
+ <chat_template value="{%- if tools %}&#10; {{- '&lt;|im_start|>system\n' }}&#10; {%- if messages[0]['role'] == 'system' %}&#10; {{- messages[0]['content'] }}&#10; {%- else %}&#10; {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}&#10; {%- endif %}&#10; {{- &quot;\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 &lt;tools>&lt;/tools> XML tags:\n&lt;tools>&quot; }}&#10; {%- for tool in tools %}&#10; {{- &quot;\n&quot; }}&#10; {{- tool | tojson }}&#10; {%- endfor %}&#10; {{- &quot;\n&lt;/tools>\n\nFor each function call, return a json object with function name and arguments within &lt;tool_call>&lt;/tool_call> XML tags:\n&lt;tool_call>\n{\&quot;name\&quot;: &lt;function-name>, \&quot;arguments\&quot;: &lt;args-json-object>}\n&lt;/tool_call>&lt;|im_end|>\n&quot; }}&#10;{%- else %}&#10; {%- if messages[0]['role'] == 'system' %}&#10; {{- '&lt;|im_start|>system\n' + messages[0]['content'] + '&lt;|im_end|>\n' }}&#10; {%- else %}&#10; {{- '&lt;|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.&lt;|im_end|>\n' }}&#10; {%- endif %}&#10;{%- endif %}&#10;{%- for message in messages %}&#10; {%- if (message.role == &quot;user&quot;) or (message.role == &quot;system&quot; and not loop.first) or (message.role == &quot;assistant&quot; and not message.tool_calls) %}&#10; {{- '&lt;|im_start|>' + message.role + '\n' + message.content + '&lt;|im_end|>' + '\n' }}&#10; {%- elif message.role == &quot;assistant&quot; %}&#10; {{- '&lt;|im_start|>' + message.role }}&#10; {%- if message.content %}&#10; {{- '\n' + message.content }}&#10; {%- endif %}&#10; {%- for tool_call in message.tool_calls %}&#10; {%- if tool_call.function is defined %}&#10; {%- set tool_call = tool_call.function %}&#10; {%- endif %}&#10; {{- '\n&lt;tool_call>\n{&quot;name&quot;: &quot;' }}&#10; {{- tool_call.name }}&#10; {{- '&quot;, &quot;arguments&quot;: ' }}&#10; {{- tool_call.arguments | tojson }}&#10; {{- '}\n&lt;/tool_call>' }}&#10; {%- endfor %}&#10; {{- '&lt;|im_end|>\n' }}&#10; {%- elif message.role == &quot;tool&quot; %}&#10; {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != &quot;tool&quot;) %}&#10; {{- '&lt;|im_start|>user' }}&#10; {%- endif %}&#10; {{- '\n&lt;tool_response>\n' }}&#10; {{- message.content }}&#10; {{- '\n&lt;/tool_response>' }}&#10; {%- if loop.last or (messages[loop.index0 + 1].role != &quot;tool&quot;) %}&#10; {{- '&lt;|im_end|>\n' }}&#10; {%- endif %}&#10; {%- endif %}&#10;{%- endfor %}&#10;{%- if add_generation_prompt %}&#10; {{- '&lt;|im_start|>assistant\n' }}&#10;{%- endif %}&#10;" />
166
+ <eos_token_id value="151645" />
167
+ <original_tokenizer_class value="&lt;class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>" />
168
+ <pad_token_id value="151643" />
169
+ </rt_info>
170
+ </net>
openvino_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e4758bcd29e2bcb8c3f52bef3019c70cb220b8041e8c4ee8a80a9762209fcbe
3
+ size 2348923308
openvino_model.xml ADDED
The diff for this file is too large to render. See raw diff
 
openvino_tokenizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:228444b39efc83feb0d250b73c0818fc0e86a5c20d2217ef973f45a0be7132ae
3
+ size 4103855
openvino_tokenizer.xml ADDED
@@ -0,0 +1,898 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <net name="tokenizer" version="11">
3
+ <layers>
4
+ <layer id="0" name="Parameter_412265" type="Parameter" version="opset1">
5
+ <data shape="?" element_type="string" />
6
+ <output>
7
+ <port id="0" precision="STRING" names="Parameter_412265">
8
+ <dim>-1</dim>
9
+ </port>
10
+ </output>
11
+ </layer>
12
+ <layer id="1" name="Constant_412272" type="Const" version="opset1">
13
+ <data element_type="i32" shape="" offset="0" size="4" />
14
+ <output>
15
+ <port id="0" precision="I32" />
16
+ </output>
17
+ </layer>
18
+ <layer id="2" name="StringTensorUnpack_412266" type="StringTensorUnpack" version="extension">
19
+ <data mode="begins_ends" />
20
+ <input>
21
+ <port id="0" precision="STRING">
22
+ <dim>-1</dim>
23
+ </port>
24
+ </input>
25
+ <output>
26
+ <port id="1" precision="I32">
27
+ <dim>-1</dim>
28
+ </port>
29
+ <port id="2" precision="I32">
30
+ <dim>-1</dim>
31
+ </port>
32
+ <port id="3" precision="U8">
33
+ <dim>-1</dim>
34
+ </port>
35
+ </output>
36
+ </layer>
37
+ <layer id="3" name="NormalizeUnicode_412267" type="NormalizeUnicode" version="extension">
38
+ <data normalization_form="NFC" />
39
+ <input>
40
+ <port id="0" precision="I32">
41
+ <dim>-1</dim>
42
+ </port>
43
+ <port id="1" precision="I32">
44
+ <dim>-1</dim>
45
+ </port>
46
+ <port id="2" precision="U8">
47
+ <dim>-1</dim>
48
+ </port>
49
+ </input>
50
+ <output>
51
+ <port id="3" precision="I32">
52
+ <dim>-1</dim>
53
+ </port>
54
+ <port id="4" precision="I32">
55
+ <dim>-1</dim>
56
+ </port>
57
+ <port id="5" precision="U8">
58
+ <dim>-1</dim>
59
+ </port>
60
+ </output>
61
+ </layer>
62
+ <layer id="4" name="ShapeOf_412268" type="ShapeOf" version="opset3">
63
+ <data output_type="i64" />
64
+ <input>
65
+ <port id="0" precision="I32">
66
+ <dim>-1</dim>
67
+ </port>
68
+ </input>
69
+ <output>
70
+ <port id="1" precision="I64">
71
+ <dim>1</dim>
72
+ </port>
73
+ </output>
74
+ </layer>
75
+ <layer id="5" name="Constant_412269" type="Const" version="opset1">
76
+ <data element_type="i32" shape="" offset="0" size="4" />
77
+ <output>
78
+ <port id="0" precision="I32" />
79
+ </output>
80
+ </layer>
81
+ <layer id="6" name="Constant_412270" type="Const" version="opset1">
82
+ <data element_type="i32" shape="" offset="0" size="4" />
83
+ <output>
84
+ <port id="0" precision="I32" />
85
+ </output>
86
+ </layer>
87
+ <layer id="7" name="Gather_412271" type="Gather" version="opset8">
88
+ <data batch_dims="0" />
89
+ <input>
90
+ <port id="0" precision="I64">
91
+ <dim>1</dim>
92
+ </port>
93
+ <port id="1" precision="I32" />
94
+ <port id="2" precision="I32" />
95
+ </input>
96
+ <output>
97
+ <port id="3" precision="I64" />
98
+ </output>
99
+ </layer>
100
+ <layer id="8" name="Constant_412273" type="Const" version="opset1">
101
+ <data element_type="i32" shape="" offset="4" size="4" />
102
+ <output>
103
+ <port id="0" precision="I32" />
104
+ </output>
105
+ </layer>
106
+ <layer id="9" name="Range_412274" type="Range" version="opset4">
107
+ <data output_type="i32" />
108
+ <input>
109
+ <port id="0" precision="I32" />
110
+ <port id="1" precision="I64" />
111
+ <port id="2" precision="I32" />
112
+ </input>
113
+ <output>
114
+ <port id="3" precision="I32">
115
+ <dim>-1</dim>
116
+ </port>
117
+ </output>
118
+ </layer>
119
+ <layer id="10" name="Constant_412276" type="Const" version="opset1">
120
+ <data element_type="i32" shape="" offset="4" size="4" />
121
+ <output>
122
+ <port id="0" precision="I32" />
123
+ </output>
124
+ </layer>
125
+ <layer id="11" name="Constant_412277" type="Const" version="opset1">
126
+ <data element_type="i64" shape="" offset="8" size="8" />
127
+ <output>
128
+ <port id="0" precision="I64" />
129
+ </output>
130
+ </layer>
131
+ <layer id="12" name="Add_412278" type="Add" version="opset1">
132
+ <data auto_broadcast="numpy" />
133
+ <input>
134
+ <port id="0" precision="I64" />
135
+ <port id="1" precision="I64" />
136
+ </input>
137
+ <output>
138
+ <port id="2" precision="I64" />
139
+ </output>
140
+ </layer>
141
+ <layer id="13" name="Constant_412279" type="Const" version="opset1">
142
+ <data element_type="i32" shape="" offset="4" size="4" />
143
+ <output>
144
+ <port id="0" precision="I32" />
145
+ </output>
146
+ </layer>
147
+ <layer id="14" name="Range_412280" type="Range" version="opset4">
148
+ <data output_type="i32" />
149
+ <input>
150
+ <port id="0" precision="I32" />
151
+ <port id="1" precision="I64" />
152
+ <port id="2" precision="I32" />
153
+ </input>
154
+ <output>
155
+ <port id="3" precision="I32">
156
+ <dim>-1</dim>
157
+ </port>
158
+ </output>
159
+ </layer>
160
+ <layer id="15" name="Constant_412343" type="Const" version="opset1">
161
+ <data element_type="u8" shape="400" offset="16" size="400" />
162
+ <output>
163
+ <port id="0" precision="U8">
164
+ <dim>400</dim>
165
+ </port>
166
+ </output>
167
+ </layer>
168
+ <layer id="16" name="RegexSplit_412344" type="RegexSplit" version="extension">
169
+ <data behaviour="isolate" invert="false" max_splits="-1" />
170
+ <input>
171
+ <port id="0" precision="I32">
172
+ <dim>-1</dim>
173
+ </port>
174
+ <port id="1" precision="I32">
175
+ <dim>-1</dim>
176
+ </port>
177
+ <port id="2" precision="I32">
178
+ <dim>-1</dim>
179
+ </port>
180
+ <port id="3" precision="I32">
181
+ <dim>-1</dim>
182
+ </port>
183
+ <port id="4" precision="U8">
184
+ <dim>-1</dim>
185
+ </port>
186
+ <port id="5" precision="U8">
187
+ <dim>400</dim>
188
+ </port>
189
+ </input>
190
+ <output>
191
+ <port id="6" precision="I32">
192
+ <dim>-1</dim>
193
+ </port>
194
+ <port id="7" precision="I32">
195
+ <dim>-1</dim>
196
+ </port>
197
+ <port id="8" precision="I32">
198
+ <dim>-1</dim>
199
+ </port>
200
+ <port id="9" precision="I32">
201
+ <dim>-1</dim>
202
+ </port>
203
+ <port id="10" precision="U8">
204
+ <dim>-1</dim>
205
+ </port>
206
+ </output>
207
+ </layer>
208
+ <layer id="17" name="Constant_412349" type="Const" version="opset1">
209
+ <data element_type="u8" shape="110" offset="416" size="110" />
210
+ <output>
211
+ <port id="0" precision="U8">
212
+ <dim>110</dim>
213
+ </port>
214
+ </output>
215
+ </layer>
216
+ <layer id="18" name="Constant_412346" type="Const" version="opset1">
217
+ <data element_type="u8" shape="390" offset="526" size="390" />
218
+ <output>
219
+ <port id="0" precision="U8">
220
+ <dim>390</dim>
221
+ </port>
222
+ </output>
223
+ </layer>
224
+ <layer id="19" name="StringTensorUnpack_412347" type="StringTensorUnpack" version="extension">
225
+ <data mode="begins_ends" />
226
+ <input>
227
+ <port id="0" precision="U8">
228
+ <dim>390</dim>
229
+ </port>
230
+ </input>
231
+ <output>
232
+ <port id="1" precision="I32">
233
+ <dim>-1</dim>
234
+ </port>
235
+ <port id="2" precision="I32">
236
+ <dim>-1</dim>
237
+ </port>
238
+ <port id="3" precision="U8">
239
+ <dim>-1</dim>
240
+ </port>
241
+ </output>
242
+ </layer>
243
+ <layer id="20" name="RegexSplit_412350" type="RegexSplit" version="extension">
244
+ <data behaviour="isolate" invert="false" max_splits="-1" />
245
+ <input>
246
+ <port id="0" precision="I32">
247
+ <dim>-1</dim>
248
+ </port>
249
+ <port id="1" precision="I32">
250
+ <dim>-1</dim>
251
+ </port>
252
+ <port id="2" precision="I32">
253
+ <dim>-1</dim>
254
+ </port>
255
+ <port id="3" precision="I32">
256
+ <dim>-1</dim>
257
+ </port>
258
+ <port id="4" precision="U8">
259
+ <dim>-1</dim>
260
+ </port>
261
+ <port id="5" precision="U8">
262
+ <dim>110</dim>
263
+ </port>
264
+ <port id="6" precision="I32">
265
+ <dim>-1</dim>
266
+ </port>
267
+ <port id="7" precision="I32">
268
+ <dim>-1</dim>
269
+ </port>
270
+ <port id="8" precision="U8">
271
+ <dim>-1</dim>
272
+ </port>
273
+ </input>
274
+ <output>
275
+ <port id="9" precision="I32">
276
+ <dim>-1</dim>
277
+ </port>
278
+ <port id="10" precision="I32">
279
+ <dim>-1</dim>
280
+ </port>
281
+ <port id="11" precision="I32">
282
+ <dim>-1</dim>
283
+ </port>
284
+ <port id="12" precision="I32">
285
+ <dim>-1</dim>
286
+ </port>
287
+ <port id="13" precision="U8">
288
+ <dim>-1</dim>
289
+ </port>
290
+ </output>
291
+ </layer>
292
+ <layer id="21" name="BytesToChars_412351" type="BytesToChars" version="extension">
293
+ <input>
294
+ <port id="0" precision="I32">
295
+ <dim>-1</dim>
296
+ </port>
297
+ <port id="1" precision="I32">
298
+ <dim>-1</dim>
299
+ </port>
300
+ <port id="2" precision="I32">
301
+ <dim>-1</dim>
302
+ </port>
303
+ <port id="3" precision="I32">
304
+ <dim>-1</dim>
305
+ </port>
306
+ <port id="4" precision="U8">
307
+ <dim>-1</dim>
308
+ </port>
309
+ </input>
310
+ <output>
311
+ <port id="5" precision="I32">
312
+ <dim>-1</dim>
313
+ </port>
314
+ <port id="6" precision="I32">
315
+ <dim>-1</dim>
316
+ </port>
317
+ <port id="7" precision="I32">
318
+ <dim>-1</dim>
319
+ </port>
320
+ <port id="8" precision="I32">
321
+ <dim>-1</dim>
322
+ </port>
323
+ <port id="9" precision="U8">
324
+ <dim>-1</dim>
325
+ </port>
326
+ </output>
327
+ </layer>
328
+ <layer id="22" name="Constant_412353" type="Const" version="opset1">
329
+ <data element_type="u8" shape="1976445" offset="916" size="1976445" />
330
+ <output>
331
+ <port id="0" precision="U8">
332
+ <dim>1976445</dim>
333
+ </port>
334
+ </output>
335
+ </layer>
336
+ <layer id="23" name="StringTensorUnpack_412354" type="StringTensorUnpack" version="extension">
337
+ <data mode="begins_ends" />
338
+ <input>
339
+ <port id="0" precision="U8">
340
+ <dim>1976445</dim>
341
+ </port>
342
+ </input>
343
+ <output>
344
+ <port id="1" precision="I32">
345
+ <dim>-1</dim>
346
+ </port>
347
+ <port id="2" precision="I32">
348
+ <dim>-1</dim>
349
+ </port>
350
+ <port id="3" precision="U8">
351
+ <dim>-1</dim>
352
+ </port>
353
+ </output>
354
+ </layer>
355
+ <layer id="24" name="Constant_412434" type="Const" version="opset1">
356
+ <data element_type="u8" shape="2126008" offset="1977361" size="2126008" />
357
+ <output>
358
+ <port id="0" precision="U8">
359
+ <dim>2126008</dim>
360
+ </port>
361
+ </output>
362
+ </layer>
363
+ <layer id="25" name="StringTensorUnpack_412435" type="StringTensorUnpack" version="extension">
364
+ <data mode="begins_ends" />
365
+ <input>
366
+ <port id="0" precision="U8">
367
+ <dim>2126008</dim>
368
+ </port>
369
+ </input>
370
+ <output>
371
+ <port id="1" precision="I32">
372
+ <dim>-1</dim>
373
+ </port>
374
+ <port id="2" precision="I32">
375
+ <dim>-1</dim>
376
+ </port>
377
+ <port id="3" precision="U8">
378
+ <dim>-1</dim>
379
+ </port>
380
+ </output>
381
+ </layer>
382
+ <layer id="26" name="Constant_412362" type="Const" version="opset1">
383
+ <data element_type="i32" shape="" offset="0" size="4" />
384
+ <output>
385
+ <port id="0" precision="I32" />
386
+ </output>
387
+ </layer>
388
+ <layer id="27" name="Constant_412356" type="Const" version="opset1">
389
+ <data element_type="u8" shape="390" offset="4103369" size="390" />
390
+ <output>
391
+ <port id="0" precision="U8">
392
+ <dim>390</dim>
393
+ </port>
394
+ </output>
395
+ </layer>
396
+ <layer id="28" name="StringTensorUnpack_412357" type="StringTensorUnpack" version="extension">
397
+ <data mode="begins_ends" />
398
+ <input>
399
+ <port id="0" precision="U8">
400
+ <dim>390</dim>
401
+ </port>
402
+ </input>
403
+ <output>
404
+ <port id="1" precision="I32">
405
+ <dim>-1</dim>
406
+ </port>
407
+ <port id="2" precision="I32">
408
+ <dim>-1</dim>
409
+ </port>
410
+ <port id="3" precision="U8">
411
+ <dim>-1</dim>
412
+ </port>
413
+ </output>
414
+ </layer>
415
+ <layer id="29" name="ShapeOf_412358" type="ShapeOf" version="opset3">
416
+ <data output_type="i64" />
417
+ <input>
418
+ <port id="0" precision="I32">
419
+ <dim>-1</dim>
420
+ </port>
421
+ </input>
422
+ <output>
423
+ <port id="1" precision="I64">
424
+ <dim>1</dim>
425
+ </port>
426
+ </output>
427
+ </layer>
428
+ <layer id="30" name="Constant_412359" type="Const" version="opset1">
429
+ <data element_type="i32" shape="" offset="0" size="4" />
430
+ <output>
431
+ <port id="0" precision="I32" />
432
+ </output>
433
+ </layer>
434
+ <layer id="31" name="Constant_412360" type="Const" version="opset1">
435
+ <data element_type="i32" shape="" offset="0" size="4" />
436
+ <output>
437
+ <port id="0" precision="I32" />
438
+ </output>
439
+ </layer>
440
+ <layer id="32" name="Gather_412361" type="Gather" version="opset8">
441
+ <data batch_dims="0" />
442
+ <input>
443
+ <port id="0" precision="I64">
444
+ <dim>1</dim>
445
+ </port>
446
+ <port id="1" precision="I32" />
447
+ <port id="2" precision="I32" />
448
+ </input>
449
+ <output>
450
+ <port id="3" precision="I64" />
451
+ </output>
452
+ </layer>
453
+ <layer id="33" name="Constant_412363" type="Const" version="opset1">
454
+ <data element_type="i32" shape="" offset="4" size="4" />
455
+ <output>
456
+ <port id="0" precision="I32" />
457
+ </output>
458
+ </layer>
459
+ <layer id="34" name="Range_412364" type="Range" version="opset4">
460
+ <data output_type="i32" />
461
+ <input>
462
+ <port id="0" precision="I32" />
463
+ <port id="1" precision="I64" />
464
+ <port id="2" precision="I32" />
465
+ </input>
466
+ <output>
467
+ <port id="3" precision="I32">
468
+ <dim>-1</dim>
469
+ </port>
470
+ </output>
471
+ </layer>
472
+ <layer id="35" name="Constant_412366" type="Const" version="opset1">
473
+ <data element_type="i32" shape="" offset="4" size="4" />
474
+ <output>
475
+ <port id="0" precision="I32" />
476
+ </output>
477
+ </layer>
478
+ <layer id="36" name="Constant_412367" type="Const" version="opset1">
479
+ <data element_type="i64" shape="" offset="8" size="8" />
480
+ <output>
481
+ <port id="0" precision="I64" />
482
+ </output>
483
+ </layer>
484
+ <layer id="37" name="Add_412368" type="Add" version="opset1">
485
+ <data auto_broadcast="numpy" />
486
+ <input>
487
+ <port id="0" precision="I64" />
488
+ <port id="1" precision="I64" />
489
+ </input>
490
+ <output>
491
+ <port id="2" precision="I64" />
492
+ </output>
493
+ </layer>
494
+ <layer id="38" name="Constant_412369" type="Const" version="opset1">
495
+ <data element_type="i32" shape="" offset="4" size="4" />
496
+ <output>
497
+ <port id="0" precision="I32" />
498
+ </output>
499
+ </layer>
500
+ <layer id="39" name="Range_412370" type="Range" version="opset4">
501
+ <data output_type="i32" />
502
+ <input>
503
+ <port id="0" precision="I32" />
504
+ <port id="1" precision="I64" />
505
+ <port id="2" precision="I32" />
506
+ </input>
507
+ <output>
508
+ <port id="3" precision="I32">
509
+ <dim>-1</dim>
510
+ </port>
511
+ </output>
512
+ </layer>
513
+ <layer id="40" name="BytesToChars_412432" type="BytesToChars" version="extension">
514
+ <input>
515
+ <port id="0" precision="I32">
516
+ <dim>-1</dim>
517
+ </port>
518
+ <port id="1" precision="I32">
519
+ <dim>-1</dim>
520
+ </port>
521
+ <port id="2" precision="I32">
522
+ <dim>-1</dim>
523
+ </port>
524
+ <port id="3" precision="I32">
525
+ <dim>-1</dim>
526
+ </port>
527
+ <port id="4" precision="U8">
528
+ <dim>-1</dim>
529
+ </port>
530
+ </input>
531
+ <output>
532
+ <port id="5" precision="I32">
533
+ <dim>-1</dim>
534
+ </port>
535
+ <port id="6" precision="I32">
536
+ <dim>-1</dim>
537
+ </port>
538
+ <port id="7" precision="I32">
539
+ <dim>-1</dim>
540
+ </port>
541
+ <port id="8" precision="I32">
542
+ <dim>-1</dim>
543
+ </port>
544
+ <port id="9" precision="U8">
545
+ <dim>-1</dim>
546
+ </port>
547
+ </output>
548
+ </layer>
549
+ <layer id="41" name="Constant_412436" type="Const" version="opset1">
550
+ <data element_type="i32" shape="22" offset="4103759" size="88" />
551
+ <output>
552
+ <port id="0" precision="I32">
553
+ <dim>22</dim>
554
+ </port>
555
+ </output>
556
+ </layer>
557
+ <layer id="42" name="BPETokenizer_412437" type="BPETokenizer" version="extension">
558
+ <data unk_token="" fuse_unk="false" suffix_indicator="" end_suffix="" byte_fallback="false" cache_capacity="30328" />
559
+ <input>
560
+ <port id="0" precision="I32">
561
+ <dim>-1</dim>
562
+ </port>
563
+ <port id="1" precision="I32">
564
+ <dim>-1</dim>
565
+ </port>
566
+ <port id="2" precision="I32">
567
+ <dim>-1</dim>
568
+ </port>
569
+ <port id="3" precision="I32">
570
+ <dim>-1</dim>
571
+ </port>
572
+ <port id="4" precision="U8">
573
+ <dim>-1</dim>
574
+ </port>
575
+ <port id="5" precision="I32">
576
+ <dim>-1</dim>
577
+ </port>
578
+ <port id="6" precision="I32">
579
+ <dim>-1</dim>
580
+ </port>
581
+ <port id="7" precision="U8">
582
+ <dim>-1</dim>
583
+ </port>
584
+ <port id="8" precision="I32">
585
+ <dim>-1</dim>
586
+ </port>
587
+ <port id="9" precision="I32">
588
+ <dim>-1</dim>
589
+ </port>
590
+ <port id="10" precision="U8">
591
+ <dim>-1</dim>
592
+ </port>
593
+ <port id="11" precision="I32">
594
+ <dim>-1</dim>
595
+ </port>
596
+ <port id="12" precision="I32">
597
+ <dim>-1</dim>
598
+ </port>
599
+ <port id="13" precision="U8">
600
+ <dim>-1</dim>
601
+ </port>
602
+ <port id="14" precision="I32">
603
+ <dim>22</dim>
604
+ </port>
605
+ </input>
606
+ <output>
607
+ <port id="15" precision="I32">
608
+ <dim>-1</dim>
609
+ </port>
610
+ <port id="16" precision="I32">
611
+ <dim>-1</dim>
612
+ </port>
613
+ <port id="17" precision="I32">
614
+ <dim>-1</dim>
615
+ </port>
616
+ </output>
617
+ </layer>
618
+ <layer id="43" name="Subtract_412438" type="Subtract" version="opset1">
619
+ <data auto_broadcast="numpy" />
620
+ <input>
621
+ <port id="0" precision="I32">
622
+ <dim>-1</dim>
623
+ </port>
624
+ <port id="1" precision="I32">
625
+ <dim>-1</dim>
626
+ </port>
627
+ </input>
628
+ <output>
629
+ <port id="2" precision="I32">
630
+ <dim>-1</dim>
631
+ </port>
632
+ </output>
633
+ </layer>
634
+ <layer id="44" name="Constant_412439" type="Const" version="opset1">
635
+ <data element_type="i32" shape="" offset="4103847" size="4" />
636
+ <output>
637
+ <port id="0" precision="I32" />
638
+ </output>
639
+ </layer>
640
+ <layer id="45" name="Minimum_412440" type="Minimum" version="opset1">
641
+ <data auto_broadcast="numpy" />
642
+ <input>
643
+ <port id="0" precision="I32">
644
+ <dim>-1</dim>
645
+ </port>
646
+ <port id="1" precision="I32" />
647
+ </input>
648
+ <output>
649
+ <port id="2" precision="I32">
650
+ <dim>-1</dim>
651
+ </port>
652
+ </output>
653
+ </layer>
654
+ <layer id="46" name="Subtract_412441" type="Subtract" version="opset1">
655
+ <data auto_broadcast="numpy" />
656
+ <input>
657
+ <port id="0" precision="I32">
658
+ <dim>-1</dim>
659
+ </port>
660
+ <port id="1" precision="I32">
661
+ <dim>-1</dim>
662
+ </port>
663
+ </input>
664
+ <output>
665
+ <port id="2" precision="I32">
666
+ <dim>-1</dim>
667
+ </port>
668
+ </output>
669
+ </layer>
670
+ <layer id="47" name="Subtract_412442" type="Subtract" version="opset1">
671
+ <data auto_broadcast="numpy" />
672
+ <input>
673
+ <port id="0" precision="I32">
674
+ <dim>-1</dim>
675
+ </port>
676
+ <port id="1" precision="I32">
677
+ <dim>-1</dim>
678
+ </port>
679
+ </input>
680
+ <output>
681
+ <port id="2" precision="I32">
682
+ <dim>-1</dim>
683
+ </port>
684
+ </output>
685
+ </layer>
686
+ <layer id="48" name="Constant_412443" type="Const" version="opset1">
687
+ <data element_type="i32" shape="" offset="0" size="4" />
688
+ <output>
689
+ <port id="0" precision="I32" />
690
+ </output>
691
+ </layer>
692
+ <layer id="49" name="ReduceMax_412444" type="ReduceMax" version="opset1">
693
+ <data keep_dims="false" />
694
+ <input>
695
+ <port id="0" precision="I32">
696
+ <dim>-1</dim>
697
+ </port>
698
+ <port id="1" precision="I32" />
699
+ </input>
700
+ <output>
701
+ <port id="2" precision="I32" />
702
+ </output>
703
+ </layer>
704
+ <layer id="50" name="Constant_412445" type="Const" version="opset1">
705
+ <data element_type="i32" shape="" offset="4103851" size="4" />
706
+ <output>
707
+ <port id="0" precision="I32" />
708
+ </output>
709
+ </layer>
710
+ <layer id="51" name="RaggedToDense_412446" type="RaggedToDense" version="extension">
711
+ <data pad_right="false" />
712
+ <input>
713
+ <port id="0" precision="I32">
714
+ <dim>-1</dim>
715
+ </port>
716
+ <port id="1" precision="I32">
717
+ <dim>-1</dim>
718
+ </port>
719
+ <port id="2" precision="I32">
720
+ <dim>-1</dim>
721
+ </port>
722
+ <port id="3" precision="I32" />
723
+ <port id="4" precision="I32" />
724
+ </input>
725
+ <output>
726
+ <port id="5" precision="I32">
727
+ <dim>-1</dim>
728
+ <dim>-1</dim>
729
+ </port>
730
+ <port id="6" precision="BOOL">
731
+ <dim>-1</dim>
732
+ <dim>-1</dim>
733
+ </port>
734
+ </output>
735
+ </layer>
736
+ <layer id="52" name="Convert_412447" type="Convert" version="opset1">
737
+ <data destination_type="i32" />
738
+ <input>
739
+ <port id="0" precision="BOOL">
740
+ <dim>-1</dim>
741
+ <dim>-1</dim>
742
+ </port>
743
+ </input>
744
+ <output>
745
+ <port id="1" precision="I32">
746
+ <dim>-1</dim>
747
+ <dim>-1</dim>
748
+ </port>
749
+ </output>
750
+ </layer>
751
+ <layer id="53" name="Convert_412447" type="Convert" version="opset1">
752
+ <data destination_type="i64" />
753
+ <input>
754
+ <port id="0" precision="I32">
755
+ <dim>-1</dim>
756
+ <dim>-1</dim>
757
+ </port>
758
+ </input>
759
+ <output>
760
+ <port id="1" precision="I64" names="attention_mask">
761
+ <dim>-1</dim>
762
+ <dim>-1</dim>
763
+ </port>
764
+ </output>
765
+ </layer>
766
+ <layer id="55" name="RaggedToDense_412446.0" type="Convert" version="opset1">
767
+ <data destination_type="i64" />
768
+ <input>
769
+ <port id="0" precision="I32">
770
+ <dim>-1</dim>
771
+ <dim>-1</dim>
772
+ </port>
773
+ </input>
774
+ <output>
775
+ <port id="1" precision="I64" names="input_ids">
776
+ <dim>-1</dim>
777
+ <dim>-1</dim>
778
+ </port>
779
+ </output>
780
+ </layer>
781
+ <layer id="56" name="Result_412448" type="Result" version="opset1">
782
+ <input>
783
+ <port id="0" precision="I64">
784
+ <dim>-1</dim>
785
+ <dim>-1</dim>
786
+ </port>
787
+ </input>
788
+ </layer>
789
+ <layer id="54" name="Result_412449" type="Result" version="opset1">
790
+ <input>
791
+ <port id="0" precision="I64">
792
+ <dim>-1</dim>
793
+ <dim>-1</dim>
794
+ </port>
795
+ </input>
796
+ </layer>
797
+ </layers>
798
+ <edges>
799
+ <edge from-layer="0" from-port="0" to-layer="2" to-port="0" />
800
+ <edge from-layer="1" from-port="0" to-layer="9" to-port="0" />
801
+ <edge from-layer="2" from-port="1" to-layer="3" to-port="0" />
802
+ <edge from-layer="2" from-port="2" to-layer="3" to-port="1" />
803
+ <edge from-layer="2" from-port="3" to-layer="3" to-port="2" />
804
+ <edge from-layer="3" from-port="3" to-layer="4" to-port="0" />
805
+ <edge from-layer="3" from-port="3" to-layer="16" to-port="2" />
806
+ <edge from-layer="3" from-port="4" to-layer="16" to-port="3" />
807
+ <edge from-layer="3" from-port="5" to-layer="16" to-port="4" />
808
+ <edge from-layer="4" from-port="1" to-layer="7" to-port="0" />
809
+ <edge from-layer="5" from-port="0" to-layer="7" to-port="1" />
810
+ <edge from-layer="6" from-port="0" to-layer="7" to-port="2" />
811
+ <edge from-layer="7" from-port="3" to-layer="9" to-port="1" />
812
+ <edge from-layer="7" from-port="3" to-layer="12" to-port="0" />
813
+ <edge from-layer="8" from-port="0" to-layer="9" to-port="2" />
814
+ <edge from-layer="9" from-port="3" to-layer="16" to-port="0" />
815
+ <edge from-layer="10" from-port="0" to-layer="14" to-port="0" />
816
+ <edge from-layer="11" from-port="0" to-layer="12" to-port="1" />
817
+ <edge from-layer="12" from-port="2" to-layer="14" to-port="1" />
818
+ <edge from-layer="13" from-port="0" to-layer="14" to-port="2" />
819
+ <edge from-layer="14" from-port="3" to-layer="16" to-port="1" />
820
+ <edge from-layer="15" from-port="0" to-layer="16" to-port="5" />
821
+ <edge from-layer="16" from-port="6" to-layer="20" to-port="0" />
822
+ <edge from-layer="16" from-port="7" to-layer="20" to-port="1" />
823
+ <edge from-layer="16" from-port="8" to-layer="20" to-port="2" />
824
+ <edge from-layer="16" from-port="9" to-layer="20" to-port="3" />
825
+ <edge from-layer="16" from-port="10" to-layer="20" to-port="4" />
826
+ <edge from-layer="17" from-port="0" to-layer="20" to-port="5" />
827
+ <edge from-layer="18" from-port="0" to-layer="19" to-port="0" />
828
+ <edge from-layer="19" from-port="1" to-layer="20" to-port="6" />
829
+ <edge from-layer="19" from-port="2" to-layer="20" to-port="7" />
830
+ <edge from-layer="19" from-port="3" to-layer="20" to-port="8" />
831
+ <edge from-layer="20" from-port="9" to-layer="21" to-port="0" />
832
+ <edge from-layer="20" from-port="10" to-layer="21" to-port="1" />
833
+ <edge from-layer="20" from-port="11" to-layer="21" to-port="2" />
834
+ <edge from-layer="20" from-port="12" to-layer="21" to-port="3" />
835
+ <edge from-layer="20" from-port="13" to-layer="21" to-port="4" />
836
+ <edge from-layer="21" from-port="6" to-layer="42" to-port="1" />
837
+ <edge from-layer="21" from-port="7" to-layer="42" to-port="2" />
838
+ <edge from-layer="21" from-port="8" to-layer="42" to-port="3" />
839
+ <edge from-layer="21" from-port="9" to-layer="42" to-port="4" />
840
+ <edge from-layer="21" from-port="5" to-layer="42" to-port="0" />
841
+ <edge from-layer="22" from-port="0" to-layer="23" to-port="0" />
842
+ <edge from-layer="23" from-port="1" to-layer="42" to-port="5" />
843
+ <edge from-layer="23" from-port="2" to-layer="42" to-port="6" />
844
+ <edge from-layer="23" from-port="3" to-layer="42" to-port="7" />
845
+ <edge from-layer="24" from-port="0" to-layer="25" to-port="0" />
846
+ <edge from-layer="25" from-port="1" to-layer="42" to-port="8" />
847
+ <edge from-layer="25" from-port="2" to-layer="42" to-port="9" />
848
+ <edge from-layer="25" from-port="3" to-layer="42" to-port="10" />
849
+ <edge from-layer="26" from-port="0" to-layer="34" to-port="0" />
850
+ <edge from-layer="27" from-port="0" to-layer="28" to-port="0" />
851
+ <edge from-layer="28" from-port="1" to-layer="29" to-port="0" />
852
+ <edge from-layer="28" from-port="1" to-layer="40" to-port="2" />
853
+ <edge from-layer="28" from-port="2" to-layer="40" to-port="3" />
854
+ <edge from-layer="28" from-port="3" to-layer="40" to-port="4" />
855
+ <edge from-layer="29" from-port="1" to-layer="32" to-port="0" />
856
+ <edge from-layer="30" from-port="0" to-layer="32" to-port="1" />
857
+ <edge from-layer="31" from-port="0" to-layer="32" to-port="2" />
858
+ <edge from-layer="32" from-port="3" to-layer="34" to-port="1" />
859
+ <edge from-layer="32" from-port="3" to-layer="37" to-port="0" />
860
+ <edge from-layer="33" from-port="0" to-layer="34" to-port="2" />
861
+ <edge from-layer="34" from-port="3" to-layer="40" to-port="0" />
862
+ <edge from-layer="35" from-port="0" to-layer="39" to-port="0" />
863
+ <edge from-layer="36" from-port="0" to-layer="37" to-port="1" />
864
+ <edge from-layer="37" from-port="2" to-layer="39" to-port="1" />
865
+ <edge from-layer="38" from-port="0" to-layer="39" to-port="2" />
866
+ <edge from-layer="39" from-port="3" to-layer="40" to-port="1" />
867
+ <edge from-layer="40" from-port="7" to-layer="42" to-port="11" />
868
+ <edge from-layer="40" from-port="8" to-layer="42" to-port="12" />
869
+ <edge from-layer="40" from-port="9" to-layer="42" to-port="13" />
870
+ <edge from-layer="41" from-port="0" to-layer="42" to-port="14" />
871
+ <edge from-layer="42" from-port="16" to-layer="43" to-port="0" />
872
+ <edge from-layer="42" from-port="15" to-layer="43" to-port="1" />
873
+ <edge from-layer="42" from-port="16" to-layer="46" to-port="0" />
874
+ <edge from-layer="42" from-port="16" to-layer="47" to-port="0" />
875
+ <edge from-layer="42" from-port="16" to-layer="51" to-port="1" />
876
+ <edge from-layer="42" from-port="17" to-layer="51" to-port="2" />
877
+ <edge from-layer="43" from-port="2" to-layer="45" to-port="0" />
878
+ <edge from-layer="44" from-port="0" to-layer="45" to-port="1" />
879
+ <edge from-layer="45" from-port="2" to-layer="46" to-port="1" />
880
+ <edge from-layer="46" from-port="2" to-layer="47" to-port="1" />
881
+ <edge from-layer="46" from-port="2" to-layer="51" to-port="0" />
882
+ <edge from-layer="47" from-port="2" to-layer="49" to-port="0" />
883
+ <edge from-layer="48" from-port="0" to-layer="49" to-port="1" />
884
+ <edge from-layer="49" from-port="2" to-layer="51" to-port="3" />
885
+ <edge from-layer="50" from-port="0" to-layer="51" to-port="4" />
886
+ <edge from-layer="51" from-port="6" to-layer="52" to-port="0" />
887
+ <edge from-layer="51" from-port="5" to-layer="55" to-port="0" />
888
+ <edge from-layer="52" from-port="1" to-layer="53" to-port="0" />
889
+ <edge from-layer="53" from-port="1" to-layer="54" to-port="0" />
890
+ <edge from-layer="55" from-port="1" to-layer="56" to-port="0" />
891
+ </edges>
892
+ <rt_info>
893
+ <chat_template value="{%- if tools %}&#10; {{- '&lt;|im_start|>system\n' }}&#10; {%- if messages[0]['role'] == 'system' %}&#10; {{- messages[0]['content'] }}&#10; {%- else %}&#10; {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}&#10; {%- endif %}&#10; {{- &quot;\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 &lt;tools>&lt;/tools> XML tags:\n&lt;tools>&quot; }}&#10; {%- for tool in tools %}&#10; {{- &quot;\n&quot; }}&#10; {{- tool | tojson }}&#10; {%- endfor %}&#10; {{- &quot;\n&lt;/tools>\n\nFor each function call, return a json object with function name and arguments within &lt;tool_call>&lt;/tool_call> XML tags:\n&lt;tool_call>\n{\&quot;name\&quot;: &lt;function-name>, \&quot;arguments\&quot;: &lt;args-json-object>}\n&lt;/tool_call>&lt;|im_end|>\n&quot; }}&#10;{%- else %}&#10; {%- if messages[0]['role'] == 'system' %}&#10; {{- '&lt;|im_start|>system\n' + messages[0]['content'] + '&lt;|im_end|>\n' }}&#10; {%- else %}&#10; {{- '&lt;|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.&lt;|im_end|>\n' }}&#10; {%- endif %}&#10;{%- endif %}&#10;{%- for message in messages %}&#10; {%- if (message.role == &quot;user&quot;) or (message.role == &quot;system&quot; and not loop.first) or (message.role == &quot;assistant&quot; and not message.tool_calls) %}&#10; {{- '&lt;|im_start|>' + message.role + '\n' + message.content + '&lt;|im_end|>' + '\n' }}&#10; {%- elif message.role == &quot;assistant&quot; %}&#10; {{- '&lt;|im_start|>' + message.role }}&#10; {%- if message.content %}&#10; {{- '\n' + message.content }}&#10; {%- endif %}&#10; {%- for tool_call in message.tool_calls %}&#10; {%- if tool_call.function is defined %}&#10; {%- set tool_call = tool_call.function %}&#10; {%- endif %}&#10; {{- '\n&lt;tool_call>\n{&quot;name&quot;: &quot;' }}&#10; {{- tool_call.name }}&#10; {{- '&quot;, &quot;arguments&quot;: ' }}&#10; {{- tool_call.arguments | tojson }}&#10; {{- '}\n&lt;/tool_call>' }}&#10; {%- endfor %}&#10; {{- '&lt;|im_end|>\n' }}&#10; {%- elif message.role == &quot;tool&quot; %}&#10; {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != &quot;tool&quot;) %}&#10; {{- '&lt;|im_start|>user' }}&#10; {%- endif %}&#10; {{- '\n&lt;tool_response>\n' }}&#10; {{- message.content }}&#10; {{- '\n&lt;/tool_response>' }}&#10; {%- if loop.last or (messages[loop.index0 + 1].role != &quot;tool&quot;) %}&#10; {{- '&lt;|im_end|>\n' }}&#10; {%- endif %}&#10; {%- endif %}&#10;{%- endfor %}&#10;{%- if add_generation_prompt %}&#10; {{- '&lt;|im_start|>assistant\n' }}&#10;{%- endif %}&#10;" />
894
+ <eos_token_id value="151645" />
895
+ <original_tokenizer_class value="&lt;class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>" />
896
+ <pad_token_id value="151643" />
897
+ </rt_info>
898
+ </net>
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
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|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ }
181
+ },
182
+ "additional_special_tokens": [
183
+ "<|im_start|>",
184
+ "<|im_end|>",
185
+ "<|object_ref_start|>",
186
+ "<|object_ref_end|>",
187
+ "<|box_start|>",
188
+ "<|box_end|>",
189
+ "<|quad_start|>",
190
+ "<|quad_end|>",
191
+ "<|vision_start|>",
192
+ "<|vision_end|>",
193
+ "<|vision_pad|>",
194
+ "<|image_pad|>",
195
+ "<|video_pad|>"
196
+ ],
197
+ "bos_token": null,
198
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. 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 Qwen, created by Alibaba Cloud. You 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",
199
+ "clean_up_tokenization_spaces": false,
200
+ "eos_token": "<|im_end|>",
201
+ "errors": "replace",
202
+ "model_max_length": 131072,
203
+ "pad_token": "<|endoftext|>",
204
+ "split_special_tokens": false,
205
+ "tokenizer_class": "Qwen2Tokenizer",
206
+ "unk_token": null
207
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff