Upload 4 files
Browse files- openvino_detokenizer.bin +3 -0
- openvino_detokenizer.xml +153 -0
- openvino_tokenizer.bin +3 -0
- openvino_tokenizer.xml +385 -0
openvino_detokenizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b19c7945e69a1dac763477b61fd60a2a6b08d8862500b3e184d5adf79d02f288
|
3 |
+
size 587460
|
openvino_detokenizer.xml
ADDED
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<net name="detokenizer" version="11">
|
3 |
+
<layers>
|
4 |
+
<layer id="0" name="Parameter_33" type="Parameter" version="opset1">
|
5 |
+
<data shape="?,?" element_type="i64" />
|
6 |
+
<output>
|
7 |
+
<port id="0" precision="I64" names="Parameter_33">
|
8 |
+
<dim>-1</dim>
|
9 |
+
<dim>-1</dim>
|
10 |
+
</port>
|
11 |
+
</output>
|
12 |
+
</layer>
|
13 |
+
<layer id="1" name="Constant_2" type="Const" version="opset1">
|
14 |
+
<data element_type="u8" shape="587448" offset="0" size="587448" />
|
15 |
+
<output>
|
16 |
+
<port id="0" precision="U8">
|
17 |
+
<dim>587448</dim>
|
18 |
+
</port>
|
19 |
+
</output>
|
20 |
+
</layer>
|
21 |
+
<layer id="2" name="Convert_48" type="Convert" version="opset1">
|
22 |
+
<data destination_type="i32" />
|
23 |
+
<input>
|
24 |
+
<port id="0" precision="I64">
|
25 |
+
<dim>-1</dim>
|
26 |
+
<dim>-1</dim>
|
27 |
+
</port>
|
28 |
+
</input>
|
29 |
+
<output>
|
30 |
+
<port id="1" precision="I32">
|
31 |
+
<dim>-1</dim>
|
32 |
+
<dim>-1</dim>
|
33 |
+
</port>
|
34 |
+
</output>
|
35 |
+
</layer>
|
36 |
+
<layer id="3" name="SentencepieceDetokenizer_34" type="SentencepieceDetokenizer" version="extension">
|
37 |
+
<input>
|
38 |
+
<port id="0" precision="U8">
|
39 |
+
<dim>587448</dim>
|
40 |
+
</port>
|
41 |
+
<port id="1" precision="I32">
|
42 |
+
<dim>-1</dim>
|
43 |
+
<dim>-1</dim>
|
44 |
+
</port>
|
45 |
+
</input>
|
46 |
+
<output>
|
47 |
+
<port id="2" precision="I32">
|
48 |
+
<dim>-1</dim>
|
49 |
+
</port>
|
50 |
+
<port id="3" precision="I32">
|
51 |
+
<dim>-1</dim>
|
52 |
+
</port>
|
53 |
+
<port id="4" precision="U8">
|
54 |
+
<dim>-1</dim>
|
55 |
+
</port>
|
56 |
+
</output>
|
57 |
+
</layer>
|
58 |
+
<layer id="4" name="Constant_36" type="Const" version="opset1">
|
59 |
+
<data element_type="u8" shape="10" offset="587448" size="10" />
|
60 |
+
<output>
|
61 |
+
<port id="0" precision="U8">
|
62 |
+
<dim>10</dim>
|
63 |
+
</port>
|
64 |
+
</output>
|
65 |
+
</layer>
|
66 |
+
<layer id="5" name="Constant_38" type="Const" version="opset1">
|
67 |
+
<data element_type="u8" shape="2" offset="587458" size="2" />
|
68 |
+
<output>
|
69 |
+
<port id="0" precision="U8">
|
70 |
+
<dim>2</dim>
|
71 |
+
</port>
|
72 |
+
</output>
|
73 |
+
</layer>
|
74 |
+
<layer id="6" name="RegexNormalization_39" type="RegexNormalization" version="extension">
|
75 |
+
<data global_replace="true" />
|
76 |
+
<input>
|
77 |
+
<port id="0" precision="I32">
|
78 |
+
<dim>-1</dim>
|
79 |
+
</port>
|
80 |
+
<port id="1" precision="I32">
|
81 |
+
<dim>-1</dim>
|
82 |
+
</port>
|
83 |
+
<port id="2" precision="U8">
|
84 |
+
<dim>-1</dim>
|
85 |
+
</port>
|
86 |
+
<port id="3" precision="U8">
|
87 |
+
<dim>10</dim>
|
88 |
+
</port>
|
89 |
+
<port id="4" precision="U8">
|
90 |
+
<dim>2</dim>
|
91 |
+
</port>
|
92 |
+
</input>
|
93 |
+
<output>
|
94 |
+
<port id="5" precision="I32">
|
95 |
+
<dim>-1</dim>
|
96 |
+
</port>
|
97 |
+
<port id="6" precision="I32">
|
98 |
+
<dim>-1</dim>
|
99 |
+
</port>
|
100 |
+
<port id="7" precision="U8">
|
101 |
+
<dim>-1</dim>
|
102 |
+
</port>
|
103 |
+
</output>
|
104 |
+
</layer>
|
105 |
+
<layer id="7" name="StringTensorPack_40" type="StringTensorPack" version="extension">
|
106 |
+
<data mode="begins_ends" />
|
107 |
+
<input>
|
108 |
+
<port id="0" precision="I32">
|
109 |
+
<dim>-1</dim>
|
110 |
+
</port>
|
111 |
+
<port id="1" precision="I32">
|
112 |
+
<dim>-1</dim>
|
113 |
+
</port>
|
114 |
+
<port id="2" precision="U8">
|
115 |
+
<dim>-1</dim>
|
116 |
+
</port>
|
117 |
+
</input>
|
118 |
+
<output>
|
119 |
+
<port id="3" precision="STRING" names="string_output">
|
120 |
+
<dim>-1</dim>
|
121 |
+
</port>
|
122 |
+
</output>
|
123 |
+
</layer>
|
124 |
+
<layer id="8" name="Result_41" type="Result" version="opset1">
|
125 |
+
<input>
|
126 |
+
<port id="0" precision="STRING">
|
127 |
+
<dim>-1</dim>
|
128 |
+
</port>
|
129 |
+
</input>
|
130 |
+
</layer>
|
131 |
+
</layers>
|
132 |
+
<edges>
|
133 |
+
<edge from-layer="0" from-port="0" to-layer="2" to-port="0" />
|
134 |
+
<edge from-layer="1" from-port="0" to-layer="3" to-port="0" />
|
135 |
+
<edge from-layer="2" from-port="1" to-layer="3" to-port="1" />
|
136 |
+
<edge from-layer="3" from-port="2" to-layer="6" to-port="0" />
|
137 |
+
<edge from-layer="3" from-port="3" to-layer="6" to-port="1" />
|
138 |
+
<edge from-layer="3" from-port="4" to-layer="6" to-port="2" />
|
139 |
+
<edge from-layer="4" from-port="0" to-layer="6" to-port="3" />
|
140 |
+
<edge from-layer="5" from-port="0" to-layer="6" to-port="4" />
|
141 |
+
<edge from-layer="6" from-port="5" to-layer="7" to-port="0" />
|
142 |
+
<edge from-layer="6" from-port="6" to-layer="7" to-port="1" />
|
143 |
+
<edge from-layer="6" from-port="7" to-layer="7" to-port="2" />
|
144 |
+
<edge from-layer="7" from-port="3" to-layer="8" to-port="0" />
|
145 |
+
</edges>
|
146 |
+
<rt_info>
|
147 |
+
<bos_token_id value="1" />
|
148 |
+
<chat_template value="{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + ' ' + message['content'] + '<|im_end|>' + ' '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant ' }}{% endif %}" />
|
149 |
+
<eos_token_id value="32768" />
|
150 |
+
<original_tokenizer_class value="<class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
|
151 |
+
<pad_token_id value="2" />
|
152 |
+
</rt_info>
|
153 |
+
</net>
|
openvino_tokenizer.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f1db645f16bb1edb046a19c7f224affeda7b0120a545ae663ab90f6063da15a3
|
3 |
+
size 587474
|
openvino_tokenizer.xml
ADDED
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<net name="tokenizer" version="11">
|
3 |
+
<layers>
|
4 |
+
<layer id="0" name="string_input" type="Parameter" version="opset1">
|
5 |
+
<data shape="?" element_type="string" />
|
6 |
+
<output>
|
7 |
+
<port id="0" precision="STRING" names="string_input">
|
8 |
+
<dim>-1</dim>
|
9 |
+
</port>
|
10 |
+
</output>
|
11 |
+
</layer>
|
12 |
+
<layer id="1" name="Constant_12" 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_1" type="Const" version="opset1">
|
19 |
+
<data element_type="u8" shape="587448" offset="4" size="587448" />
|
20 |
+
<output>
|
21 |
+
<port id="0" precision="U8">
|
22 |
+
<dim>587448</dim>
|
23 |
+
</port>
|
24 |
+
</output>
|
25 |
+
</layer>
|
26 |
+
<layer id="3" name="StringTensorUnpack_4" type="StringTensorUnpack" version="extension">
|
27 |
+
<data mode="begins_ends" />
|
28 |
+
<input>
|
29 |
+
<port id="0" precision="STRING">
|
30 |
+
<dim>-1</dim>
|
31 |
+
</port>
|
32 |
+
</input>
|
33 |
+
<output>
|
34 |
+
<port id="1" precision="I32">
|
35 |
+
<dim>-1</dim>
|
36 |
+
</port>
|
37 |
+
<port id="2" precision="I32">
|
38 |
+
<dim>-1</dim>
|
39 |
+
</port>
|
40 |
+
<port id="3" precision="U8">
|
41 |
+
<dim>-1</dim>
|
42 |
+
</port>
|
43 |
+
</output>
|
44 |
+
</layer>
|
45 |
+
<layer id="4" name="Constant_6" type="Const" version="opset1">
|
46 |
+
<data element_type="u8" shape="7" offset="587452" size="7" />
|
47 |
+
<output>
|
48 |
+
<port id="0" precision="U8">
|
49 |
+
<dim>7</dim>
|
50 |
+
</port>
|
51 |
+
</output>
|
52 |
+
</layer>
|
53 |
+
<layer id="5" name="Constant_8" type="Const" version="opset1">
|
54 |
+
<data element_type="u8" shape="3" offset="587459" size="3" />
|
55 |
+
<output>
|
56 |
+
<port id="0" precision="U8">
|
57 |
+
<dim>3</dim>
|
58 |
+
</port>
|
59 |
+
</output>
|
60 |
+
</layer>
|
61 |
+
<layer id="6" name="RegexNormalization_9" type="RegexNormalization" version="extension">
|
62 |
+
<data global_replace="true" />
|
63 |
+
<input>
|
64 |
+
<port id="0" precision="I32">
|
65 |
+
<dim>-1</dim>
|
66 |
+
</port>
|
67 |
+
<port id="1" precision="I32">
|
68 |
+
<dim>-1</dim>
|
69 |
+
</port>
|
70 |
+
<port id="2" precision="U8">
|
71 |
+
<dim>-1</dim>
|
72 |
+
</port>
|
73 |
+
<port id="3" precision="U8">
|
74 |
+
<dim>7</dim>
|
75 |
+
</port>
|
76 |
+
<port id="4" precision="U8">
|
77 |
+
<dim>3</dim>
|
78 |
+
</port>
|
79 |
+
</input>
|
80 |
+
<output>
|
81 |
+
<port id="5" precision="I32">
|
82 |
+
<dim>-1</dim>
|
83 |
+
</port>
|
84 |
+
<port id="6" precision="I32">
|
85 |
+
<dim>-1</dim>
|
86 |
+
</port>
|
87 |
+
<port id="7" precision="U8">
|
88 |
+
<dim>-1</dim>
|
89 |
+
</port>
|
90 |
+
</output>
|
91 |
+
</layer>
|
92 |
+
<layer id="7" name="StringTensorPack_10" type="StringTensorPack" version="extension">
|
93 |
+
<data mode="begins_ends" />
|
94 |
+
<input>
|
95 |
+
<port id="0" precision="I32">
|
96 |
+
<dim>-1</dim>
|
97 |
+
</port>
|
98 |
+
<port id="1" precision="I32">
|
99 |
+
<dim>-1</dim>
|
100 |
+
</port>
|
101 |
+
<port id="2" precision="U8">
|
102 |
+
<dim>-1</dim>
|
103 |
+
</port>
|
104 |
+
</input>
|
105 |
+
<output>
|
106 |
+
<port id="3" precision="STRING">
|
107 |
+
<dim>-1</dim>
|
108 |
+
</port>
|
109 |
+
</output>
|
110 |
+
</layer>
|
111 |
+
<layer id="8" name="SentencepieceTokenizer_11" type="SentencepieceTokenizer" version="extension">
|
112 |
+
<data nbest_size="0" alpha="0" add_bos="true" add_eos="false" reverse="true" />
|
113 |
+
<input>
|
114 |
+
<port id="0" precision="U8">
|
115 |
+
<dim>587448</dim>
|
116 |
+
</port>
|
117 |
+
<port id="1" precision="STRING">
|
118 |
+
<dim>-1</dim>
|
119 |
+
</port>
|
120 |
+
</input>
|
121 |
+
<output>
|
122 |
+
<port id="2" precision="I64">
|
123 |
+
<dim>-1</dim>
|
124 |
+
<dim>2</dim>
|
125 |
+
</port>
|
126 |
+
<port id="3" precision="I32">
|
127 |
+
<dim>-1</dim>
|
128 |
+
</port>
|
129 |
+
<port id="4" precision="I64">
|
130 |
+
<dim>2</dim>
|
131 |
+
</port>
|
132 |
+
</output>
|
133 |
+
</layer>
|
134 |
+
<layer id="9" name="Broadcast_13" type="Broadcast" version="opset3">
|
135 |
+
<data mode="numpy" />
|
136 |
+
<input>
|
137 |
+
<port id="0" precision="I32" />
|
138 |
+
<port id="1" precision="I64">
|
139 |
+
<dim>2</dim>
|
140 |
+
</port>
|
141 |
+
</input>
|
142 |
+
<output>
|
143 |
+
<port id="2" precision="I32">
|
144 |
+
<dim>-1</dim>
|
145 |
+
<dim>-1</dim>
|
146 |
+
</port>
|
147 |
+
</output>
|
148 |
+
</layer>
|
149 |
+
<layer id="10" name="Constant_14" type="Const" version="opset1">
|
150 |
+
<data element_type="i32" shape="" offset="587462" size="4" />
|
151 |
+
<output>
|
152 |
+
<port id="0" precision="I32" />
|
153 |
+
</output>
|
154 |
+
</layer>
|
155 |
+
<layer id="11" name="ShapeOf_15" type="ShapeOf" version="opset3">
|
156 |
+
<data output_type="i64" />
|
157 |
+
<input>
|
158 |
+
<port id="0" precision="I32">
|
159 |
+
<dim>-1</dim>
|
160 |
+
</port>
|
161 |
+
</input>
|
162 |
+
<output>
|
163 |
+
<port id="1" precision="I64">
|
164 |
+
<dim>1</dim>
|
165 |
+
</port>
|
166 |
+
</output>
|
167 |
+
</layer>
|
168 |
+
<layer id="12" name="Broadcast_16" type="Broadcast" version="opset3">
|
169 |
+
<data mode="numpy" />
|
170 |
+
<input>
|
171 |
+
<port id="0" precision="I32" />
|
172 |
+
<port id="1" precision="I64">
|
173 |
+
<dim>1</dim>
|
174 |
+
</port>
|
175 |
+
</input>
|
176 |
+
<output>
|
177 |
+
<port id="2" precision="I32">
|
178 |
+
<dim>-1</dim>
|
179 |
+
</port>
|
180 |
+
</output>
|
181 |
+
</layer>
|
182 |
+
<layer id="13" name="ScatterNDUpdate_20" type="ScatterNDUpdate" version="opset4">
|
183 |
+
<input>
|
184 |
+
<port id="0" precision="I32">
|
185 |
+
<dim>-1</dim>
|
186 |
+
<dim>-1</dim>
|
187 |
+
</port>
|
188 |
+
<port id="1" precision="I64">
|
189 |
+
<dim>-1</dim>
|
190 |
+
<dim>2</dim>
|
191 |
+
</port>
|
192 |
+
<port id="2" precision="I32">
|
193 |
+
<dim>-1</dim>
|
194 |
+
</port>
|
195 |
+
</input>
|
196 |
+
<output>
|
197 |
+
<port id="3" precision="I32">
|
198 |
+
<dim>-1</dim>
|
199 |
+
<dim>-1</dim>
|
200 |
+
</port>
|
201 |
+
</output>
|
202 |
+
</layer>
|
203 |
+
<layer id="14" name="Constant_24" type="Const" version="opset1">
|
204 |
+
<data element_type="i32" shape="1" offset="587466" size="4" />
|
205 |
+
<output>
|
206 |
+
<port id="0" precision="I32">
|
207 |
+
<dim>1</dim>
|
208 |
+
</port>
|
209 |
+
</output>
|
210 |
+
</layer>
|
211 |
+
<layer id="15" name="Reverse_25" type="Reverse" version="opset1">
|
212 |
+
<data mode="index" />
|
213 |
+
<input>
|
214 |
+
<port id="0" precision="I32">
|
215 |
+
<dim>-1</dim>
|
216 |
+
<dim>-1</dim>
|
217 |
+
</port>
|
218 |
+
<port id="1" precision="I32">
|
219 |
+
<dim>1</dim>
|
220 |
+
</port>
|
221 |
+
</input>
|
222 |
+
<output>
|
223 |
+
<port id="2" precision="I32">
|
224 |
+
<dim>-1</dim>
|
225 |
+
<dim>-1</dim>
|
226 |
+
</port>
|
227 |
+
</output>
|
228 |
+
</layer>
|
229 |
+
<layer id="16" name="Reverse_25" type="Convert" version="opset1">
|
230 |
+
<data destination_type="i64" />
|
231 |
+
<input>
|
232 |
+
<port id="0" precision="I32">
|
233 |
+
<dim>-1</dim>
|
234 |
+
<dim>-1</dim>
|
235 |
+
</port>
|
236 |
+
</input>
|
237 |
+
<output>
|
238 |
+
<port id="1" precision="I64" names="attention_mask">
|
239 |
+
<dim>-1</dim>
|
240 |
+
<dim>-1</dim>
|
241 |
+
</port>
|
242 |
+
</output>
|
243 |
+
</layer>
|
244 |
+
<layer id="18" name="Constant_21" type="Const" version="opset1">
|
245 |
+
<data element_type="i32" shape="" offset="587470" size="4" />
|
246 |
+
<output>
|
247 |
+
<port id="0" precision="I32" />
|
248 |
+
</output>
|
249 |
+
</layer>
|
250 |
+
<layer id="19" name="Broadcast_22" type="Broadcast" version="opset3">
|
251 |
+
<data mode="bidirectional" />
|
252 |
+
<input>
|
253 |
+
<port id="0" precision="I32" />
|
254 |
+
<port id="1" precision="I64">
|
255 |
+
<dim>2</dim>
|
256 |
+
</port>
|
257 |
+
</input>
|
258 |
+
<output>
|
259 |
+
<port id="2" precision="I32">
|
260 |
+
<dim>-1</dim>
|
261 |
+
<dim>-1</dim>
|
262 |
+
</port>
|
263 |
+
</output>
|
264 |
+
</layer>
|
265 |
+
<layer id="20" name="ScatterNDUpdate_23" type="ScatterNDUpdate" version="opset4">
|
266 |
+
<input>
|
267 |
+
<port id="0" precision="I32">
|
268 |
+
<dim>-1</dim>
|
269 |
+
<dim>-1</dim>
|
270 |
+
</port>
|
271 |
+
<port id="1" precision="I64">
|
272 |
+
<dim>-1</dim>
|
273 |
+
<dim>2</dim>
|
274 |
+
</port>
|
275 |
+
<port id="2" precision="I32">
|
276 |
+
<dim>-1</dim>
|
277 |
+
</port>
|
278 |
+
</input>
|
279 |
+
<output>
|
280 |
+
<port id="3" precision="I32">
|
281 |
+
<dim>-1</dim>
|
282 |
+
<dim>-1</dim>
|
283 |
+
</port>
|
284 |
+
</output>
|
285 |
+
</layer>
|
286 |
+
<layer id="21" name="Constant_26" type="Const" version="opset1">
|
287 |
+
<data element_type="i32" shape="1" offset="587466" size="4" />
|
288 |
+
<output>
|
289 |
+
<port id="0" precision="I32">
|
290 |
+
<dim>1</dim>
|
291 |
+
</port>
|
292 |
+
</output>
|
293 |
+
</layer>
|
294 |
+
<layer id="22" name="Reverse_27" type="Reverse" version="opset1">
|
295 |
+
<data mode="index" />
|
296 |
+
<input>
|
297 |
+
<port id="0" precision="I32">
|
298 |
+
<dim>-1</dim>
|
299 |
+
<dim>-1</dim>
|
300 |
+
</port>
|
301 |
+
<port id="1" precision="I32">
|
302 |
+
<dim>1</dim>
|
303 |
+
</port>
|
304 |
+
</input>
|
305 |
+
<output>
|
306 |
+
<port id="2" precision="I32">
|
307 |
+
<dim>-1</dim>
|
308 |
+
<dim>-1</dim>
|
309 |
+
</port>
|
310 |
+
</output>
|
311 |
+
</layer>
|
312 |
+
<layer id="23" name="Reverse_27" type="Convert" version="opset1">
|
313 |
+
<data destination_type="i64" />
|
314 |
+
<input>
|
315 |
+
<port id="0" precision="I32">
|
316 |
+
<dim>-1</dim>
|
317 |
+
<dim>-1</dim>
|
318 |
+
</port>
|
319 |
+
</input>
|
320 |
+
<output>
|
321 |
+
<port id="1" precision="I64" names="input_ids">
|
322 |
+
<dim>-1</dim>
|
323 |
+
<dim>-1</dim>
|
324 |
+
</port>
|
325 |
+
</output>
|
326 |
+
</layer>
|
327 |
+
<layer id="24" name="Result_28" type="Result" version="opset1">
|
328 |
+
<input>
|
329 |
+
<port id="0" precision="I64">
|
330 |
+
<dim>-1</dim>
|
331 |
+
<dim>-1</dim>
|
332 |
+
</port>
|
333 |
+
</input>
|
334 |
+
</layer>
|
335 |
+
<layer id="17" name="Result_29" type="Result" version="opset1">
|
336 |
+
<input>
|
337 |
+
<port id="0" precision="I64">
|
338 |
+
<dim>-1</dim>
|
339 |
+
<dim>-1</dim>
|
340 |
+
</port>
|
341 |
+
</input>
|
342 |
+
</layer>
|
343 |
+
</layers>
|
344 |
+
<edges>
|
345 |
+
<edge from-layer="0" from-port="0" to-layer="3" to-port="0" />
|
346 |
+
<edge from-layer="1" from-port="0" to-layer="9" to-port="0" />
|
347 |
+
<edge from-layer="2" from-port="0" to-layer="8" to-port="0" />
|
348 |
+
<edge from-layer="3" from-port="1" to-layer="6" to-port="0" />
|
349 |
+
<edge from-layer="3" from-port="2" to-layer="6" to-port="1" />
|
350 |
+
<edge from-layer="3" from-port="3" to-layer="6" to-port="2" />
|
351 |
+
<edge from-layer="4" from-port="0" to-layer="6" to-port="3" />
|
352 |
+
<edge from-layer="5" from-port="0" to-layer="6" to-port="4" />
|
353 |
+
<edge from-layer="6" from-port="5" to-layer="7" to-port="0" />
|
354 |
+
<edge from-layer="6" from-port="6" to-layer="7" to-port="1" />
|
355 |
+
<edge from-layer="6" from-port="7" to-layer="7" to-port="2" />
|
356 |
+
<edge from-layer="7" from-port="3" to-layer="8" to-port="1" />
|
357 |
+
<edge from-layer="8" from-port="4" to-layer="9" to-port="1" />
|
358 |
+
<edge from-layer="8" from-port="3" to-layer="11" to-port="0" />
|
359 |
+
<edge from-layer="8" from-port="2" to-layer="13" to-port="1" />
|
360 |
+
<edge from-layer="8" from-port="4" to-layer="19" to-port="1" />
|
361 |
+
<edge from-layer="8" from-port="2" to-layer="20" to-port="1" />
|
362 |
+
<edge from-layer="8" from-port="3" to-layer="20" to-port="2" />
|
363 |
+
<edge from-layer="9" from-port="2" to-layer="13" to-port="0" />
|
364 |
+
<edge from-layer="10" from-port="0" to-layer="12" to-port="0" />
|
365 |
+
<edge from-layer="11" from-port="1" to-layer="12" to-port="1" />
|
366 |
+
<edge from-layer="12" from-port="2" to-layer="13" to-port="2" />
|
367 |
+
<edge from-layer="13" from-port="3" to-layer="15" to-port="0" />
|
368 |
+
<edge from-layer="14" from-port="0" to-layer="15" to-port="1" />
|
369 |
+
<edge from-layer="15" from-port="2" to-layer="16" to-port="0" />
|
370 |
+
<edge from-layer="16" from-port="1" to-layer="17" to-port="0" />
|
371 |
+
<edge from-layer="18" from-port="0" to-layer="19" to-port="0" />
|
372 |
+
<edge from-layer="19" from-port="2" to-layer="20" to-port="0" />
|
373 |
+
<edge from-layer="20" from-port="3" to-layer="22" to-port="0" />
|
374 |
+
<edge from-layer="21" from-port="0" to-layer="22" to-port="1" />
|
375 |
+
<edge from-layer="22" from-port="2" to-layer="23" to-port="0" />
|
376 |
+
<edge from-layer="23" from-port="1" to-layer="24" to-port="0" />
|
377 |
+
</edges>
|
378 |
+
<rt_info>
|
379 |
+
<bos_token_id value="1" />
|
380 |
+
<chat_template value="{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + ' ' + message['content'] + '<|im_end|>' + ' '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant ' }}{% endif %}" />
|
381 |
+
<eos_token_id value="32768" />
|
382 |
+
<original_tokenizer_class value="<class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
|
383 |
+
<pad_token_id value="2" />
|
384 |
+
</rt_info>
|
385 |
+
</net>
|