mistral-7b-instruct-v0.2-ov / openvino_tokenizer.xml
doberst's picture
Upload 11 files
602c611 verified
<?xml version="1.0"?>
<net name="tokenizer" version="11">
<layers>
<layer id="0" name="Parameter_259078" type="Parameter" version="opset1">
<data shape="?" element_type="string" />
<output>
<port id="0" precision="STRING" names="Parameter_259078">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="1" name="Constant_259182" type="Const" version="opset1">
<data element_type="i32" shape="" offset="0" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="2" name="Constant_259183" type="Const" version="opset1">
<data element_type="i32" shape="" offset="4" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="3" name="Constant_259184" type="Const" version="opset1">
<data element_type="i32" shape="1" offset="4" size="4" />
<output>
<port id="0" precision="I32">
<dim>1</dim>
</port>
</output>
</layer>
<layer id="4" name="Constant_259094" type="Const" version="opset1">
<data element_type="i32" shape="" offset="0" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="5" name="StringTensorUnpack_259079" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="STRING">
<dim>-1</dim>
</port>
</input>
<output>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
<port id="3" precision="U8">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="6" name="Constant_259081" type="Const" version="opset1">
<data element_type="u8" shape="1" offset="8" size="1" />
<output>
<port id="0" precision="U8">
<dim>1</dim>
</port>
</output>
</layer>
<layer id="7" name="Constant_259083" type="Const" version="opset1">
<data element_type="u8" shape="3" offset="9" size="3" />
<output>
<port id="0" precision="U8">
<dim>3</dim>
</port>
</output>
</layer>
<layer id="8" name="RegexNormalization_259084" type="RegexNormalization" version="extension">
<data global_replace="true" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="U8">
<dim>-1</dim>
</port>
<port id="3" precision="U8">
<dim>1</dim>
</port>
<port id="4" precision="U8">
<dim>3</dim>
</port>
</input>
<output>
<port id="5" precision="I32">
<dim>-1</dim>
</port>
<port id="6" precision="I32">
<dim>-1</dim>
</port>
<port id="7" precision="U8">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="9" name="Constant_259086" type="Const" version="opset1">
<data element_type="u8" shape="11" offset="12" size="11" />
<output>
<port id="0" precision="U8">
<dim>11</dim>
</port>
</output>
</layer>
<layer id="10" name="Constant_259088" type="Const" version="opset1">
<data element_type="u8" shape="5" offset="23" size="5" />
<output>
<port id="0" precision="U8">
<dim>5</dim>
</port>
</output>
</layer>
<layer id="11" name="RegexNormalization_259089" type="RegexNormalization" version="extension">
<data global_replace="true" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="U8">
<dim>-1</dim>
</port>
<port id="3" precision="U8">
<dim>11</dim>
</port>
<port id="4" precision="U8">
<dim>5</dim>
</port>
</input>
<output>
<port id="5" precision="I32">
<dim>-1</dim>
</port>
<port id="6" precision="I32">
<dim>-1</dim>
</port>
<port id="7" precision="U8">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="12" name="ShapeOf_259090" type="ShapeOf" version="opset3">
<data output_type="i64" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
</input>
<output>
<port id="1" precision="I64">
<dim>1</dim>
</port>
</output>
</layer>
<layer id="13" name="Constant_259091" type="Const" version="opset1">
<data element_type="i32" shape="" offset="0" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="14" name="Constant_259092" type="Const" version="opset1">
<data element_type="i32" shape="" offset="0" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="15" name="Gather_259093" type="Gather" version="opset8">
<data batch_dims="0" />
<input>
<port id="0" precision="I64">
<dim>1</dim>
</port>
<port id="1" precision="I32" />
<port id="2" precision="I32" />
</input>
<output>
<port id="3" precision="I64" />
</output>
</layer>
<layer id="16" name="Constant_259095" type="Const" version="opset1">
<data element_type="i32" shape="" offset="4" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="17" name="Range_259096" type="Range" version="opset4">
<data output_type="i32" />
<input>
<port id="0" precision="I32" />
<port id="1" precision="I64" />
<port id="2" precision="I32" />
</input>
<output>
<port id="3" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="18" name="Constant_259098" type="Const" version="opset1">
<data element_type="i32" shape="" offset="4" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="19" name="Constant_259099" type="Const" version="opset1">
<data element_type="i64" shape="" offset="28" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="20" name="Add_259100" type="Add" version="opset1">
<data auto_broadcast="numpy" />
<input>
<port id="0" precision="I64" />
<port id="1" precision="I64" />
</input>
<output>
<port id="2" precision="I64" />
</output>
</layer>
<layer id="21" name="Constant_259101" type="Const" version="opset1">
<data element_type="i32" shape="" offset="4" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="22" name="Range_259102" type="Range" version="opset4">
<data output_type="i32" />
<input>
<port id="0" precision="I32" />
<port id="1" precision="I64" />
<port id="2" precision="I32" />
</input>
<output>
<port id="3" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="23" name="Constant_259165" type="Const" version="opset1">
<data element_type="u8" shape="13" offset="36" size="13" />
<output>
<port id="0" precision="U8">
<dim>13</dim>
</port>
</output>
</layer>
<layer id="24" name="RegexSplit_259166" type="RegexSplit" version="extension">
<data behaviour="isolate" invert="false" max_splits="-1" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
<port id="3" precision="I32">
<dim>-1</dim>
</port>
<port id="4" precision="U8">
<dim>-1</dim>
</port>
<port id="5" precision="U8">
<dim>13</dim>
</port>
</input>
<output>
<port id="6" precision="I32">
<dim>-1</dim>
</port>
<port id="7" precision="I32">
<dim>-1</dim>
</port>
<port id="8" precision="I32">
<dim>-1</dim>
</port>
<port id="9" precision="I32">
<dim>-1</dim>
</port>
<port id="10" precision="U8">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="25" name="Constant_259168" type="Const" version="opset1">
<data element_type="u8" shape="332678" offset="49" size="332678" />
<output>
<port id="0" precision="U8">
<dim>332678</dim>
</port>
</output>
</layer>
<layer id="26" name="StringTensorUnpack_259169" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="U8">
<dim>332678</dim>
</port>
</input>
<output>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
<port id="3" precision="U8">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="27" name="Constant_259174" type="Const" version="opset1">
<data element_type="u8" shape="700363" offset="332727" size="700363" />
<output>
<port id="0" precision="U8">
<dim>700363</dim>
</port>
</output>
</layer>
<layer id="28" name="StringTensorUnpack_259175" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="U8">
<dim>700363</dim>
</port>
</input>
<output>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
<port id="3" precision="U8">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="29" name="Constant_259171" type="Const" version="opset1">
<data element_type="u8" shape="23" offset="1033090" size="23" />
<output>
<port id="0" precision="U8">
<dim>23</dim>
</port>
</output>
</layer>
<layer id="30" name="StringTensorUnpack_259172" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="U8">
<dim>23</dim>
</port>
</input>
<output>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
<port id="3" precision="U8">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="31" name="Constant_259176" type="Const" version="opset1">
<data element_type="i32" shape="2" offset="1033113" size="8" />
<output>
<port id="0" precision="I32">
<dim>2</dim>
</port>
</output>
</layer>
<layer id="32" name="BPETokenizer_259177" type="BPETokenizer" version="extension">
<data unk_token="&lt;unk>" fuse_unk="true" suffix_indicator="" end_suffix="" byte_fallback="true" cache_capacity="20000" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
<port id="3" precision="I32">
<dim>-1</dim>
</port>
<port id="4" precision="U8">
<dim>-1</dim>
</port>
<port id="5" precision="I32">
<dim>-1</dim>
</port>
<port id="6" precision="I32">
<dim>-1</dim>
</port>
<port id="7" precision="U8">
<dim>-1</dim>
</port>
<port id="8" precision="I32">
<dim>-1</dim>
</port>
<port id="9" precision="I32">
<dim>-1</dim>
</port>
<port id="10" precision="U8">
<dim>-1</dim>
</port>
<port id="11" precision="I32">
<dim>-1</dim>
</port>
<port id="12" precision="I32">
<dim>-1</dim>
</port>
<port id="13" precision="U8">
<dim>-1</dim>
</port>
<port id="14" precision="I32">
<dim>2</dim>
</port>
</input>
<output>
<port id="15" precision="I32">
<dim>-1</dim>
</port>
<port id="16" precision="I32">
<dim>-1</dim>
</port>
<port id="17" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="33" name="Subtract_259178" type="Subtract" version="opset1">
<data auto_broadcast="numpy" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
</input>
<output>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="34" name="Constant_259179" type="Const" version="opset1">
<data element_type="i32" shape="" offset="1033121" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="35" name="Minimum_259180" type="Minimum" version="opset1">
<data auto_broadcast="numpy" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32" />
</input>
<output>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="36" name="Subtract_259181" type="Subtract" version="opset1">
<data auto_broadcast="numpy" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
</input>
<output>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="37" name="Constant_259185" type="Const" version="opset1">
<data element_type="i32" shape="2" offset="1033125" size="8" />
<output>
<port id="0" precision="I32">
<dim>2</dim>
</port>
</output>
</layer>
<layer id="38" name="CombineSegments_259186" type="CombineSegments" version="extension">
<input>
<port id="0" precision="I32" />
<port id="1" precision="I32" />
<port id="2" precision="I32">
<dim>1</dim>
</port>
<port id="3" precision="I32">
<dim>-1</dim>
</port>
<port id="4" precision="I32">
<dim>-1</dim>
</port>
<port id="5" precision="I32">
<dim>-1</dim>
</port>
<port id="6" precision="I32">
<dim>2</dim>
</port>
</input>
<output>
<port id="7" precision="I32">
<dim>-1</dim>
</port>
<port id="8" precision="I32">
<dim>-1</dim>
</port>
<port id="9" precision="I32">
<dim>-1</dim>
</port>
<port id="10" precision="I32">
<dim>-1</dim>
</port>
<port id="11" precision="I32">
<dim>-1</dim>
</port>
<port id="12" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="39" name="Subtract_259187" type="Subtract" version="opset1">
<data auto_broadcast="numpy" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
</input>
<output>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="40" name="Constant_259188" type="Const" version="opset1">
<data element_type="i32" shape="" offset="0" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="41" name="ReduceMax_259189" type="ReduceMax" version="opset1">
<data keep_dims="false" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32" />
</input>
<output>
<port id="2" precision="I32" />
</output>
</layer>
<layer id="42" name="Constant_259190" type="Const" version="opset1">
<data element_type="i32" shape="" offset="0" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="43" name="RaggedToDense_259191" type="RaggedToDense" version="extension">
<data pad_right="false" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
</port>
<port id="1" precision="I32">
<dim>-1</dim>
</port>
<port id="2" precision="I32">
<dim>-1</dim>
</port>
<port id="3" precision="I32" />
<port id="4" precision="I32" />
</input>
<output>
<port id="5" precision="I32">
<dim>-1</dim>
<dim>-1</dim>
</port>
<port id="6" precision="BOOL">
<dim>-1</dim>
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="44" name="Convert_259192" type="Convert" version="opset1">
<data destination_type="i32" />
<input>
<port id="0" precision="BOOL">
<dim>-1</dim>
<dim>-1</dim>
</port>
</input>
<output>
<port id="1" precision="I32">
<dim>-1</dim>
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="45" name="Convert_259192" type="Convert" version="opset1">
<data destination_type="i64" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
<dim>-1</dim>
</port>
</input>
<output>
<port id="1" precision="I64" names="attention_mask">
<dim>-1</dim>
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="47" name="RaggedToDense_259191.0" type="Convert" version="opset1">
<data destination_type="i64" />
<input>
<port id="0" precision="I32">
<dim>-1</dim>
<dim>-1</dim>
</port>
</input>
<output>
<port id="1" precision="I64" names="input_ids">
<dim>-1</dim>
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="48" name="Result_259195" type="Result" version="opset1">
<input>
<port id="0" precision="I64">
<dim>-1</dim>
<dim>-1</dim>
</port>
</input>
</layer>
<layer id="46" name="Result_259197" type="Result" version="opset1">
<input>
<port id="0" precision="I64">
<dim>-1</dim>
<dim>-1</dim>
</port>
</input>
</layer>
</layers>
<edges>
<edge from-layer="0" from-port="0" to-layer="5" to-port="0" />
<edge from-layer="1" from-port="0" to-layer="38" to-port="0" />
<edge from-layer="2" from-port="0" to-layer="38" to-port="1" />
<edge from-layer="3" from-port="0" to-layer="38" to-port="2" />
<edge from-layer="4" from-port="0" to-layer="17" to-port="0" />
<edge from-layer="5" from-port="1" to-layer="8" to-port="0" />
<edge from-layer="5" from-port="2" to-layer="8" to-port="1" />
<edge from-layer="5" from-port="3" to-layer="8" to-port="2" />
<edge from-layer="6" from-port="0" to-layer="8" to-port="3" />
<edge from-layer="7" from-port="0" to-layer="8" to-port="4" />
<edge from-layer="8" from-port="5" to-layer="11" to-port="0" />
<edge from-layer="8" from-port="6" to-layer="11" to-port="1" />
<edge from-layer="8" from-port="7" to-layer="11" to-port="2" />
<edge from-layer="9" from-port="0" to-layer="11" to-port="3" />
<edge from-layer="10" from-port="0" to-layer="11" to-port="4" />
<edge from-layer="11" from-port="5" to-layer="12" to-port="0" />
<edge from-layer="11" from-port="5" to-layer="24" to-port="2" />
<edge from-layer="11" from-port="6" to-layer="24" to-port="3" />
<edge from-layer="11" from-port="7" to-layer="24" to-port="4" />
<edge from-layer="12" from-port="1" to-layer="15" to-port="0" />
<edge from-layer="13" from-port="0" to-layer="15" to-port="1" />
<edge from-layer="14" from-port="0" to-layer="15" to-port="2" />
<edge from-layer="15" from-port="3" to-layer="17" to-port="1" />
<edge from-layer="15" from-port="3" to-layer="20" to-port="0" />
<edge from-layer="16" from-port="0" to-layer="17" to-port="2" />
<edge from-layer="17" from-port="3" to-layer="24" to-port="0" />
<edge from-layer="18" from-port="0" to-layer="22" to-port="0" />
<edge from-layer="19" from-port="0" to-layer="20" to-port="1" />
<edge from-layer="20" from-port="2" to-layer="22" to-port="1" />
<edge from-layer="21" from-port="0" to-layer="22" to-port="2" />
<edge from-layer="22" from-port="3" to-layer="24" to-port="1" />
<edge from-layer="23" from-port="0" to-layer="24" to-port="5" />
<edge from-layer="24" from-port="6" to-layer="32" to-port="0" />
<edge from-layer="24" from-port="7" to-layer="32" to-port="1" />
<edge from-layer="24" from-port="8" to-layer="32" to-port="2" />
<edge from-layer="24" from-port="9" to-layer="32" to-port="3" />
<edge from-layer="24" from-port="10" to-layer="32" to-port="4" />
<edge from-layer="25" from-port="0" to-layer="26" to-port="0" />
<edge from-layer="26" from-port="2" to-layer="32" to-port="6" />
<edge from-layer="26" from-port="3" to-layer="32" to-port="7" />
<edge from-layer="26" from-port="1" to-layer="32" to-port="5" />
<edge from-layer="27" from-port="0" to-layer="28" to-port="0" />
<edge from-layer="28" from-port="2" to-layer="32" to-port="9" />
<edge from-layer="28" from-port="3" to-layer="32" to-port="10" />
<edge from-layer="28" from-port="1" to-layer="32" to-port="8" />
<edge from-layer="29" from-port="0" to-layer="30" to-port="0" />
<edge from-layer="30" from-port="1" to-layer="32" to-port="11" />
<edge from-layer="30" from-port="2" to-layer="32" to-port="12" />
<edge from-layer="30" from-port="3" to-layer="32" to-port="13" />
<edge from-layer="31" from-port="0" to-layer="32" to-port="14" />
<edge from-layer="32" from-port="16" to-layer="33" to-port="0" />
<edge from-layer="32" from-port="15" to-layer="33" to-port="1" />
<edge from-layer="32" from-port="16" to-layer="38" to-port="4" />
<edge from-layer="32" from-port="17" to-layer="38" to-port="5" />
<edge from-layer="32" from-port="16" to-layer="36" to-port="0" />
<edge from-layer="33" from-port="2" to-layer="35" to-port="0" />
<edge from-layer="34" from-port="0" to-layer="35" to-port="1" />
<edge from-layer="35" from-port="2" to-layer="36" to-port="1" />
<edge from-layer="36" from-port="2" to-layer="38" to-port="3" />
<edge from-layer="37" from-port="0" to-layer="38" to-port="6" />
<edge from-layer="38" from-port="8" to-layer="39" to-port="0" />
<edge from-layer="38" from-port="7" to-layer="39" to-port="1" />
<edge from-layer="38" from-port="7" to-layer="43" to-port="0" />
<edge from-layer="38" from-port="8" to-layer="43" to-port="1" />
<edge from-layer="38" from-port="9" to-layer="43" to-port="2" />
<edge from-layer="39" from-port="2" to-layer="41" to-port="0" />
<edge from-layer="40" from-port="0" to-layer="41" to-port="1" />
<edge from-layer="41" from-port="2" to-layer="43" to-port="3" />
<edge from-layer="42" from-port="0" to-layer="43" to-port="4" />
<edge from-layer="43" from-port="6" to-layer="44" to-port="0" />
<edge from-layer="43" from-port="5" to-layer="47" to-port="0" />
<edge from-layer="44" from-port="1" to-layer="45" to-port="0" />
<edge from-layer="45" from-port="1" to-layer="46" to-port="0" />
<edge from-layer="47" from-port="1" to-layer="48" to-port="0" />
</edges>
<rt_info>
<bos_token_id value="1" />
<chat_template value="{%- if messages[0]['role'] == 'system' %}&#10; {%- set system_message = messages[0]['content'] %}&#10; {%- set loop_messages = messages[1:] %}&#10;{%- else %}&#10; {%- set loop_messages = messages %}&#10;{%- endif %}&#10;&#10;{{- bos_token }}&#10;{%- for message in loop_messages %}&#10; {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}&#10; {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}&#10; {%- endif %}&#10; {%- if message['role'] == 'user' %}&#10; {%- if loop.first and system_message is defined %}&#10; {{- ' [INST] ' + system_message + '\n\n' + message['content'] + ' [/INST]' }}&#10; {%- else %}&#10; {{- ' [INST] ' + message['content'] + ' [/INST]' }}&#10; {%- endif %}&#10; {%- elif message['role'] == 'assistant' %}&#10; {{- ' ' + message['content'] + eos_token}}&#10; {%- else %}&#10; {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}&#10; {%- endif %}&#10;{%- endfor %}&#10;" />
<eos_token_id value="2" />
<original_tokenizer_class value="&lt;class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" />
</rt_info>
</net>