doberst commited on
Commit
4480ce7
1 Parent(s): 7f35c47

Upload 4 files

Browse files
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_186" type="Parameter" version="opset1">
5
+ <data shape="?,?" element_type="i64" />
6
+ <output>
7
+ <port id="0" precision="I64" names="Parameter_186">
8
+ <dim>-1</dim>
9
+ <dim>-1</dim>
10
+ </port>
11
+ </output>
12
+ </layer>
13
+ <layer id="1" name="Convert_197" 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_89" 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_90" 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_187" 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_188" 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_189" 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_190" 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_tokenizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a153d489e0f225c8b266e0275af34d2d0eeef3a28be6596f5eb7d1749bff433b
3
+ size 4103470
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_1" type="Parameter" version="opset1">
5
+ <data shape="?" element_type="string" />
6
+ <output>
7
+ <port id="0" precision="STRING" names="Parameter_1">
8
+ <dim>-1</dim>
9
+ </port>
10
+ </output>
11
+ </layer>
12
+ <layer id="1" name="Constant_8" 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_2" 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_3" 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_4" 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_5" 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_6" 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_7" 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_9" 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_10" 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_12" 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_13" 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_14" 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_15" 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_16" 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_79" 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_80" 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_85" type="Const" version="opset1">
209
+ <data element_type="u8" shape="115" offset="416" size="115" />
210
+ <output>
211
+ <port id="0" precision="U8">
212
+ <dim>115</dim>
213
+ </port>
214
+ </output>
215
+ </layer>
216
+ <layer id="18" name="Constant_82" type="Const" version="opset1">
217
+ <data element_type="u8" shape="390" offset="531" 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_83" 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_86" 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>115</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_87" 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_89" type="Const" version="opset1">
329
+ <data element_type="u8" shape="1976445" offset="921" 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_90" 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_170" type="Const" version="opset1">
356
+ <data element_type="u8" shape="2126008" offset="1977366" 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_171" 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_98" 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_92" type="Const" version="opset1">
389
+ <data element_type="u8" shape="390" offset="531" 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_93" 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_94" 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_95" 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_96" 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_97" 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_99" 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_100" 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_102" 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_103" 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_104" 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_105" 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_106" 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_168" 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_172" type="Const" version="opset1">
550
+ <data element_type="i32" shape="22" offset="4103374" 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_173" type="BPETokenizer" version="extension">
558
+ <data unk_token="" fuse_unk="false" suffix_indicator="" end_suffix="" byte_fallback="false" />
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_174" 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_175" type="Const" version="opset1">
635
+ <data element_type="i32" shape="" offset="4103462" size="4" />
636
+ <output>
637
+ <port id="0" precision="I32" />
638
+ </output>
639
+ </layer>
640
+ <layer id="45" name="Minimum_176" 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="Add_177" type="Add" 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_178" 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_179" 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_180" 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_181" type="Const" version="opset1">
705
+ <data element_type="i32" shape="" offset="4103466" size="4" />
706
+ <output>
707
+ <port id="0" precision="I32" />
708
+ </output>
709
+ </layer>
710
+ <layer id="51" name="RaggedToDense_182" type="RaggedToDense" version="extension">
711
+ <data pad_right="true" />
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_183" 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_183" 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_182.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_184" 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_185" 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="15" to-layer="46" to-port="0" />
874
+ <edge from-layer="42" from-port="15" to-layer="47" to-port="1" />
875
+ <edge from-layer="42" from-port="15" to-layer="51" to-port="0" />
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="0" />
881
+ <edge from-layer="46" from-port="2" to-layer="51" to-port="1" />
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>