FM-1976 commited on
Commit
26cfa38
1 Parent(s): cf69c6f

Upload 14 files

Browse files

model converted from original hf repo into OpenVINO IR format with optimum-cli

.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
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,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "NuExtract-1.5-tiny",
4
+ "architectures": [
5
+ "Qwen2ForCausalLM"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 151643,
9
+ "eos_token_id": 151643,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 896,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 4864,
14
+ "max_position_embeddings": 32768,
15
+ "max_window_layers": 24,
16
+ "model_type": "qwen2",
17
+ "num_attention_heads": 14,
18
+ "num_hidden_layers": 24,
19
+ "num_key_value_heads": 2,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000000.0,
23
+ "sliding_window": null,
24
+ "tie_word_embeddings": true,
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.46.3",
27
+ "use_cache": true,
28
+ "use_mrope": false,
29
+ "use_sliding_window": false,
30
+ "vocab_size": 151936
31
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_new_tokens": 2048,
5
+ "transformers_version": "4.46.3"
6
+ }
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:5068e879c8aa997efb107ed244451a018e8da2ce3229bf1fc8b3f2d494d4b965
3
+ size 1582931
openvino_detokenizer.xml ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <net name="detokenizer" version="11">
3
+ <layers>
4
+ <layer id="0" name="Parameter_56946" type="Parameter" version="opset1">
5
+ <data shape="?,?" element_type="i64" />
6
+ <output>
7
+ <port id="0" precision="I64" names="Parameter_56946">
8
+ <dim>-1</dim>
9
+ <dim>-1</dim>
10
+ </port>
11
+ </output>
12
+ </layer>
13
+ <layer id="1" name="Convert_56957" 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_56921" type="Const" version="opset1">
29
+ <data element_type="u8" shape="1582931" offset="0" size="1582931" />
30
+ <output>
31
+ <port id="0" precision="U8">
32
+ <dim>1582931</dim>
33
+ </port>
34
+ </output>
35
+ </layer>
36
+ <layer id="3" name="StringTensorUnpack_56922" type="StringTensorUnpack" version="extension">
37
+ <data mode="begins_ends" />
38
+ <input>
39
+ <port id="0" precision="U8">
40
+ <dim>1582931</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_56947" 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="FuzeRagged_56948" type="FuzeRagged" 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
+ </input>
105
+ <output>
106
+ <port id="4" precision="I32">
107
+ <dim>-1</dim>
108
+ </port>
109
+ <port id="5" precision="I32">
110
+ <dim>-1</dim>
111
+ </port>
112
+ </output>
113
+ </layer>
114
+ <layer id="6" name="StringTensorPack_56949" type="StringTensorPack" version="extension">
115
+ <data mode="begins_ends" />
116
+ <input>
117
+ <port id="0" precision="I32">
118
+ <dim>-1</dim>
119
+ </port>
120
+ <port id="1" precision="I32">
121
+ <dim>-1</dim>
122
+ </port>
123
+ <port id="2" precision="U8">
124
+ <dim>-1</dim>
125
+ </port>
126
+ </input>
127
+ <output>
128
+ <port id="3" precision="STRING" names="string_output">
129
+ <dim>-1</dim>
130
+ </port>
131
+ </output>
132
+ </layer>
133
+ <layer id="7" name="Result_56950" type="Result" version="opset1">
134
+ <input>
135
+ <port id="0" precision="STRING">
136
+ <dim>-1</dim>
137
+ </port>
138
+ </input>
139
+ </layer>
140
+ </layers>
141
+ <edges>
142
+ <edge from-layer="0" from-port="0" to-layer="1" to-port="0" />
143
+ <edge from-layer="1" from-port="1" to-layer="4" to-port="0" />
144
+ <edge from-layer="2" from-port="0" to-layer="3" to-port="0" />
145
+ <edge from-layer="3" from-port="1" to-layer="4" to-port="1" />
146
+ <edge from-layer="3" from-port="2" to-layer="4" to-port="2" />
147
+ <edge from-layer="3" from-port="3" to-layer="4" to-port="3" />
148
+ <edge from-layer="4" from-port="4" to-layer="5" to-port="0" />
149
+ <edge from-layer="4" from-port="5" to-layer="5" to-port="1" />
150
+ <edge from-layer="4" from-port="6" to-layer="5" to-port="2" />
151
+ <edge from-layer="4" from-port="7" to-layer="5" to-port="3" />
152
+ <edge from-layer="4" from-port="8" to-layer="6" to-port="2" />
153
+ <edge from-layer="5" from-port="4" to-layer="6" to-port="0" />
154
+ <edge from-layer="5" from-port="5" to-layer="6" to-port="1" />
155
+ <edge from-layer="6" from-port="3" to-layer="7" to-port="0" />
156
+ </edges>
157
+ <rt_info>
158
+ <add_attention_mask value="True" />
159
+ <add_prefix_space />
160
+ <add_special_tokens value="True" />
161
+ <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 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 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;" />
162
+ <clean_up_tokenization_spaces />
163
+ <detokenizer_input_type value="i64" />
164
+ <eos_token_id value="151643" />
165
+ <handle_special_tokens_with_re />
166
+ <number_of_inputs value="1" />
167
+ <openvino_tokenizers_version value="2024.5.0.0" />
168
+ <openvino_version value="2024.5.0" />
169
+ <original_tokenizer_class value="&lt;class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>" />
170
+ <pad_token_id value="151643" />
171
+ <sentencepiece_version value="0.2.0" />
172
+ <skip_special_tokens value="True" />
173
+ <streaming_detokenizer value="False" />
174
+ <tokenizer_output_type value="i64" />
175
+ <tokenizers_version value="0.20.3" />
176
+ <transformers_version value="4.46.3" />
177
+ <use_max_padding value="False" />
178
+ <use_sentencepiece_backend value="False" />
179
+ <utf8_replace_mode />
180
+ <with_detokenizer value="True" />
181
+ </rt_info>
182
+ </net>
openvino_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e84ad3de2802312a5c4412ca9c1549722187778460094db6a6d9942954f39419
3
+ size 495560728
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:ee854f453cf857950d8c739030eeeddbc2960ce7c2462005485766d61d05b173
3
+ size 3770816
openvino_tokenizer.xml ADDED
@@ -0,0 +1,735 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <net name="tokenizer" version="11">
3
+ <layers>
4
+ <layer id="0" name="Parameter_56839" type="Parameter" version="opset1">
5
+ <data shape="?" element_type="string" />
6
+ <output>
7
+ <port id="0" precision="STRING" names="Parameter_56839">
8
+ <dim>-1</dim>
9
+ </port>
10
+ </output>
11
+ </layer>
12
+ <layer id="1" name="Constant_56845" type="Const" version="opset1">
13
+ <data element_type="i64" shape="" offset="0" size="8" />
14
+ <output>
15
+ <port id="0" precision="I64" />
16
+ </output>
17
+ </layer>
18
+ <layer id="2" name="StringTensorUnpack_56840" 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="ShapeOf_56841" type="ShapeOf" version="opset3">
38
+ <data output_type="i64" />
39
+ <input>
40
+ <port id="0" precision="I32">
41
+ <dim>-1</dim>
42
+ </port>
43
+ </input>
44
+ <output>
45
+ <port id="1" precision="I64">
46
+ <dim>1</dim>
47
+ </port>
48
+ </output>
49
+ </layer>
50
+ <layer id="4" name="Constant_56842" type="Const" version="opset1">
51
+ <data element_type="i64" shape="" offset="0" size="8" />
52
+ <output>
53
+ <port id="0" precision="I64" />
54
+ </output>
55
+ </layer>
56
+ <layer id="5" name="Constant_56843" type="Const" version="opset1">
57
+ <data element_type="i64" shape="" offset="0" size="8" />
58
+ <output>
59
+ <port id="0" precision="I64" />
60
+ </output>
61
+ </layer>
62
+ <layer id="6" name="Gather_56844" type="Gather" version="opset8">
63
+ <data batch_dims="0" />
64
+ <input>
65
+ <port id="0" precision="I64">
66
+ <dim>1</dim>
67
+ </port>
68
+ <port id="1" precision="I64" />
69
+ <port id="2" precision="I64" />
70
+ </input>
71
+ <output>
72
+ <port id="3" precision="I64" />
73
+ </output>
74
+ </layer>
75
+ <layer id="7" name="Constant_56846" type="Const" version="opset1">
76
+ <data element_type="i64" shape="" offset="8" size="8" />
77
+ <output>
78
+ <port id="0" precision="I64" />
79
+ </output>
80
+ </layer>
81
+ <layer id="8" name="Range_56847" type="Range" version="opset4">
82
+ <data output_type="i32" />
83
+ <input>
84
+ <port id="0" precision="I64" />
85
+ <port id="1" precision="I64" />
86
+ <port id="2" precision="I64" />
87
+ </input>
88
+ <output>
89
+ <port id="3" precision="I32">
90
+ <dim>-1</dim>
91
+ </port>
92
+ </output>
93
+ </layer>
94
+ <layer id="9" name="Constant_56848" type="Const" version="opset1">
95
+ <data element_type="i64" shape="" offset="8" size="8" />
96
+ <output>
97
+ <port id="0" precision="I64" />
98
+ </output>
99
+ </layer>
100
+ <layer id="10" name="Constant_56849" type="Const" version="opset1">
101
+ <data element_type="i64" shape="" offset="8" size="8" />
102
+ <output>
103
+ <port id="0" precision="I64" />
104
+ </output>
105
+ </layer>
106
+ <layer id="11" name="Add_56850" type="Add" version="opset1">
107
+ <data auto_broadcast="numpy" />
108
+ <input>
109
+ <port id="0" precision="I64" />
110
+ <port id="1" precision="I64" />
111
+ </input>
112
+ <output>
113
+ <port id="2" precision="I64" />
114
+ </output>
115
+ </layer>
116
+ <layer id="12" name="Constant_56851" type="Const" version="opset1">
117
+ <data element_type="i64" shape="" offset="8" size="8" />
118
+ <output>
119
+ <port id="0" precision="I64" />
120
+ </output>
121
+ </layer>
122
+ <layer id="13" name="Range_56852" type="Range" version="opset4">
123
+ <data output_type="i32" />
124
+ <input>
125
+ <port id="0" precision="I64" />
126
+ <port id="1" precision="I64" />
127
+ <port id="2" precision="I64" />
128
+ </input>
129
+ <output>
130
+ <port id="3" precision="I32">
131
+ <dim>-1</dim>
132
+ </port>
133
+ </output>
134
+ </layer>
135
+ <layer id="14" name="Constant_56914" type="Const" version="opset1">
136
+ <data element_type="u8" shape="444" offset="16" size="444" />
137
+ <output>
138
+ <port id="0" precision="U8">
139
+ <dim>444</dim>
140
+ </port>
141
+ </output>
142
+ </layer>
143
+ <layer id="15" name="SpecialTokensSplit_56915" type="SpecialTokensSplit" version="extension">
144
+ <input>
145
+ <port id="0" precision="I32">
146
+ <dim>-1</dim>
147
+ </port>
148
+ <port id="1" precision="I32">
149
+ <dim>-1</dim>
150
+ </port>
151
+ <port id="2" precision="I32">
152
+ <dim>-1</dim>
153
+ </port>
154
+ <port id="3" precision="I32">
155
+ <dim>-1</dim>
156
+ </port>
157
+ <port id="4" precision="U8">
158
+ <dim>-1</dim>
159
+ </port>
160
+ <port id="5" precision="U8">
161
+ <dim>444</dim>
162
+ </port>
163
+ </input>
164
+ <output>
165
+ <port id="6" precision="I32">
166
+ <dim>-1</dim>
167
+ </port>
168
+ <port id="7" precision="I32">
169
+ <dim>-1</dim>
170
+ </port>
171
+ <port id="8" precision="I32">
172
+ <dim>-1</dim>
173
+ </port>
174
+ <port id="9" precision="I32">
175
+ <dim>-1</dim>
176
+ </port>
177
+ <port id="10" precision="U8">
178
+ <dim>-1</dim>
179
+ </port>
180
+ <port id="11" precision="BOOL">
181
+ <dim>-1</dim>
182
+ </port>
183
+ </output>
184
+ </layer>
185
+ <layer id="16" name="NormalizeUnicode_56916" type="NormalizeUnicode" version="extension">
186
+ <data normalization_form="NFC" />
187
+ <input>
188
+ <port id="0" precision="I32">
189
+ <dim>-1</dim>
190
+ </port>
191
+ <port id="1" precision="I32">
192
+ <dim>-1</dim>
193
+ </port>
194
+ <port id="2" precision="U8">
195
+ <dim>-1</dim>
196
+ </port>
197
+ <port id="3" precision="BOOL">
198
+ <dim>-1</dim>
199
+ </port>
200
+ </input>
201
+ <output>
202
+ <port id="4" precision="I32">
203
+ <dim>-1</dim>
204
+ </port>
205
+ <port id="5" precision="I32">
206
+ <dim>-1</dim>
207
+ </port>
208
+ <port id="6" precision="U8">
209
+ <dim>-1</dim>
210
+ </port>
211
+ <port id="7" precision="BOOL">
212
+ <dim>-1</dim>
213
+ </port>
214
+ </output>
215
+ </layer>
216
+ <layer id="17" name="Constant_56918" type="Const" version="opset1">
217
+ <data element_type="u8" shape="110" offset="460" size="110" />
218
+ <output>
219
+ <port id="0" precision="U8">
220
+ <dim>110</dim>
221
+ </port>
222
+ </output>
223
+ </layer>
224
+ <layer id="18" name="RegexSplit_56919" type="RegexSplit" version="extension">
225
+ <data behaviour="isolate" invert="false" max_splits="-1" />
226
+ <input>
227
+ <port id="0" precision="I32">
228
+ <dim>-1</dim>
229
+ </port>
230
+ <port id="1" precision="I32">
231
+ <dim>-1</dim>
232
+ </port>
233
+ <port id="2" precision="I32">
234
+ <dim>-1</dim>
235
+ </port>
236
+ <port id="3" precision="I32">
237
+ <dim>-1</dim>
238
+ </port>
239
+ <port id="4" precision="U8">
240
+ <dim>-1</dim>
241
+ </port>
242
+ <port id="5" precision="BOOL">
243
+ <dim>-1</dim>
244
+ </port>
245
+ <port id="6" precision="U8">
246
+ <dim>110</dim>
247
+ </port>
248
+ </input>
249
+ <output>
250
+ <port id="7" precision="I32">
251
+ <dim>-1</dim>
252
+ </port>
253
+ <port id="8" precision="I32">
254
+ <dim>-1</dim>
255
+ </port>
256
+ <port id="9" precision="I32">
257
+ <dim>-1</dim>
258
+ </port>
259
+ <port id="10" precision="I32">
260
+ <dim>-1</dim>
261
+ </port>
262
+ <port id="11" precision="U8">
263
+ <dim>-1</dim>
264
+ </port>
265
+ <port id="12" precision="BOOL">
266
+ <dim>-1</dim>
267
+ </port>
268
+ </output>
269
+ </layer>
270
+ <layer id="19" name="Constant_56921" type="Const" version="opset1">
271
+ <data element_type="u8" shape="1582931" offset="570" size="1582931" />
272
+ <output>
273
+ <port id="0" precision="U8">
274
+ <dim>1582931</dim>
275
+ </port>
276
+ </output>
277
+ </layer>
278
+ <layer id="20" name="StringTensorUnpack_56922" type="StringTensorUnpack" version="extension">
279
+ <data mode="begins_ends" />
280
+ <input>
281
+ <port id="0" precision="U8">
282
+ <dim>1582931</dim>
283
+ </port>
284
+ </input>
285
+ <output>
286
+ <port id="1" precision="I32">
287
+ <dim>-1</dim>
288
+ </port>
289
+ <port id="2" precision="I32">
290
+ <dim>-1</dim>
291
+ </port>
292
+ <port id="3" precision="U8">
293
+ <dim>-1</dim>
294
+ </port>
295
+ </output>
296
+ </layer>
297
+ <layer id="21" name="Constant_56927" type="Const" version="opset1">
298
+ <data element_type="u8" shape="1096915" offset="1583501" size="1096915" />
299
+ <output>
300
+ <port id="0" precision="U8">
301
+ <dim>1096915</dim>
302
+ </port>
303
+ </output>
304
+ </layer>
305
+ <layer id="22" name="StringTensorUnpack_56928" type="StringTensorUnpack" version="extension">
306
+ <data mode="begins_ends" />
307
+ <input>
308
+ <port id="0" precision="U8">
309
+ <dim>1096915</dim>
310
+ </port>
311
+ </input>
312
+ <output>
313
+ <port id="1" precision="I32">
314
+ <dim>-1</dim>
315
+ </port>
316
+ <port id="2" precision="I32">
317
+ <dim>-1</dim>
318
+ </port>
319
+ <port id="3" precision="U8">
320
+ <dim>-1</dim>
321
+ </port>
322
+ </output>
323
+ </layer>
324
+ <layer id="23" name="Constant_56930" type="Const" version="opset1">
325
+ <data element_type="u8" shape="1089910" offset="2680416" size="1089910" />
326
+ <output>
327
+ <port id="0" precision="U8">
328
+ <dim>1089910</dim>
329
+ </port>
330
+ </output>
331
+ </layer>
332
+ <layer id="24" name="StringTensorUnpack_56931" type="StringTensorUnpack" version="extension">
333
+ <data mode="begins_ends" />
334
+ <input>
335
+ <port id="0" precision="U8">
336
+ <dim>1089910</dim>
337
+ </port>
338
+ </input>
339
+ <output>
340
+ <port id="1" precision="I32">
341
+ <dim>-1</dim>
342
+ </port>
343
+ <port id="2" precision="I32">
344
+ <dim>-1</dim>
345
+ </port>
346
+ <port id="3" precision="U8">
347
+ <dim>-1</dim>
348
+ </port>
349
+ </output>
350
+ </layer>
351
+ <layer id="25" name="Constant_56924" type="Const" version="opset1">
352
+ <data element_type="u8" shape="390" offset="3770326" size="390" />
353
+ <output>
354
+ <port id="0" precision="U8">
355
+ <dim>390</dim>
356
+ </port>
357
+ </output>
358
+ </layer>
359
+ <layer id="26" name="StringTensorUnpack_56925" type="StringTensorUnpack" version="extension">
360
+ <data mode="begins_ends" />
361
+ <input>
362
+ <port id="0" precision="U8">
363
+ <dim>390</dim>
364
+ </port>
365
+ </input>
366
+ <output>
367
+ <port id="1" precision="I32">
368
+ <dim>-1</dim>
369
+ </port>
370
+ <port id="2" precision="I32">
371
+ <dim>-1</dim>
372
+ </port>
373
+ <port id="3" precision="U8">
374
+ <dim>-1</dim>
375
+ </port>
376
+ </output>
377
+ </layer>
378
+ <layer id="27" name="Constant_56932" type="Const" version="opset1">
379
+ <data element_type="i32" shape="22" offset="3770716" size="88" />
380
+ <output>
381
+ <port id="0" precision="I32">
382
+ <dim>22</dim>
383
+ </port>
384
+ </output>
385
+ </layer>
386
+ <layer id="28" name="BPETokenizer_56933" type="BPETokenizer" version="extension">
387
+ <data unk_token="" fuse_unk="false" suffix_indicator="" end_suffix="" byte_fallback="false" cache_capacity="30328" />
388
+ <input>
389
+ <port id="0" precision="I32">
390
+ <dim>-1</dim>
391
+ </port>
392
+ <port id="1" precision="I32">
393
+ <dim>-1</dim>
394
+ </port>
395
+ <port id="2" precision="I32">
396
+ <dim>-1</dim>
397
+ </port>
398
+ <port id="3" precision="I32">
399
+ <dim>-1</dim>
400
+ </port>
401
+ <port id="4" precision="U8">
402
+ <dim>-1</dim>
403
+ </port>
404
+ <port id="5" precision="I32">
405
+ <dim>-1</dim>
406
+ </port>
407
+ <port id="6" precision="I32">
408
+ <dim>-1</dim>
409
+ </port>
410
+ <port id="7" precision="U8">
411
+ <dim>-1</dim>
412
+ </port>
413
+ <port id="8" precision="I32">
414
+ <dim>-1</dim>
415
+ </port>
416
+ <port id="9" precision="I32">
417
+ <dim>-1</dim>
418
+ </port>
419
+ <port id="10" precision="U8">
420
+ <dim>-1</dim>
421
+ </port>
422
+ <port id="11" precision="I32">
423
+ <dim>-1</dim>
424
+ </port>
425
+ <port id="12" precision="I32">
426
+ <dim>-1</dim>
427
+ </port>
428
+ <port id="13" precision="U8">
429
+ <dim>-1</dim>
430
+ </port>
431
+ <port id="14" precision="I32">
432
+ <dim>-1</dim>
433
+ </port>
434
+ <port id="15" precision="I32">
435
+ <dim>-1</dim>
436
+ </port>
437
+ <port id="16" precision="U8">
438
+ <dim>-1</dim>
439
+ </port>
440
+ <port id="17" precision="I32">
441
+ <dim>22</dim>
442
+ </port>
443
+ </input>
444
+ <output>
445
+ <port id="18" precision="I32">
446
+ <dim>-1</dim>
447
+ </port>
448
+ <port id="19" precision="I32">
449
+ <dim>-1</dim>
450
+ </port>
451
+ <port id="20" precision="I32">
452
+ <dim>-1</dim>
453
+ </port>
454
+ </output>
455
+ </layer>
456
+ <layer id="29" name="Subtract_56934" type="Subtract" version="opset1">
457
+ <data auto_broadcast="numpy" />
458
+ <input>
459
+ <port id="0" precision="I32">
460
+ <dim>-1</dim>
461
+ </port>
462
+ <port id="1" precision="I32">
463
+ <dim>-1</dim>
464
+ </port>
465
+ </input>
466
+ <output>
467
+ <port id="2" precision="I32">
468
+ <dim>-1</dim>
469
+ </port>
470
+ </output>
471
+ </layer>
472
+ <layer id="30" name="Constant_56935" type="Const" version="opset1">
473
+ <data element_type="i32" shape="" offset="3770804" size="4" />
474
+ <output>
475
+ <port id="0" precision="I32" />
476
+ </output>
477
+ </layer>
478
+ <layer id="31" name="Minimum_56936" type="Minimum" version="opset1">
479
+ <data auto_broadcast="numpy" />
480
+ <input>
481
+ <port id="0" precision="I32">
482
+ <dim>-1</dim>
483
+ </port>
484
+ <port id="1" precision="I32" />
485
+ </input>
486
+ <output>
487
+ <port id="2" precision="I32">
488
+ <dim>-1</dim>
489
+ </port>
490
+ </output>
491
+ </layer>
492
+ <layer id="32" name="Subtract_56937" type="Subtract" version="opset1">
493
+ <data auto_broadcast="numpy" />
494
+ <input>
495
+ <port id="0" precision="I32">
496
+ <dim>-1</dim>
497
+ </port>
498
+ <port id="1" precision="I32">
499
+ <dim>-1</dim>
500
+ </port>
501
+ </input>
502
+ <output>
503
+ <port id="2" precision="I32">
504
+ <dim>-1</dim>
505
+ </port>
506
+ </output>
507
+ </layer>
508
+ <layer id="33" name="Subtract_56938" type="Subtract" version="opset1">
509
+ <data auto_broadcast="numpy" />
510
+ <input>
511
+ <port id="0" precision="I32">
512
+ <dim>-1</dim>
513
+ </port>
514
+ <port id="1" precision="I32">
515
+ <dim>-1</dim>
516
+ </port>
517
+ </input>
518
+ <output>
519
+ <port id="2" precision="I32">
520
+ <dim>-1</dim>
521
+ </port>
522
+ </output>
523
+ </layer>
524
+ <layer id="34" name="Constant_56939" type="Const" version="opset1">
525
+ <data element_type="i32" shape="" offset="3770808" size="4" />
526
+ <output>
527
+ <port id="0" precision="I32" />
528
+ </output>
529
+ </layer>
530
+ <layer id="35" name="ReduceMax_56940" type="ReduceMax" version="opset1">
531
+ <data keep_dims="false" />
532
+ <input>
533
+ <port id="0" precision="I32">
534
+ <dim>-1</dim>
535
+ </port>
536
+ <port id="1" precision="I32" />
537
+ </input>
538
+ <output>
539
+ <port id="2" precision="I32" />
540
+ </output>
541
+ </layer>
542
+ <layer id="36" name="Constant_56941" type="Const" version="opset1">
543
+ <data element_type="i32" shape="" offset="3770812" size="4" />
544
+ <output>
545
+ <port id="0" precision="I32" />
546
+ </output>
547
+ </layer>
548
+ <layer id="37" name="RaggedToDense_56942" type="RaggedToDense" version="extension">
549
+ <data pad_right="false" />
550
+ <input>
551
+ <port id="0" precision="I32">
552
+ <dim>-1</dim>
553
+ </port>
554
+ <port id="1" precision="I32">
555
+ <dim>-1</dim>
556
+ </port>
557
+ <port id="2" precision="I32">
558
+ <dim>-1</dim>
559
+ </port>
560
+ <port id="3" precision="I32" />
561
+ <port id="4" precision="I32" />
562
+ </input>
563
+ <output>
564
+ <port id="5" precision="I32">
565
+ <dim>-1</dim>
566
+ <dim>-1</dim>
567
+ </port>
568
+ <port id="6" precision="BOOL">
569
+ <dim>-1</dim>
570
+ <dim>-1</dim>
571
+ </port>
572
+ </output>
573
+ </layer>
574
+ <layer id="38" name="Convert_56943" type="Convert" version="opset1">
575
+ <data destination_type="i32" />
576
+ <input>
577
+ <port id="0" precision="BOOL">
578
+ <dim>-1</dim>
579
+ <dim>-1</dim>
580
+ </port>
581
+ </input>
582
+ <output>
583
+ <port id="1" precision="I32">
584
+ <dim>-1</dim>
585
+ <dim>-1</dim>
586
+ </port>
587
+ </output>
588
+ </layer>
589
+ <layer id="39" name="Convert_56943" type="Convert" version="opset1">
590
+ <data destination_type="i64" />
591
+ <input>
592
+ <port id="0" precision="I32">
593
+ <dim>-1</dim>
594
+ <dim>-1</dim>
595
+ </port>
596
+ </input>
597
+ <output>
598
+ <port id="1" precision="I64" names="attention_mask">
599
+ <dim>-1</dim>
600
+ <dim>-1</dim>
601
+ </port>
602
+ </output>
603
+ </layer>
604
+ <layer id="41" name="RaggedToDense_56942.0" type="Convert" version="opset1">
605
+ <data destination_type="i64" />
606
+ <input>
607
+ <port id="0" precision="I32">
608
+ <dim>-1</dim>
609
+ <dim>-1</dim>
610
+ </port>
611
+ </input>
612
+ <output>
613
+ <port id="1" precision="I64" names="input_ids">
614
+ <dim>-1</dim>
615
+ <dim>-1</dim>
616
+ </port>
617
+ </output>
618
+ </layer>
619
+ <layer id="42" name="Result_56944" type="Result" version="opset1">
620
+ <input>
621
+ <port id="0" precision="I64">
622
+ <dim>-1</dim>
623
+ <dim>-1</dim>
624
+ </port>
625
+ </input>
626
+ </layer>
627
+ <layer id="40" name="Result_56945" type="Result" version="opset1">
628
+ <input>
629
+ <port id="0" precision="I64">
630
+ <dim>-1</dim>
631
+ <dim>-1</dim>
632
+ </port>
633
+ </input>
634
+ </layer>
635
+ </layers>
636
+ <edges>
637
+ <edge from-layer="0" from-port="0" to-layer="2" to-port="0" />
638
+ <edge from-layer="1" from-port="0" to-layer="8" to-port="0" />
639
+ <edge from-layer="2" from-port="1" to-layer="3" to-port="0" />
640
+ <edge from-layer="2" from-port="1" to-layer="15" to-port="2" />
641
+ <edge from-layer="2" from-port="2" to-layer="15" to-port="3" />
642
+ <edge from-layer="2" from-port="3" to-layer="15" to-port="4" />
643
+ <edge from-layer="3" from-port="1" to-layer="6" to-port="0" />
644
+ <edge from-layer="4" from-port="0" to-layer="6" to-port="1" />
645
+ <edge from-layer="5" from-port="0" to-layer="6" to-port="2" />
646
+ <edge from-layer="6" from-port="3" to-layer="8" to-port="1" />
647
+ <edge from-layer="6" from-port="3" to-layer="11" to-port="0" />
648
+ <edge from-layer="7" from-port="0" to-layer="8" to-port="2" />
649
+ <edge from-layer="8" from-port="3" to-layer="15" to-port="0" />
650
+ <edge from-layer="9" from-port="0" to-layer="13" to-port="0" />
651
+ <edge from-layer="10" from-port="0" to-layer="11" to-port="1" />
652
+ <edge from-layer="11" from-port="2" to-layer="13" to-port="1" />
653
+ <edge from-layer="12" from-port="0" to-layer="13" to-port="2" />
654
+ <edge from-layer="13" from-port="3" to-layer="15" to-port="1" />
655
+ <edge from-layer="14" from-port="0" to-layer="15" to-port="5" />
656
+ <edge from-layer="15" from-port="8" to-layer="16" to-port="0" />
657
+ <edge from-layer="15" from-port="9" to-layer="16" to-port="1" />
658
+ <edge from-layer="15" from-port="10" to-layer="16" to-port="2" />
659
+ <edge from-layer="15" from-port="11" to-layer="16" to-port="3" />
660
+ <edge from-layer="15" from-port="6" to-layer="18" to-port="0" />
661
+ <edge from-layer="15" from-port="7" to-layer="18" to-port="1" />
662
+ <edge from-layer="16" from-port="4" to-layer="18" to-port="2" />
663
+ <edge from-layer="16" from-port="5" to-layer="18" to-port="3" />
664
+ <edge from-layer="16" from-port="6" to-layer="18" to-port="4" />
665
+ <edge from-layer="16" from-port="7" to-layer="18" to-port="5" />
666
+ <edge from-layer="17" from-port="0" to-layer="18" to-port="6" />
667
+ <edge from-layer="18" from-port="8" to-layer="28" to-port="1" />
668
+ <edge from-layer="18" from-port="9" to-layer="28" to-port="2" />
669
+ <edge from-layer="18" from-port="10" to-layer="28" to-port="3" />
670
+ <edge from-layer="18" from-port="11" to-layer="28" to-port="4" />
671
+ <edge from-layer="18" from-port="7" to-layer="28" to-port="0" />
672
+ <edge from-layer="19" from-port="0" to-layer="20" to-port="0" />
673
+ <edge from-layer="20" from-port="1" to-layer="28" to-port="5" />
674
+ <edge from-layer="20" from-port="2" to-layer="28" to-port="6" />
675
+ <edge from-layer="20" from-port="3" to-layer="28" to-port="7" />
676
+ <edge from-layer="21" from-port="0" to-layer="22" to-port="0" />
677
+ <edge from-layer="22" from-port="1" to-layer="28" to-port="8" />
678
+ <edge from-layer="22" from-port="2" to-layer="28" to-port="9" />
679
+ <edge from-layer="22" from-port="3" to-layer="28" to-port="10" />
680
+ <edge from-layer="23" from-port="0" to-layer="24" to-port="0" />
681
+ <edge from-layer="24" from-port="1" to-layer="28" to-port="11" />
682
+ <edge from-layer="24" from-port="2" to-layer="28" to-port="12" />
683
+ <edge from-layer="24" from-port="3" to-layer="28" to-port="13" />
684
+ <edge from-layer="25" from-port="0" to-layer="26" to-port="0" />
685
+ <edge from-layer="26" from-port="1" to-layer="28" to-port="14" />
686
+ <edge from-layer="26" from-port="2" to-layer="28" to-port="15" />
687
+ <edge from-layer="26" from-port="3" to-layer="28" to-port="16" />
688
+ <edge from-layer="27" from-port="0" to-layer="28" to-port="17" />
689
+ <edge from-layer="28" from-port="19" to-layer="29" to-port="0" />
690
+ <edge from-layer="28" from-port="18" to-layer="29" to-port="1" />
691
+ <edge from-layer="28" from-port="19" to-layer="32" to-port="0" />
692
+ <edge from-layer="28" from-port="19" to-layer="33" to-port="0" />
693
+ <edge from-layer="28" from-port="19" to-layer="37" to-port="1" />
694
+ <edge from-layer="28" from-port="20" to-layer="37" to-port="2" />
695
+ <edge from-layer="29" from-port="2" to-layer="31" to-port="0" />
696
+ <edge from-layer="30" from-port="0" to-layer="31" to-port="1" />
697
+ <edge from-layer="31" from-port="2" to-layer="32" to-port="1" />
698
+ <edge from-layer="32" from-port="2" to-layer="33" to-port="1" />
699
+ <edge from-layer="32" from-port="2" to-layer="37" to-port="0" />
700
+ <edge from-layer="33" from-port="2" to-layer="35" to-port="0" />
701
+ <edge from-layer="34" from-port="0" to-layer="35" to-port="1" />
702
+ <edge from-layer="35" from-port="2" to-layer="37" to-port="3" />
703
+ <edge from-layer="36" from-port="0" to-layer="37" to-port="4" />
704
+ <edge from-layer="37" from-port="6" to-layer="38" to-port="0" />
705
+ <edge from-layer="37" from-port="5" to-layer="41" to-port="0" />
706
+ <edge from-layer="38" from-port="1" to-layer="39" to-port="0" />
707
+ <edge from-layer="39" from-port="1" to-layer="40" to-port="0" />
708
+ <edge from-layer="41" from-port="1" to-layer="42" to-port="0" />
709
+ </edges>
710
+ <rt_info>
711
+ <add_attention_mask value="True" />
712
+ <add_prefix_space />
713
+ <add_special_tokens value="True" />
714
+ <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 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 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;" />
715
+ <clean_up_tokenization_spaces />
716
+ <detokenizer_input_type value="i64" />
717
+ <eos_token_id value="151643" />
718
+ <handle_special_tokens_with_re />
719
+ <number_of_inputs value="1" />
720
+ <openvino_tokenizers_version value="2024.5.0.0" />
721
+ <openvino_version value="2024.5.0" />
722
+ <original_tokenizer_class value="&lt;class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>" />
723
+ <pad_token_id value="151643" />
724
+ <sentencepiece_version value="0.2.0" />
725
+ <skip_special_tokens value="True" />
726
+ <streaming_detokenizer value="False" />
727
+ <tokenizer_output_type value="i64" />
728
+ <tokenizers_version value="0.20.3" />
729
+ <transformers_version value="4.46.3" />
730
+ <use_max_padding value="False" />
731
+ <use_sentencepiece_backend value="False" />
732
+ <utf8_replace_mode />
733
+ <with_detokenizer value="True" />
734
+ </rt_info>
735
+ </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": "<|endoftext|>",
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
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15706fc8309d8e7119027503bd135bbb216b283f2d6d2e6efeaf5871d88f650e
3
+ size 11421995
tokenizer_config.json ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
199
+ "clean_up_tokenization_spaces": false,
200
+ "eos_token": "<|endoftext|>",
201
+ "errors": "replace",
202
+ "max_length": 2500,
203
+ "model_max_length": 131072,
204
+ "pad_token": "<|endoftext|>",
205
+ "padding_side": "left",
206
+ "split_special_tokens": false,
207
+ "stride": 0,
208
+ "tokenizer_class": "Qwen2Tokenizer",
209
+ "truncation_side": "right",
210
+ "truncation_strategy": "longest_first",
211
+ "unk_token": null
212
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff