Upload 12 files
Browse files- config.json +27 -0
- generation_config.json +6 -0
- openvino_config.json +28 -0
- openvino_detokenizer.bin +3 -0
- openvino_detokenizer.xml +341 -0
- openvino_model.xml +0 -0
- openvino_tokenizer.bin +3 -0
- openvino_tokenizer.xml +833 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
|
3 |
+
"architectures": [
|
4 |
+
"MistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"head_dim": 128,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 4096,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 14336,
|
14 |
+
"max_position_embeddings": 32768,
|
15 |
+
"model_type": "mistral",
|
16 |
+
"num_attention_heads": 32,
|
17 |
+
"num_hidden_layers": 32,
|
18 |
+
"num_key_value_heads": 8,
|
19 |
+
"rms_norm_eps": 1e-05,
|
20 |
+
"rope_theta": 1000000.0,
|
21 |
+
"sliding_window": null,
|
22 |
+
"tie_word_embeddings": false,
|
23 |
+
"torch_dtype": "bfloat16",
|
24 |
+
"transformers_version": "4.48.3",
|
25 |
+
"use_cache": true,
|
26 |
+
"vocab_size": 32768
|
27 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.48.3"
|
6 |
+
}
|
openvino_config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"compression": null,
|
3 |
+
"dtype": "int4",
|
4 |
+
"input_info": null,
|
5 |
+
"optimum_version": "1.24.0",
|
6 |
+
"quantization_config": {
|
7 |
+
"all_layers": null,
|
8 |
+
"backup_precision": null,
|
9 |
+
"bits": 4,
|
10 |
+
"dataset": "wikitext2",
|
11 |
+
"gptq": null,
|
12 |
+
"group_size": -1,
|
13 |
+
"ignored_scope": null,
|
14 |
+
"lora_correction": null,
|
15 |
+
"num_samples": null,
|
16 |
+
"processor": null,
|
17 |
+
"quant_method": "awq",
|
18 |
+
"ratio": 1.0,
|
19 |
+
"scale_estimation": true,
|
20 |
+
"sensitivity_metric": null,
|
21 |
+
"sym": true,
|
22 |
+
"tokenizer": null,
|
23 |
+
"trust_remote_code": false,
|
24 |
+
"weight_format": "int4"
|
25 |
+
},
|
26 |
+
"save_onnx_model": false,
|
27 |
+
"transformers_version": "4.48.3"
|
28 |
+
}
|
openvino_detokenizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7eb0aa200cd0bd4ed507a65d57e525877d182beecd3342e7a0ae1226160ddc8b
|
3 |
+
size 345645
|
openvino_detokenizer.xml
ADDED
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<net name="detokenizer" version="11">
|
3 |
+
<layers>
|
4 |
+
<layer id="0" name="Parameter_1104574" type="Parameter" version="opset1">
|
5 |
+
<data shape="?,?" element_type="i64" />
|
6 |
+
<output>
|
7 |
+
<port id="0" precision="I64" names="Parameter_1104574">
|
8 |
+
<dim>-1</dim>
|
9 |
+
<dim>-1</dim>
|
10 |
+
</port>
|
11 |
+
</output>
|
12 |
+
</layer>
|
13 |
+
<layer id="1" name="Convert_1104597" 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_1104541" type="Const" version="opset1">
|
29 |
+
<data element_type="u8" shape="345638" offset="0" size="345638" />
|
30 |
+
<output>
|
31 |
+
<port id="0" precision="U8">
|
32 |
+
<dim>345638</dim>
|
33 |
+
</port>
|
34 |
+
</output>
|
35 |
+
</layer>
|
36 |
+
<layer id="3" name="StringTensorUnpack_1104542" type="StringTensorUnpack" version="extension">
|
37 |
+
<data mode="begins_ends" />
|
38 |
+
<input>
|
39 |
+
<port id="0" precision="U8">
|
40 |
+
<dim>345638</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_1104575" type="VocabDecoder" version="extension">
|
56 |
+
<data skip_tokens="0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770" />
|
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="Constant_1104577" type="Const" version="opset1">
|
91 |
+
<data element_type="u8" shape="3" offset="345638" size="3" />
|
92 |
+
<output>
|
93 |
+
<port id="0" precision="U8">
|
94 |
+
<dim>3</dim>
|
95 |
+
</port>
|
96 |
+
</output>
|
97 |
+
</layer>
|
98 |
+
<layer id="6" name="Constant_1104579" type="Const" version="opset1">
|
99 |
+
<data element_type="u8" shape="1" offset="345641" size="1" />
|
100 |
+
<output>
|
101 |
+
<port id="0" precision="U8">
|
102 |
+
<dim>1</dim>
|
103 |
+
</port>
|
104 |
+
</output>
|
105 |
+
</layer>
|
106 |
+
<layer id="7" name="RegexNormalization_1104580" type="RegexNormalization" version="extension">
|
107 |
+
<data global_replace="true" />
|
108 |
+
<input>
|
109 |
+
<port id="0" precision="I32">
|
110 |
+
<dim>-1</dim>
|
111 |
+
</port>
|
112 |
+
<port id="1" precision="I32">
|
113 |
+
<dim>-1</dim>
|
114 |
+
</port>
|
115 |
+
<port id="2" precision="U8">
|
116 |
+
<dim>-1</dim>
|
117 |
+
</port>
|
118 |
+
<port id="3" precision="U8">
|
119 |
+
<dim>3</dim>
|
120 |
+
</port>
|
121 |
+
<port id="4" precision="U8">
|
122 |
+
<dim>1</dim>
|
123 |
+
</port>
|
124 |
+
</input>
|
125 |
+
<output>
|
126 |
+
<port id="5" precision="I32">
|
127 |
+
<dim>-1</dim>
|
128 |
+
</port>
|
129 |
+
<port id="6" precision="I32">
|
130 |
+
<dim>-1</dim>
|
131 |
+
</port>
|
132 |
+
<port id="7" precision="U8">
|
133 |
+
<dim>-1</dim>
|
134 |
+
</port>
|
135 |
+
</output>
|
136 |
+
</layer>
|
137 |
+
<layer id="8" name="ByteFallback_1104581" type="ByteFallback" version="extension">
|
138 |
+
<input>
|
139 |
+
<port id="0" precision="I32">
|
140 |
+
<dim>-1</dim>
|
141 |
+
</port>
|
142 |
+
<port id="1" precision="I32">
|
143 |
+
<dim>-1</dim>
|
144 |
+
</port>
|
145 |
+
<port id="2" precision="U8">
|
146 |
+
<dim>-1</dim>
|
147 |
+
</port>
|
148 |
+
</input>
|
149 |
+
<output>
|
150 |
+
<port id="3" precision="I32">
|
151 |
+
<dim>-1</dim>
|
152 |
+
</port>
|
153 |
+
<port id="4" precision="I32">
|
154 |
+
<dim>-1</dim>
|
155 |
+
</port>
|
156 |
+
<port id="5" precision="U8">
|
157 |
+
<dim>-1</dim>
|
158 |
+
</port>
|
159 |
+
</output>
|
160 |
+
</layer>
|
161 |
+
<layer id="9" name="FuzeRagged_1104582" type="FuzeRagged" version="extension">
|
162 |
+
<input>
|
163 |
+
<port id="0" precision="I32">
|
164 |
+
<dim>-1</dim>
|
165 |
+
</port>
|
166 |
+
<port id="1" precision="I32">
|
167 |
+
<dim>-1</dim>
|
168 |
+
</port>
|
169 |
+
<port id="2" precision="I32">
|
170 |
+
<dim>-1</dim>
|
171 |
+
</port>
|
172 |
+
<port id="3" precision="I32">
|
173 |
+
<dim>-1</dim>
|
174 |
+
</port>
|
175 |
+
</input>
|
176 |
+
<output>
|
177 |
+
<port id="4" precision="I32">
|
178 |
+
<dim>-1</dim>
|
179 |
+
</port>
|
180 |
+
<port id="5" precision="I32">
|
181 |
+
<dim>-1</dim>
|
182 |
+
</port>
|
183 |
+
</output>
|
184 |
+
</layer>
|
185 |
+
<layer id="10" name="Constant_1104584" type="Const" version="opset1">
|
186 |
+
<data element_type="u8" shape="2" offset="345642" size="2" />
|
187 |
+
<output>
|
188 |
+
<port id="0" precision="U8">
|
189 |
+
<dim>2</dim>
|
190 |
+
</port>
|
191 |
+
</output>
|
192 |
+
</layer>
|
193 |
+
<layer id="11" name="Constant_1104586" type="Const" version="opset1">
|
194 |
+
<data element_type="u8" shape="0" offset="345644" size="1" />
|
195 |
+
<output>
|
196 |
+
<port id="0" precision="U8">
|
197 |
+
<dim>0</dim>
|
198 |
+
</port>
|
199 |
+
</output>
|
200 |
+
</layer>
|
201 |
+
<layer id="12" name="RegexNormalization_1104587" type="RegexNormalization" version="extension">
|
202 |
+
<data global_replace="true" />
|
203 |
+
<input>
|
204 |
+
<port id="0" precision="I32">
|
205 |
+
<dim>-1</dim>
|
206 |
+
</port>
|
207 |
+
<port id="1" precision="I32">
|
208 |
+
<dim>-1</dim>
|
209 |
+
</port>
|
210 |
+
<port id="2" precision="U8">
|
211 |
+
<dim>-1</dim>
|
212 |
+
</port>
|
213 |
+
<port id="3" precision="U8">
|
214 |
+
<dim>2</dim>
|
215 |
+
</port>
|
216 |
+
<port id="4" precision="U8">
|
217 |
+
<dim>0</dim>
|
218 |
+
</port>
|
219 |
+
</input>
|
220 |
+
<output>
|
221 |
+
<port id="5" precision="I32">
|
222 |
+
<dim>-1</dim>
|
223 |
+
</port>
|
224 |
+
<port id="6" precision="I32">
|
225 |
+
<dim>-1</dim>
|
226 |
+
</port>
|
227 |
+
<port id="7" precision="U8">
|
228 |
+
<dim>-1</dim>
|
229 |
+
</port>
|
230 |
+
</output>
|
231 |
+
</layer>
|
232 |
+
<layer id="13" name="UTF8Validate_1104588" type="UTF8Validate" version="extension">
|
233 |
+
<data replace_mode="true" />
|
234 |
+
<input>
|
235 |
+
<port id="0" precision="I32">
|
236 |
+
<dim>-1</dim>
|
237 |
+
</port>
|
238 |
+
<port id="1" precision="I32">
|
239 |
+
<dim>-1</dim>
|
240 |
+
</port>
|
241 |
+
<port id="2" precision="U8">
|
242 |
+
<dim>-1</dim>
|
243 |
+
</port>
|
244 |
+
</input>
|
245 |
+
<output>
|
246 |
+
<port id="3" precision="I32">
|
247 |
+
<dim>-1</dim>
|
248 |
+
</port>
|
249 |
+
<port id="4" precision="I32">
|
250 |
+
<dim>-1</dim>
|
251 |
+
</port>
|
252 |
+
<port id="5" precision="U8">
|
253 |
+
<dim>-1</dim>
|
254 |
+
</port>
|
255 |
+
</output>
|
256 |
+
</layer>
|
257 |
+
<layer id="14" name="StringTensorPack_1104589" type="StringTensorPack" version="extension">
|
258 |
+
<data mode="begins_ends" />
|
259 |
+
<input>
|
260 |
+
<port id="0" precision="I32">
|
261 |
+
<dim>-1</dim>
|
262 |
+
</port>
|
263 |
+
<port id="1" precision="I32">
|
264 |
+
<dim>-1</dim>
|
265 |
+
</port>
|
266 |
+
<port id="2" precision="U8">
|
267 |
+
<dim>-1</dim>
|
268 |
+
</port>
|
269 |
+
</input>
|
270 |
+
<output>
|
271 |
+
<port id="3" precision="STRING" names="string_output">
|
272 |
+
<dim>-1</dim>
|
273 |
+
</port>
|
274 |
+
</output>
|
275 |
+
</layer>
|
276 |
+
<layer id="15" name="Result_1104590" type="Result" version="opset1">
|
277 |
+
<input>
|
278 |
+
<port id="0" precision="STRING">
|
279 |
+
<dim>-1</dim>
|
280 |
+
</port>
|
281 |
+
</input>
|
282 |
+
</layer>
|
283 |
+
</layers>
|
284 |
+
<edges>
|
285 |
+
<edge from-layer="0" from-port="0" to-layer="1" to-port="0" />
|
286 |
+
<edge from-layer="1" from-port="1" to-layer="4" to-port="0" />
|
287 |
+
<edge from-layer="2" from-port="0" to-layer="3" to-port="0" />
|
288 |
+
<edge from-layer="3" from-port="1" to-layer="4" to-port="1" />
|
289 |
+
<edge from-layer="3" from-port="2" to-layer="4" to-port="2" />
|
290 |
+
<edge from-layer="3" from-port="3" to-layer="4" to-port="3" />
|
291 |
+
<edge from-layer="4" from-port="6" to-layer="7" to-port="0" />
|
292 |
+
<edge from-layer="4" from-port="7" to-layer="7" to-port="1" />
|
293 |
+
<edge from-layer="4" from-port="8" to-layer="7" to-port="2" />
|
294 |
+
<edge from-layer="4" from-port="4" to-layer="9" to-port="0" />
|
295 |
+
<edge from-layer="4" from-port="5" to-layer="9" to-port="1" />
|
296 |
+
<edge from-layer="5" from-port="0" to-layer="7" to-port="3" />
|
297 |
+
<edge from-layer="6" from-port="0" to-layer="7" to-port="4" />
|
298 |
+
<edge from-layer="7" from-port="5" to-layer="8" to-port="0" />
|
299 |
+
<edge from-layer="7" from-port="6" to-layer="8" to-port="1" />
|
300 |
+
<edge from-layer="7" from-port="7" to-layer="8" to-port="2" />
|
301 |
+
<edge from-layer="8" from-port="3" to-layer="9" to-port="2" />
|
302 |
+
<edge from-layer="8" from-port="4" to-layer="9" to-port="3" />
|
303 |
+
<edge from-layer="8" from-port="5" to-layer="12" to-port="2" />
|
304 |
+
<edge from-layer="9" from-port="4" to-layer="12" to-port="0" />
|
305 |
+
<edge from-layer="9" from-port="5" to-layer="12" to-port="1" />
|
306 |
+
<edge from-layer="10" from-port="0" to-layer="12" to-port="3" />
|
307 |
+
<edge from-layer="11" from-port="0" to-layer="12" to-port="4" />
|
308 |
+
<edge from-layer="12" from-port="5" to-layer="13" to-port="0" />
|
309 |
+
<edge from-layer="12" from-port="6" to-layer="13" to-port="1" />
|
310 |
+
<edge from-layer="12" from-port="7" to-layer="13" to-port="2" />
|
311 |
+
<edge from-layer="13" from-port="3" to-layer="14" to-port="0" />
|
312 |
+
<edge from-layer="13" from-port="4" to-layer="14" to-port="1" />
|
313 |
+
<edge from-layer="13" from-port="5" to-layer="14" to-port="2" />
|
314 |
+
<edge from-layer="14" from-port="3" to-layer="15" to-port="0" />
|
315 |
+
</edges>
|
316 |
+
<rt_info>
|
317 |
+
<add_attention_mask value="True" />
|
318 |
+
<add_prefix_space />
|
319 |
+
<add_special_tokens value="True" />
|
320 |
+
<bos_token_id value="1" />
|
321 |
+
<chat_template value="{%- if messages[0]["role"] == "system" %} {%- set system_message = messages[0]["content"] %} {%- set loop_messages = messages[1:] %} {%- else %} {%- set loop_messages = messages %} {%- endif %} {%- if not tools is defined %} {%- set tools = none %} {%- endif %} {%- set user_messages = loop_messages | selectattr("role", "equalto", "user") | list %} {#- This block checks for alternating user/assistant messages, skipping tool calling messages #} {%- set ns = namespace() %} {%- set ns.index = 0 %} {%- for message in loop_messages %} {%- if not (message.role == "tool" or message.role == "tool_results" or (message.tool_calls is defined and message.tool_calls is not none)) %} {%- if (message["role"] == "user") != (ns.index % 2 == 0) %} {{- raise_exception("After the optional system message, conversation roles must alternate user/assistant/user/assistant/...") }} {%- endif %} {%- set ns.index = ns.index + 1 %} {%- endif %} {%- endfor %} {{- bos_token }} {%- for message in loop_messages %} {%- if message["role"] == "user" %} {%- if tools is not none and (message == user_messages[-1]) %} {{- "[AVAILABLE_TOOLS] [" }} {%- for tool in tools %} {%- set tool = tool.function %} {{- '{"type": "function", "function": {' }} {%- for key, val in tool.items() if key != "return" %} {%- if val is string %} {{- '"' + key + '": "' + val + '"' }} {%- else %} {{- '"' + key + '": ' + val|tojson }} {%- endif %} {%- if not loop.last %} {{- ", " }} {%- endif %} {%- endfor %} {{- "}}" }} {%- if not loop.last %} {{- ", " }} {%- else %} {{- "]" }} {%- endif %} {%- endfor %} {{- "[/AVAILABLE_TOOLS]" }} {%- endif %} {%- if loop.last and system_message is defined %} {{- "[INST] " + system_message + "\n\n" + message["content"] + "[/INST]" }} {%- else %} {{- "[INST] " + message["content"] + "[/INST]" }} {%- endif %} {%- elif message.tool_calls is defined and message.tool_calls is not none %} {{- "[TOOL_CALLS] [" }} {%- for tool_call in message.tool_calls %} {%- set out = tool_call.function|tojson %} {{- out[:-1] }} {%- if not tool_call.id is defined or tool_call.id|length != 9 %} {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }} {%- endif %} {{- ', "id": "' + tool_call.id + '"}' }} {%- if not loop.last %} {{- ", " }} {%- else %} {{- "]" + eos_token }} {%- endif %} {%- endfor %} {%- elif message["role"] == "assistant" %} {{- " " + message["content"]|trim + eos_token}} {%- elif message["role"] == "tool_results" or message["role"] == "tool" %} {%- if message.content is defined and message.content.content is defined %} {%- set content = message.content.content %} {%- else %} {%- set content = message.content %} {%- endif %} {{- '[TOOL_RESULTS] {"content": ' + content|string + ", " }} {%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %} {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }} {%- endif %} {{- '"call_id": "' + message.tool_call_id + '"}[/TOOL_RESULTS]' }} {%- else %} {{- raise_exception("Only user and assistant roles are supported, with the exception of an initial optional system message!") }} {%- endif %} {%- endfor %} " />
|
322 |
+
<clean_up_tokenization_spaces />
|
323 |
+
<detokenizer_input_type value="i64" />
|
324 |
+
<eos_token_id value="2" />
|
325 |
+
<handle_special_tokens_with_re />
|
326 |
+
<number_of_inputs value="1" />
|
327 |
+
<openvino_tokenizers_version value="2024.6.0.0" />
|
328 |
+
<openvino_version value="2024.6.0" />
|
329 |
+
<original_tokenizer_class value="<class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
|
330 |
+
<sentencepiece_version value="0.2.0" />
|
331 |
+
<skip_special_tokens value="True" />
|
332 |
+
<streaming_detokenizer value="False" />
|
333 |
+
<tokenizer_output_type value="i64" />
|
334 |
+
<tokenizers_version value="0.21.1" />
|
335 |
+
<transformers_version value="4.48.3" />
|
336 |
+
<use_max_padding value="False" />
|
337 |
+
<use_sentencepiece_backend value="False" />
|
338 |
+
<utf8_replace_mode value="replace" />
|
339 |
+
<with_detokenizer value="True" />
|
340 |
+
</rt_info>
|
341 |
+
</net>
|
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:1918ad8e584d47ef43b360f18105fb6bb5ec0f758383d9268a7935a98065710c
|
3 |
+
size 1252818
|
openvino_tokenizer.xml
ADDED
@@ -0,0 +1,833 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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enizer" version="11">
|
3 |
+
<layers>
|
4 |
+
<layer id="0" name="Parameter_1104453" type="Parameter" version="opset1">
|
5 |
+
<data shape="?" element_type="string" />
|
6 |
+
<output>
|
7 |
+
<port id="0" precision="STRING" names="Parameter_1104453">
|
8 |
+
<dim>-1</dim>
|
9 |
+
</port>
|
10 |
+
</output>
|
11 |
+
</layer>
|
12 |
+
<layer id="1" name="Constant_1104558" 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="Constant_1104559" type="Const" version="opset1">
|
19 |
+
<data element_type="i32" shape="" offset="4" size="4" />
|
20 |
+
<output>
|
21 |
+
<port id="0" precision="I32" />
|
22 |
+
</output>
|
23 |
+
</layer>
|
24 |
+
<layer id="3" name="Constant_1104560" type="Const" version="opset1">
|
25 |
+
<data element_type="i32" shape="1" offset="4" size="4" />
|
26 |
+
<output>
|
27 |
+
<port id="0" precision="I32">
|
28 |
+
<dim>1</dim>
|
29 |
+
</port>
|
30 |
+
</output>
|
31 |
+
</layer>
|
32 |
+
<layer id="4" name="Constant_1104459" type="Const" version="opset1">
|
33 |
+
<data element_type="i64" shape="" offset="8" size="8" />
|
34 |
+
<output>
|
35 |
+
<port id="0" precision="I64" />
|
36 |
+
</output>
|
37 |
+
</layer>
|
38 |
+
<layer id="5" name="StringTensorUnpack_1104454" type="StringTensorUnpack" version="extension">
|
39 |
+
<data mode="begins_ends" />
|
40 |
+
<input>
|
41 |
+
<port id="0" precision="STRING">
|
42 |
+
<dim>-1</dim>
|
43 |
+
</port>
|
44 |
+
</input>
|
45 |
+
<output>
|
46 |
+
<port id="1" precision="I32">
|
47 |
+
<dim>-1</dim>
|
48 |
+
</port>
|
49 |
+
<port id="2" precision="I32">
|
50 |
+
<dim>-1</dim>
|
51 |
+
</port>
|
52 |
+
<port id="3" precision="U8">
|
53 |
+
<dim>-1</dim>
|
54 |
+
</port>
|
55 |
+
</output>
|
56 |
+
</layer>
|
57 |
+
<layer id="6" name="ShapeOf_1104455" type="ShapeOf" version="opset3">
|
58 |
+
<data output_type="i64" />
|
59 |
+
<input>
|
60 |
+
<port id="0" precision="I32">
|
61 |
+
<dim>-1</dim>
|
62 |
+
</port>
|
63 |
+
</input>
|
64 |
+
<output>
|
65 |
+
<port id="1" precision="I64">
|
66 |
+
<dim>1</dim>
|
67 |
+
</port>
|
68 |
+
</output>
|
69 |
+
</layer>
|
70 |
+
<layer id="7" name="Constant_1104456" type="Const" version="opset1">
|
71 |
+
<data element_type="i64" shape="" offset="8" size="8" />
|
72 |
+
<output>
|
73 |
+
<port id="0" precision="I64" />
|
74 |
+
</output>
|
75 |
+
</layer>
|
76 |
+
<layer id="8" name="Constant_1104457" type="Const" version="opset1">
|
77 |
+
<data element_type="i64" shape="" offset="8" size="8" />
|
78 |
+
<output>
|
79 |
+
<port id="0" precision="I64" />
|
80 |
+
</output>
|
81 |
+
</layer>
|
82 |
+
<layer id="9" name="Gather_1104458" type="Gather" version="opset8">
|
83 |
+
<data batch_dims="0" />
|
84 |
+
<input>
|
85 |
+
<port id="0" precision="I64">
|
86 |
+
<dim>1</dim>
|
87 |
+
</port>
|
88 |
+
<port id="1" precision="I64" />
|
89 |
+
<port id="2" precision="I64" />
|
90 |
+
</input>
|
91 |
+
<output>
|
92 |
+
<port id="3" precision="I64" />
|
93 |
+
</output>
|
94 |
+
</layer>
|
95 |
+
<layer id="10" name="Constant_1104460" type="Const" version="opset1">
|
96 |
+
<data element_type="i64" shape="" offset="16" size="8" />
|
97 |
+
<output>
|
98 |
+
<port id="0" precision="I64" />
|
99 |
+
</output>
|
100 |
+
</layer>
|
101 |
+
<layer id="11" name="Range_1104461" type="Range" version="opset4">
|
102 |
+
<data output_type="i32" />
|
103 |
+
<input>
|
104 |
+
<port id="0" precision="I64" />
|
105 |
+
<port id="1" precision="I64" />
|
106 |
+
<port id="2" precision="I64" />
|
107 |
+
</input>
|
108 |
+
<output>
|
109 |
+
<port id="3" precision="I32">
|
110 |
+
<dim>-1</dim>
|
111 |
+
</port>
|
112 |
+
</output>
|
113 |
+
</layer>
|
114 |
+
<layer id="12" name="Constant_1104462" type="Const" version="opset1">
|
115 |
+
<data element_type="i64" shape="" offset="16" size="8" />
|
116 |
+
<output>
|
117 |
+
<port id="0" precision="I64" />
|
118 |
+
</output>
|
119 |
+
</layer>
|
120 |
+
<layer id="13" name="Constant_1104463" type="Const" version="opset1">
|
121 |
+
<data element_type="i64" shape="" offset="16" size="8" />
|
122 |
+
<output>
|
123 |
+
<port id="0" precision="I64" />
|
124 |
+
</output>
|
125 |
+
</layer>
|
126 |
+
<layer id="14" name="Add_1104464" type="Add" version="opset1">
|
127 |
+
<data auto_broadcast="numpy" />
|
128 |
+
<input>
|
129 |
+
<port id="0" precision="I64" />
|
130 |
+
<port id="1" precision="I64" />
|
131 |
+
</input>
|
132 |
+
<output>
|
133 |
+
<port id="2" precision="I64" />
|
134 |
+
</output>
|
135 |
+
</layer>
|
136 |
+
<layer id="15" name="Constant_1104465" type="Const" version="opset1">
|
137 |
+
<data element_type="i64" shape="" offset="16" size="8" />
|
138 |
+
<output>
|
139 |
+
<port id="0" precision="I64" />
|
140 |
+
</output>
|
141 |
+
</layer>
|
142 |
+
<layer id="16" name="Range_1104466" type="Range" version="opset4">
|
143 |
+
<data output_type="i32" />
|
144 |
+
<input>
|
145 |
+
<port id="0" precision="I64" />
|
146 |
+
<port id="1" precision="I64" />
|
147 |
+
<port id="2" precision="I64" />
|
148 |
+
</input>
|
149 |
+
<output>
|
150 |
+
<port id="3" precision="I32">
|
151 |
+
<dim>-1</dim>
|
152 |
+
</port>
|
153 |
+
</output>
|
154 |
+
</layer>
|
155 |
+
<layer id="17" name="Constant_1104528" type="Const" version="opset1">
|
156 |
+
<data element_type="u8" shape="13758" offset="24" size="13758" />
|
157 |
+
<output>
|
158 |
+
<port id="0" precision="U8">
|
159 |
+
<dim>13758</dim>
|
160 |
+
</port>
|
161 |
+
</output>
|
162 |
+
</layer>
|
163 |
+
<layer id="18" name="SpecialTokensSplit_1104529" type="SpecialTokensSplit" version="extension">
|
164 |
+
<input>
|
165 |
+
<port id="0" precision="I32">
|
166 |
+
<dim>-1</dim>
|
167 |
+
</port>
|
168 |
+
<port id="1" precision="I32">
|
169 |
+
<dim>-1</dim>
|
170 |
+
</port>
|
171 |
+
<port id="2" precision="I32">
|
172 |
+
<dim>-1</dim>
|
173 |
+
</port>
|
174 |
+
<port id="3" precision="I32">
|
175 |
+
<dim>-1</dim>
|
176 |
+
</port>
|
177 |
+
<port id="4" precision="U8">
|
178 |
+
<dim>-1</dim>
|
179 |
+
</port>
|
180 |
+
<port id="5" precision="U8">
|
181 |
+
<dim>13758</dim>
|
182 |
+
</port>
|
183 |
+
</input>
|
184 |
+
<output>
|
185 |
+
<port id="6" precision="I32">
|
186 |
+
<dim>-1</dim>
|
187 |
+
</port>
|
188 |
+
<port id="7" precision="I32">
|
189 |
+
<dim>-1</dim>
|
190 |
+
</port>
|
191 |
+
<port id="8" precision="I32">
|
192 |
+
<dim>-1</dim>
|
193 |
+
</port>
|
194 |
+
<port id="9" precision="I32">
|
195 |
+
<dim>-1</dim>
|
196 |
+
</port>
|
197 |
+
<port id="10" precision="U8">
|
198 |
+
<dim>-1</dim>
|
199 |
+
</port>
|
200 |
+
<port id="11" precision="BOOL">
|
201 |
+
<dim>-1</dim>
|
202 |
+
</port>
|
203 |
+
</output>
|
204 |
+
</layer>
|
205 |
+
<layer id="19" name="Constant_1104531" type="Const" version="opset1">
|
206 |
+
<data element_type="u8" shape="1" offset="13782" size="1" />
|
207 |
+
<output>
|
208 |
+
<port id="0" precision="U8">
|
209 |
+
<dim>1</dim>
|
210 |
+
</port>
|
211 |
+
</output>
|
212 |
+
</layer>
|
213 |
+
<layer id="20" name="Constant_1104533" type="Const" version="opset1">
|
214 |
+
<data element_type="u8" shape="3" offset="13783" size="3" />
|
215 |
+
<output>
|
216 |
+
<port id="0" precision="U8">
|
217 |
+
<dim>3</dim>
|
218 |
+
</port>
|
219 |
+
</output>
|
220 |
+
</layer>
|
221 |
+
<layer id="21" name="RegexNormalization_1104534" type="RegexNormalization" version="extension">
|
222 |
+
<data global_replace="true" />
|
223 |
+
<input>
|
224 |
+
<port id="0" precision="I32">
|
225 |
+
<dim>-1</dim>
|
226 |
+
</port>
|
227 |
+
<port id="1" precision="I32">
|
228 |
+
<dim>-1</dim>
|
229 |
+
</port>
|
230 |
+
<port id="2" precision="U8">
|
231 |
+
<dim>-1</dim>
|
232 |
+
</port>
|
233 |
+
<port id="3" precision="BOOL">
|
234 |
+
<dim>-1</dim>
|
235 |
+
</port>
|
236 |
+
<port id="4" precision="U8">
|
237 |
+
<dim>1</dim>
|
238 |
+
</port>
|
239 |
+
<port id="5" precision="U8">
|
240 |
+
<dim>3</dim>
|
241 |
+
</port>
|
242 |
+
</input>
|
243 |
+
<output>
|
244 |
+
<port id="6" precision="I32">
|
245 |
+
<dim>-1</dim>
|
246 |
+
</port>
|
247 |
+
<port id="7" precision="I32">
|
248 |
+
<dim>-1</dim>
|
249 |
+
</port>
|
250 |
+
<port id="8" precision="U8">
|
251 |
+
<dim>-1</dim>
|
252 |
+
</port>
|
253 |
+
<port id="9" precision="BOOL">
|
254 |
+
<dim>-1</dim>
|
255 |
+
</port>
|
256 |
+
</output>
|
257 |
+
</layer>
|
258 |
+
<layer id="22" name="Constant_1104536" type="Const" version="opset1">
|
259 |
+
<data element_type="u8" shape="11" offset="13786" size="11" />
|
260 |
+
<output>
|
261 |
+
<port id="0" precision="U8">
|
262 |
+
<dim>11</dim>
|
263 |
+
</port>
|
264 |
+
</output>
|
265 |
+
</layer>
|
266 |
+
<layer id="23" name="Constant_1104538" type="Const" version="opset1">
|
267 |
+
<data element_type="u8" shape="5" offset="13797" size="5" />
|
268 |
+
<output>
|
269 |
+
<port id="0" precision="U8">
|
270 |
+
<dim>5</dim>
|
271 |
+
</port>
|
272 |
+
</output>
|
273 |
+
</layer>
|
274 |
+
<layer id="24" name="RegexNormalization_1104539" type="RegexNormalization" version="extension">
|
275 |
+
<data global_replace="true" />
|
276 |
+
<input>
|
277 |
+
<port id="0" precision="I32">
|
278 |
+
<dim>-1</dim>
|
279 |
+
</port>
|
280 |
+
<port id="1" precision="I32">
|
281 |
+
<dim>-1</dim>
|
282 |
+
</port>
|
283 |
+
<port id="2" precision="U8">
|
284 |
+
<dim>-1</dim>
|
285 |
+
</port>
|
286 |
+
<port id="3" precision="BOOL">
|
287 |
+
<dim>-1</dim>
|
288 |
+
</port>
|
289 |
+
<port id="4" precision="U8">
|
290 |
+
<dim>11</dim>
|
291 |
+
</port>
|
292 |
+
<port id="5" precision="U8">
|
293 |
+
<dim>5</dim>
|
294 |
+
</port>
|
295 |
+
</input>
|
296 |
+
<output>
|
297 |
+
<port id="6" precision="I32">
|
298 |
+
<dim>-1</dim>
|
299 |
+
</port>
|
300 |
+
<port id="7" precision="I32">
|
301 |
+
<dim>-1</dim>
|
302 |
+
</port>
|
303 |
+
<port id="8" precision="U8">
|
304 |
+
<dim>-1</dim>
|
305 |
+
</port>
|
306 |
+
<port id="9" precision="BOOL">
|
307 |
+
<dim>-1</dim>
|
308 |
+
</port>
|
309 |
+
</output>
|
310 |
+
</layer>
|
311 |
+
<layer id="25" name="Constant_1104541" type="Const" version="opset1">
|
312 |
+
<data element_type="u8" shape="345638" offset="13802" size="345638" />
|
313 |
+
<output>
|
314 |
+
<port id="0" precision="U8">
|
315 |
+
<dim>345638</dim>
|
316 |
+
</port>
|
317 |
+
</output>
|
318 |
+
</layer>
|
319 |
+
<layer id="26" name="StringTensorUnpack_1104542" type="StringTensorUnpack" version="extension">
|
320 |
+
<data mode="begins_ends" />
|
321 |
+
<input>
|
322 |
+
<port id="0" precision="U8">
|
323 |
+
<dim>345638</dim>
|
324 |
+
</port>
|
325 |
+
</input>
|
326 |
+
<output>
|
327 |
+
<port id="1" precision="I32">
|
328 |
+
<dim>-1</dim>
|
329 |
+
</port>
|
330 |
+
<port id="2" precision="I32">
|
331 |
+
<dim>-1</dim>
|
332 |
+
</port>
|
333 |
+
<port id="3" precision="U8">
|
334 |
+
<dim>-1</dim>
|
335 |
+
</port>
|
336 |
+
</output>
|
337 |
+
</layer>
|
338 |
+
<layer id="27" name="Constant_1104547" type="Const" version="opset1">
|
339 |
+
<data element_type="u8" shape="479780" offset="359440" size="479780" />
|
340 |
+
<output>
|
341 |
+
<port id="0" precision="U8">
|
342 |
+
<dim>479780</dim>
|
343 |
+
</port>
|
344 |
+
</output>
|
345 |
+
</layer>
|
346 |
+
<layer id="28" name="StringTensorUnpack_1104548" type="StringTensorUnpack" version="extension">
|
347 |
+
<data mode="begins_ends" />
|
348 |
+
<input>
|
349 |
+
<port id="0" precision="U8">
|
350 |
+
<dim>479780</dim>
|
351 |
+
</port>
|
352 |
+
</input>
|
353 |
+
<output>
|
354 |
+
<port id="1" precision="I32">
|
355 |
+
<dim>-1</dim>
|
356 |
+
</port>
|
357 |
+
<port id="2" precision="I32">
|
358 |
+
<dim>-1</dim>
|
359 |
+
</port>
|
360 |
+
<port id="3" precision="U8">
|
361 |
+
<dim>-1</dim>
|
362 |
+
</port>
|
363 |
+
</output>
|
364 |
+
</layer>
|
365 |
+
<layer id="29" name="Constant_1104550" type="Const" version="opset1">
|
366 |
+
<data element_type="u8" shape="397531" offset="839220" size="397531" />
|
367 |
+
<output>
|
368 |
+
<port id="0" precision="U8">
|
369 |
+
<dim>397531</dim>
|
370 |
+
</port>
|
371 |
+
</output>
|
372 |
+
</layer>
|
373 |
+
<layer id="30" name="StringTensorUnpack_1104551" type="StringTensorUnpack" version="extension">
|
374 |
+
<data mode="begins_ends" />
|
375 |
+
<input>
|
376 |
+
<port id="0" precision="U8">
|
377 |
+
<dim>397531</dim>
|
378 |
+
</port>
|
379 |
+
</input>
|
380 |
+
<output>
|
381 |
+
<port id="1" precision="I32">
|
382 |
+
<dim>-1</dim>
|
383 |
+
</port>
|
384 |
+
<port id="2" precision="I32">
|
385 |
+
<dim>-1</dim>
|
386 |
+
</port>
|
387 |
+
<port id="3" precision="U8">
|
388 |
+
<dim>-1</dim>
|
389 |
+
</port>
|
390 |
+
</output>
|
391 |
+
</layer>
|
392 |
+
<layer id="31" name="Constant_1104544" type="Const" version="opset1">
|
393 |
+
<data element_type="u8" shape="12983" offset="1236751" size="12983" />
|
394 |
+
<output>
|
395 |
+
<port id="0" precision="U8">
|
396 |
+
<dim>12983</dim>
|
397 |
+
</port>
|
398 |
+
</output>
|
399 |
+
</layer>
|
400 |
+
<layer id="32" name="StringTensorUnpack_1104545" type="StringTensorUnpack" version="extension">
|
401 |
+
<data mode="begins_ends" />
|
402 |
+
<input>
|
403 |
+
<port id="0" precision="U8">
|
404 |
+
<dim>12983</dim>
|
405 |
+
</port>
|
406 |
+
</input>
|
407 |
+
<output>
|
408 |
+
<port id="1" precision="I32">
|
409 |
+
<dim>-1</dim>
|
410 |
+
</port>
|
411 |
+
<port id="2" precision="I32">
|
412 |
+
<dim>-1</dim>
|
413 |
+
</port>
|
414 |
+
<port id="3" precision="U8">
|
415 |
+
<dim>-1</dim>
|
416 |
+
</port>
|
417 |
+
</output>
|
418 |
+
</layer>
|
419 |
+
<layer id="33" name="Constant_1104552" type="Const" version="opset1">
|
420 |
+
<data element_type="i32" shape="770" offset="1249734" size="3080" />
|
421 |
+
<output>
|
422 |
+
<port id="0" precision="I32">
|
423 |
+
<dim>770</dim>
|
424 |
+
</port>
|
425 |
+
</output>
|
426 |
+
</layer>
|
427 |
+
<layer id="34" name="BPETokenizer_1104553" type="BPETokenizer" version="extension">
|
428 |
+
<data unk_token="<unk>" fuse_unk="true" suffix_indicator="" end_suffix="" byte_fallback="true" cache_capacity="20000" />
|
429 |
+
<input>
|
430 |
+
<port id="0" precision="I32">
|
431 |
+
<dim>-1</dim>
|
432 |
+
</port>
|
433 |
+
<port id="1" precision="I32">
|
434 |
+
<dim>-1</dim>
|
435 |
+
</port>
|
436 |
+
<port id="2" precision="I32">
|
437 |
+
<dim>-1</dim>
|
438 |
+
</port>
|
439 |
+
<port id="3" precision="I32">
|
440 |
+
<dim>-1</dim>
|
441 |
+
</port>
|
442 |
+
<port id="4" precision="U8">
|
443 |
+
<dim>-1</dim>
|
444 |
+
</port>
|
445 |
+
<port id="5" precision="I32">
|
446 |
+
<dim>-1</dim>
|
447 |
+
</port>
|
448 |
+
<port id="6" precision="I32">
|
449 |
+
<dim>-1</dim>
|
450 |
+
</port>
|
451 |
+
<port id="7" precision="U8">
|
452 |
+
<dim>-1</dim>
|
453 |
+
</port>
|
454 |
+
<port id="8" precision="I32">
|
455 |
+
<dim>-1</dim>
|
456 |
+
</port>
|
457 |
+
<port id="9" precision="I32">
|
458 |
+
<dim>-1</dim>
|
459 |
+
</port>
|
460 |
+
<port id="10" precision="U8">
|
461 |
+
<dim>-1</dim>
|
462 |
+
</port>
|
463 |
+
<port id="11" precision="I32">
|
464 |
+
<dim>-1</dim>
|
465 |
+
</port>
|
466 |
+
<port id="12" precision="I32">
|
467 |
+
<dim>-1</dim>
|
468 |
+
</port>
|
469 |
+
<port id="13" precision="U8">
|
470 |
+
<dim>-1</dim>
|
471 |
+
</port>
|
472 |
+
<port id="14" precision="I32">
|
473 |
+
<dim>-1</dim>
|
474 |
+
</port>
|
475 |
+
<port id="15" precision="I32">
|
476 |
+
<dim>-1</dim>
|
477 |
+
</port>
|
478 |
+
<port id="16" precision="U8">
|
479 |
+
<dim>-1</dim>
|
480 |
+
</port>
|
481 |
+
<port id="17" precision="I32">
|
482 |
+
<dim>770</dim>
|
483 |
+
</port>
|
484 |
+
</input>
|
485 |
+
<output>
|
486 |
+
<port id="18" precision="I32">
|
487 |
+
<dim>-1</dim>
|
488 |
+
</port>
|
489 |
+
<port id="19" precision="I32">
|
490 |
+
<dim>-1</dim>
|
491 |
+
</port>
|
492 |
+
<port id="20" precision="I32">
|
493 |
+
<dim>-1</dim>
|
494 |
+
</port>
|
495 |
+
</output>
|
496 |
+
</layer>
|
497 |
+
<layer id="35" name="Subtract_1104554" type="Subtract" version="opset1">
|
498 |
+
<data auto_broadcast="numpy" />
|
499 |
+
<input>
|
500 |
+
<port id="0" precision="I32">
|
501 |
+
<dim>-1</dim>
|
502 |
+
</port>
|
503 |
+
<port id="1" precision="I32">
|
504 |
+
<dim>-1</dim>
|
505 |
+
</port>
|
506 |
+
</input>
|
507 |
+
<output>
|
508 |
+
<port id="2" precision="I32">
|
509 |
+
<dim>-1</dim>
|
510 |
+
</port>
|
511 |
+
</output>
|
512 |
+
</layer>
|
513 |
+
<layer id="36" name="Constant_1104555" type="Const" version="opset1">
|
514 |
+
<data element_type="i32" shape="" offset="1252814" size="4" />
|
515 |
+
<output>
|
516 |
+
<port id="0" precision="I32" />
|
517 |
+
</output>
|
518 |
+
</layer>
|
519 |
+
<layer id="37" name="Minimum_1104556" type="Minimum" version="opset1">
|
520 |
+
<data auto_broadcast="numpy" />
|
521 |
+
<input>
|
522 |
+
<port id="0" precision="I32">
|
523 |
+
<dim>-1</dim>
|
524 |
+
</port>
|
525 |
+
<port id="1" precision="I32" />
|
526 |
+
</input>
|
527 |
+
<output>
|
528 |
+
<port id="2" precision="I32">
|
529 |
+
<dim>-1</dim>
|
530 |
+
</port>
|
531 |
+
</output>
|
532 |
+
</layer>
|
533 |
+
<layer id="38" name="Subtract_1104557" type="Subtract" version="opset1">
|
534 |
+
<data auto_broadcast="numpy" />
|
535 |
+
<input>
|
536 |
+
<port id="0" precision="I32">
|
537 |
+
<dim>-1</dim>
|
538 |
+
</port>
|
539 |
+
<port id="1" precision="I32">
|
540 |
+
<dim>-1</dim>
|
541 |
+
</port>
|
542 |
+
</input>
|
543 |
+
<output>
|
544 |
+
<port id="2" precision="I32">
|
545 |
+
<dim>-1</dim>
|
546 |
+
</port>
|
547 |
+
</output>
|
548 |
+
</layer>
|
549 |
+
<layer id="39" name="Constant_1104561" type="Const" version="opset1">
|
550 |
+
<data element_type="i32" shape="2" offset="8" size="8" />
|
551 |
+
<output>
|
552 |
+
<port id="0" precision="I32">
|
553 |
+
<dim>2</dim>
|
554 |
+
</port>
|
555 |
+
</output>
|
556 |
+
</layer>
|
557 |
+
<layer id="40" name="CombineSegments_1104562" type="CombineSegments" version="extension">
|
558 |
+
<input>
|
559 |
+
<port id="0" precision="I32" />
|
560 |
+
<port id="1" precision="I32" />
|
561 |
+
<port id="2" precision="I32">
|
562 |
+
<dim>1</dim>
|
563 |
+
</port>
|
564 |
+
<port id="3" precision="I32">
|
565 |
+
<dim>-1</dim>
|
566 |
+
</port>
|
567 |
+
<port id="4" precision="I32">
|
568 |
+
<dim>-1</dim>
|
569 |
+
</port>
|
570 |
+
<port id="5" precision="I32">
|
571 |
+
<dim>-1</dim>
|
572 |
+
</port>
|
573 |
+
<port id="6" precision="I32">
|
574 |
+
<dim>2</dim>
|
575 |
+
</port>
|
576 |
+
</input>
|
577 |
+
<output>
|
578 |
+
<port id="7" precision="I32">
|
579 |
+
<dim>-1</dim>
|
580 |
+
</port>
|
581 |
+
<port id="8" precision="I32">
|
582 |
+
<dim>-1</dim>
|
583 |
+
</port>
|
584 |
+
<port id="9" precision="I32">
|
585 |
+
<dim>-1</dim>
|
586 |
+
</port>
|
587 |
+
<port id="10" precision="I32">
|
588 |
+
<dim>-1</dim>
|
589 |
+
</port>
|
590 |
+
<port id="11" precision="I32">
|
591 |
+
<dim>-1</dim>
|
592 |
+
</port>
|
593 |
+
<port id="12" precision="I32">
|
594 |
+
<dim>-1</dim>
|
595 |
+
</port>
|
596 |
+
</output>
|
597 |
+
</layer>
|
598 |
+
<layer id="41" name="Subtract_1104563" type="Subtract" version="opset1">
|
599 |
+
<data auto_broadcast="numpy" />
|
600 |
+
<input>
|
601 |
+
<port id="0" precision="I32">
|
602 |
+
<dim>-1</dim>
|
603 |
+
</port>
|
604 |
+
<port id="1" precision="I32">
|
605 |
+
<dim>-1</dim>
|
606 |
+
</port>
|
607 |
+
</input>
|
608 |
+
<output>
|
609 |
+
<port id="2" precision="I32">
|
610 |
+
<dim>-1</dim>
|
611 |
+
</port>
|
612 |
+
</output>
|
613 |
+
</layer>
|
614 |
+
<layer id="42" name="Constant_1104564" type="Const" version="opset1">
|
615 |
+
<data element_type="i32" shape="" offset="0" size="4" />
|
616 |
+
<output>
|
617 |
+
<port id="0" precision="I32" />
|
618 |
+
</output>
|
619 |
+
</layer>
|
620 |
+
<layer id="43" name="ReduceMax_1104565" type="ReduceMax" version="opset1">
|
621 |
+
<data keep_dims="false" />
|
622 |
+
<input>
|
623 |
+
<port id="0" precision="I32">
|
624 |
+
<dim>-1</dim>
|
625 |
+
</port>
|
626 |
+
<port id="1" precision="I32" />
|
627 |
+
</input>
|
628 |
+
<output>
|
629 |
+
<port id="2" precision="I32" />
|
630 |
+
</output>
|
631 |
+
</layer>
|
632 |
+
<layer id="44" name="Constant_1104566" type="Const" version="opset1">
|
633 |
+
<data element_type="i32" shape="" offset="0" size="4" />
|
634 |
+
<output>
|
635 |
+
<port id="0" precision="I32" />
|
636 |
+
</output>
|
637 |
+
</layer>
|
638 |
+
<layer id="45" name="RaggedToDense_1104567" type="RaggedToDense" version="extension">
|
639 |
+
<data pad_right="false" />
|
640 |
+
<input>
|
641 |
+
<port id="0" precision="I32">
|
642 |
+
<dim>-1</dim>
|
643 |
+
</port>
|
644 |
+
<port id="1" precision="I32">
|
645 |
+
<dim>-1</dim>
|
646 |
+
</port>
|
647 |
+
<port id="2" precision="I32">
|
648 |
+
<dim>-1</dim>
|
649 |
+
</port>
|
650 |
+
<port id="3" precision="I32" />
|
651 |
+
<port id="4" precision="I32" />
|
652 |
+
</input>
|
653 |
+
<output>
|
654 |
+
<port id="5" precision="I32">
|
655 |
+
<dim>-1</dim>
|
656 |
+
<dim>-1</dim>
|
657 |
+
</port>
|
658 |
+
<port id="6" precision="BOOL">
|
659 |
+
<dim>-1</dim>
|
660 |
+
<dim>-1</dim>
|
661 |
+
</port>
|
662 |
+
</output>
|
663 |
+
</layer>
|
664 |
+
<layer id="46" name="Convert_1104568" type="Convert" version="opset1">
|
665 |
+
<data destination_type="i32" />
|
666 |
+
<input>
|
667 |
+
<port id="0" precision="BOOL">
|
668 |
+
<dim>-1</dim>
|
669 |
+
<dim>-1</dim>
|
670 |
+
</port>
|
671 |
+
</input>
|
672 |
+
<output>
|
673 |
+
<port id="1" precision="I32">
|
674 |
+
<dim>-1</dim>
|
675 |
+
<dim>-1</dim>
|
676 |
+
</port>
|
677 |
+
</output>
|
678 |
+
</layer>
|
679 |
+
<layer id="47" name="Convert_1104568" type="Convert" version="opset1">
|
680 |
+
<data destination_type="i64" />
|
681 |
+
<input>
|
682 |
+
<port id="0" precision="I32">
|
683 |
+
<dim>-1</dim>
|
684 |
+
<dim>-1</dim>
|
685 |
+
</port>
|
686 |
+
</input>
|
687 |
+
<output>
|
688 |
+
<port id="1" precision="I64" names="attention_mask">
|
689 |
+
<dim>-1</dim>
|
690 |
+
<dim>-1</dim>
|
691 |
+
</port>
|
692 |
+
</output>
|
693 |
+
</layer>
|
694 |
+
<layer id="49" name="RaggedToDense_1104567.0" type="Convert" version="opset1">
|
695 |
+
<data destination_type="i64" />
|
696 |
+
<input>
|
697 |
+
<port id="0" precision="I32">
|
698 |
+
<dim>-1</dim>
|
699 |
+
<dim>-1</dim>
|
700 |
+
</port>
|
701 |
+
</input>
|
702 |
+
<output>
|
703 |
+
<port id="1" precision="I64" names="input_ids">
|
704 |
+
<dim>-1</dim>
|
705 |
+
<dim>-1</dim>
|
706 |
+
</port>
|
707 |
+
</output>
|
708 |
+
</layer>
|
709 |
+
<layer id="50" name="Result_1104571" type="Result" version="opset1">
|
710 |
+
<input>
|
711 |
+
<port id="0" precision="I64">
|
712 |
+
<dim>-1</dim>
|
713 |
+
<dim>-1</dim>
|
714 |
+
</port>
|
715 |
+
</input>
|
716 |
+
</layer>
|
717 |
+
<layer id="48" name="Result_1104573" type="Result" version="opset1">
|
718 |
+
<input>
|
719 |
+
<port id="0" precision="I64">
|
720 |
+
<dim>-1</dim>
|
721 |
+
<dim>-1</dim>
|
722 |
+
</port>
|
723 |
+
</input>
|
724 |
+
</layer>
|
725 |
+
</layers>
|
726 |
+
<edges>
|
727 |
+
<edge from-layer="0" from-port="0" to-layer="5" to-port="0" />
|
728 |
+
<edge from-layer="1" from-port="0" to-layer="40" to-port="0" />
|
729 |
+
<edge from-layer="2" from-port="0" to-layer="40" to-port="1" />
|
730 |
+
<edge from-layer="3" from-port="0" to-layer="40" to-port="2" />
|
731 |
+
<edge from-layer="4" from-port="0" to-layer="11" to-port="0" />
|
732 |
+
<edge from-layer="5" from-port="1" to-layer="6" to-port="0" />
|
733 |
+
<edge from-layer="5" from-port="1" to-layer="18" to-port="2" />
|
734 |
+
<edge from-layer="5" from-port="2" to-layer="18" to-port="3" />
|
735 |
+
<edge from-layer="5" from-port="3" to-layer="18" to-port="4" />
|
736 |
+
<edge from-layer="6" from-port="1" to-layer="9" to-port="0" />
|
737 |
+
<edge from-layer="7" from-port="0" to-layer="9" to-port="1" />
|
738 |
+
<edge from-layer="8" from-port="0" to-layer="9" to-port="2" />
|
739 |
+
<edge from-layer="9" from-port="3" to-layer="11" to-port="1" />
|
740 |
+
<edge from-layer="9" from-port="3" to-layer="14" to-port="0" />
|
741 |
+
<edge from-layer="10" from-port="0" to-layer="11" to-port="2" />
|
742 |
+
<edge from-layer="11" from-port="3" to-layer="18" to-port="0" />
|
743 |
+
<edge from-layer="12" from-port="0" to-layer="16" to-port="0" />
|
744 |
+
<edge from-layer="13" from-port="0" to-layer="14" to-port="1" />
|
745 |
+
<edge from-layer="14" from-port="2" to-layer="16" to-port="1" />
|
746 |
+
<edge from-layer="15" from-port="0" to-layer="16" to-port="2" />
|
747 |
+
<edge from-layer="16" from-port="3" to-layer="18" to-port="1" />
|
748 |
+
<edge from-layer="17" from-port="0" to-layer="18" to-port="5" />
|
749 |
+
<edge from-layer="18" from-port="11" to-layer="21" to-port="3" />
|
750 |
+
<edge from-layer="18" from-port="8" to-layer="21" to-port="0" />
|
751 |
+
<edge from-layer="18" from-port="9" to-layer="21" to-port="1" />
|
752 |
+
<edge from-layer="18" from-port="10" to-layer="21" to-port="2" />
|
753 |
+
<edge from-layer="18" from-port="6" to-layer="34" to-port="0" />
|
754 |
+
<edge from-layer="18" from-port="7" to-layer="34" to-port="1" />
|
755 |
+
<edge from-layer="19" from-port="0" to-layer="21" to-port="4" />
|
756 |
+
<edge from-layer="20" from-port="0" to-layer="21" to-port="5" />
|
757 |
+
<edge from-layer="21" from-port="9" to-layer="24" to-port="3" />
|
758 |
+
<edge from-layer="21" from-port="6" to-layer="24" to-port="0" />
|
759 |
+
<edge from-layer="21" from-port="7" to-layer="24" to-port="1" />
|
760 |
+
<edge from-layer="21" from-port="8" to-layer="24" to-port="2" />
|
761 |
+
<edge from-layer="22" from-port="0" to-layer="24" to-port="4" />
|
762 |
+
<edge from-layer="23" from-port="0" to-layer="24" to-port="5" />
|
763 |
+
<edge from-layer="24" from-port="6" to-layer="34" to-port="2" />
|
764 |
+
<edge from-layer="24" from-port="7" to-layer="34" to-port="3" />
|
765 |
+
<edge from-layer="24" from-port="8" to-layer="34" to-port="4" />
|
766 |
+
<edge from-layer="25" from-port="0" to-layer="26" to-port="0" />
|
767 |
+
<edge from-layer="26" from-port="1" to-layer="34" to-port="5" />
|
768 |
+
<edge from-layer="26" from-port="2" to-layer="34" to-port="6" />
|
769 |
+
<edge from-layer="26" from-port="3" to-layer="34" to-port="7" />
|
770 |
+
<edge from-layer="27" from-port="0" to-layer="28" to-port="0" />
|
771 |
+
<edge from-layer="28" from-port="2" to-layer="34" to-port="9" />
|
772 |
+
<edge from-layer="28" from-port="3" to-layer="34" to-port="10" />
|
773 |
+
<edge from-layer="28" from-port="1" to-layer="34" to-port="8" />
|
774 |
+
<edge from-layer="29" from-port="0" to-layer="30" to-port="0" />
|
775 |
+
<edge from-layer="30" from-port="1" to-layer="34" to-port="11" />
|
776 |
+
<edge from-layer="30" from-port="2" to-layer="34" to-port="12" />
|
777 |
+
<edge from-layer="30" from-port="3" to-layer="34" to-port="13" />
|
778 |
+
<edge from-layer="31" from-port="0" to-layer="32" to-port="0" />
|
779 |
+
<edge from-layer="32" from-port="1" to-layer="34" to-port="14" />
|
780 |
+
<edge from-layer="32" from-port="2" to-layer="34" to-port="15" />
|
781 |
+
<edge from-layer="32" from-port="3" to-layer="34" to-port="16" />
|
782 |
+
<edge from-layer="33" from-port="0" to-layer="34" to-port="17" />
|
783 |
+
<edge from-layer="34" from-port="19" to-layer="35" to-port="0" />
|
784 |
+
<edge from-layer="34" from-port="18" to-layer="35" to-port="1" />
|
785 |
+
<edge from-layer="34" from-port="19" to-layer="40" to-port="4" />
|
786 |
+
<edge from-layer="34" from-port="20" to-layer="40" to-port="5" />
|
787 |
+
<edge from-layer="34" from-port="19" to-layer="38" to-port="0" />
|
788 |
+
<edge from-layer="35" from-port="2" to-layer="37" to-port="0" />
|
789 |
+
<edge from-layer="36" from-port="0" to-layer="37" to-port="1" />
|
790 |
+
<edge from-layer="37" from-port="2" to-layer="38" to-port="1" />
|
791 |
+
<edge from-layer="38" from-port="2" to-layer="40" to-port="3" />
|
792 |
+
<edge from-layer="39" from-port="0" to-layer="40" to-port="6" />
|
793 |
+
<edge from-layer="40" from-port="8" to-layer="41" to-port="0" />
|
794 |
+
<edge from-layer="40" from-port="7" to-layer="41" to-port="1" />
|
795 |
+
<edge from-layer="40" from-port="7" to-layer="45" to-port="0" />
|
796 |
+
<edge from-layer="40" from-port="8" to-layer="45" to-port="1" />
|
797 |
+
<edge from-layer="40" from-port="9" to-layer="45" to-port="2" />
|
798 |
+
<edge from-layer="41" from-port="2" to-layer="43" to-port="0" />
|
799 |
+
<edge from-layer="42" from-port="0" to-layer="43" to-port="1" />
|
800 |
+
<edge from-layer="43" from-port="2" to-layer="45" to-port="3" />
|
801 |
+
<edge from-layer="44" from-port="0" to-layer="45" to-port="4" />
|
802 |
+
<edge from-layer="45" from-port="6" to-layer="46" to-port="0" />
|
803 |
+
<edge from-layer="45" from-port="5" to-layer="49" to-port="0" />
|
804 |
+
<edge from-layer="46" from-port="1" to-layer="47" to-port="0" />
|
805 |
+
<edge from-layer="47" from-port="1" to-layer="48" to-port="0" />
|
806 |
+
<edge from-layer="49" from-port="1" to-layer="50" to-port="0" />
|
807 |
+
</edges>
|
808 |
+
<rt_info>
|
809 |
+
<add_attention_mask value="True" />
|
810 |
+
<add_prefix_space />
|
811 |
+
<add_special_tokens value="True" />
|
812 |
+
<bos_token_id value="1" />
|
813 |
+
<chat_template value="{%- if messages[0]["role"] == "system" %} {%- set system_message = messages[0]["content"] %} {%- set loop_messages = messages[1:] %} {%- else %} {%- set loop_messages = messages %} {%- endif %} {%- if not tools is defined %} {%- set tools = none %} {%- endif %} {%- set user_messages = loop_messages | selectattr("role", "equalto", "user") | list %} {#- This block checks for alternating user/assistant messages, skipping tool calling messages #} {%- set ns = namespace() %} {%- set ns.index = 0 %} {%- for message in loop_messages %} {%- if not (message.role == "tool" or message.role == "tool_results" or (message.tool_calls is defined and message.tool_calls is not none)) %} {%- if (message["role"] == "user") != (ns.index % 2 == 0) %} {{- raise_exception("After the optional system message, conversation roles must alternate user/assistant/user/assistant/...") }} {%- endif %} {%- set ns.index = ns.index + 1 %} {%- endif %} {%- endfor %} {{- bos_token }} {%- for message in loop_messages %} {%- if message["role"] == "user" %} {%- if tools is not none and (message == user_messages[-1]) %} {{- "[AVAILABLE_TOOLS] [" }} {%- for tool in tools %} {%- set tool = tool.function %} {{- '{"type": "function", "function": {' }} {%- for key, val in tool.items() if key != "return" %} {%- if val is string %} {{- '"' + key + '": "' + val + '"' }} {%- else %} {{- '"' + key + '": ' + val|tojson }} {%- endif %} {%- if not loop.last %} {{- ", " }} {%- endif %} {%- endfor %} {{- "}}" }} {%- if not loop.last %} {{- ", " }} {%- else %} {{- "]" }} {%- endif %} {%- endfor %} {{- "[/AVAILABLE_TOOLS]" }} {%- endif %} {%- if loop.last and system_message is defined %} {{- "[INST] " + system_message + "\n\n" + message["content"] + "[/INST]" }} {%- else %} {{- "[INST] " + message["content"] + "[/INST]" }} {%- endif %} {%- elif message.tool_calls is defined and message.tool_calls is not none %} {{- "[TOOL_CALLS] [" }} {%- for tool_call in message.tool_calls %} {%- set out = tool_call.function|tojson %} {{- out[:-1] }} {%- if not tool_call.id is defined or tool_call.id|length != 9 %} {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }} {%- endif %} {{- ', "id": "' + tool_call.id + '"}' }} {%- if not loop.last %} {{- ", " }} {%- else %} {{- "]" + eos_token }} {%- endif %} {%- endfor %} {%- elif message["role"] == "assistant" %} {{- " " + message["content"]|trim + eos_token}} {%- elif message["role"] == "tool_results" or message["role"] == "tool" %} {%- if message.content is defined and message.content.content is defined %} {%- set content = message.content.content %} {%- else %} {%- set content = message.content %} {%- endif %} {{- '[TOOL_RESULTS] {"content": ' + content|string + ", " }} {%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %} {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }} {%- endif %} {{- '"call_id": "' + message.tool_call_id + '"}[/TOOL_RESULTS]' }} {%- else %} {{- raise_exception("Only user and assistant roles are supported, with the exception of an initial optional system message!") }} {%- endif %} {%- endfor %} " />
|
814 |
+
<clean_up_tokenization_spaces />
|
815 |
+
<detokenizer_input_type value="i64" />
|
816 |
+
<eos_token_id value="2" />
|
817 |
+
<handle_special_tokens_with_re />
|
818 |
+
<number_of_inputs value="1" />
|
819 |
+
<openvino_tokenizers_version value="2024.6.0.0" />
|
820 |
+
<openvino_version value="2024.6.0" />
|
821 |
+
<original_tokenizer_class value="<class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
|
822 |
+
<sentencepiece_version value="0.2.0" />
|
823 |
+
<skip_special_tokens value="True" />
|
824 |
+
<streaming_detokenizer value="False" />
|
825 |
+
<tokenizer_output_type value="i64" />
|
826 |
+
<tokenizers_version value="0.21.1" />
|
827 |
+
<transformers_version value="4.48.3" />
|
828 |
+
<use_max_padding value="False" />
|
829 |
+
<use_sentencepiece_backend value="False" />
|
830 |
+
<utf8_replace_mode value="replace" />
|
831 |
+
<with_detokenizer value="True" />
|
832 |
+
</rt_info>
|
833 |
+
</net>
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
|
3 |
+
size 587404
|
tokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|