|
<?xml version="1.0"?>
|
|
<net name="tokenizer" version="11">
|
|
<layers>
|
|
<layer id="0" name="Parameter_412265" type="Parameter" version="opset1">
|
|
<data shape="?" element_type="string" />
|
|
<output>
|
|
<port id="0" precision="STRING" names="Parameter_412265">
|
|
<dim>-1</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="1" name="Constant_412272" 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="StringTensorUnpack_412266" 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="3" name="NormalizeUnicode_412267" type="NormalizeUnicode" version="extension">
|
|
<data normalization_form="NFC" />
|
|
<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>
|
|
</input>
|
|
<output>
|
|
<port id="3" precision="I32">
|
|
<dim>-1</dim>
|
|
</port>
|
|
<port id="4" precision="I32">
|
|
<dim>-1</dim>
|
|
</port>
|
|
<port id="5" precision="U8">
|
|
<dim>-1</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="4" name="ShapeOf_412268" 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="5" name="Constant_412269" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="6" name="Constant_412270" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="7" name="Gather_412271" 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="8" name="Constant_412273" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="9" name="Range_412274" 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="10" name="Constant_412276" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="11" name="Constant_412277" type="Const" version="opset1">
|
|
<data element_type="i64" shape="" offset="8" size="8" />
|
|
<output>
|
|
<port id="0" precision="I64" />
|
|
</output>
|
|
</layer>
|
|
<layer id="12" name="Add_412278" 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="13" name="Constant_412279" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="14" name="Range_412280" 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="15" name="Constant_412343" type="Const" version="opset1">
|
|
<data element_type="u8" shape="400" offset="16" size="400" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>400</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="16" name="RegexSplit_412344" 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>400</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="17" name="Constant_412349" type="Const" version="opset1">
|
|
<data element_type="u8" shape="110" offset="416" size="110" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>110</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="18" name="Constant_412346" type="Const" version="opset1">
|
|
<data element_type="u8" shape="390" offset="526" size="390" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>390</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="19" name="StringTensorUnpack_412347" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>390</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="20" name="RegexSplit_412350" 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>110</dim>
|
|
</port>
|
|
<port id="6" precision="I32">
|
|
<dim>-1</dim>
|
|
</port>
|
|
<port id="7" precision="I32">
|
|
<dim>-1</dim>
|
|
</port>
|
|
<port id="8" precision="U8">
|
|
<dim>-1</dim>
|
|
</port>
|
|
</input>
|
|
<output>
|
|
<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>
|
|
<port id="13" precision="U8">
|
|
<dim>-1</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="21" name="BytesToChars_412351" type="BytesToChars" version="extension">
|
|
<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>
|
|
</input>
|
|
<output>
|
|
<port id="5" precision="I32">
|
|
<dim>-1</dim>
|
|
</port>
|
|
<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="U8">
|
|
<dim>-1</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="22" name="Constant_412353" type="Const" version="opset1">
|
|
<data element_type="u8" shape="1976445" offset="916" size="1976445" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>1976445</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="23" name="StringTensorUnpack_412354" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>1976445</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="24" name="Constant_412434" type="Const" version="opset1">
|
|
<data element_type="u8" shape="2126008" offset="1977361" size="2126008" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>2126008</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="25" name="StringTensorUnpack_412435" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>2126008</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="26" name="Constant_412362" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="27" name="Constant_412356" type="Const" version="opset1">
|
|
<data element_type="u8" shape="390" offset="4103369" size="390" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>390</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="28" name="StringTensorUnpack_412357" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>390</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="ShapeOf_412358" 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="30" name="Constant_412359" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="31" name="Constant_412360" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="32" name="Gather_412361" 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="33" name="Constant_412363" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="34" name="Range_412364" 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="35" name="Constant_412366" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="36" name="Constant_412367" type="Const" version="opset1">
|
|
<data element_type="i64" shape="" offset="8" size="8" />
|
|
<output>
|
|
<port id="0" precision="I64" />
|
|
</output>
|
|
</layer>
|
|
<layer id="37" name="Add_412368" 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="38" name="Constant_412369" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="39" name="Range_412370" 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="40" name="BytesToChars_412432" type="BytesToChars" version="extension">
|
|
<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>
|
|
</input>
|
|
<output>
|
|
<port id="5" precision="I32">
|
|
<dim>-1</dim>
|
|
</port>
|
|
<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="U8">
|
|
<dim>-1</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="41" name="Constant_412436" type="Const" version="opset1">
|
|
<data element_type="i32" shape="22" offset="4103759" size="88" />
|
|
<output>
|
|
<port id="0" precision="I32">
|
|
<dim>22</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="42" name="BPETokenizer_412437" type="BPETokenizer" version="extension">
|
|
<data unk_token="" fuse_unk="false" suffix_indicator="" end_suffix="" byte_fallback="false" cache_capacity="30328" />
|
|
<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>22</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="43" name="Subtract_412438" 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="44" name="Constant_412439" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4103847" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="45" name="Minimum_412440" 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="46" name="Subtract_412441" 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="47" name="Subtract_412442" 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="48" name="Constant_412443" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="49" name="ReduceMax_412444" 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="50" name="Constant_412445" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4103851" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="51" name="RaggedToDense_412446" 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="52" name="Convert_412447" 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="53" name="Convert_412447" 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="55" name="RaggedToDense_412446.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="56" name="Result_412448" type="Result" version="opset1">
|
|
<input>
|
|
<port id="0" precision="I64">
|
|
<dim>-1</dim>
|
|
<dim>-1</dim>
|
|
</port>
|
|
</input>
|
|
</layer>
|
|
<layer id="54" name="Result_412449" 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="2" to-port="0" />
|
|
<edge from-layer="1" from-port="0" to-layer="9" to-port="0" />
|
|
<edge from-layer="2" from-port="1" to-layer="3" to-port="0" />
|
|
<edge from-layer="2" from-port="2" to-layer="3" to-port="1" />
|
|
<edge from-layer="2" from-port="3" to-layer="3" to-port="2" />
|
|
<edge from-layer="3" from-port="3" to-layer="4" to-port="0" />
|
|
<edge from-layer="3" from-port="3" to-layer="16" to-port="2" />
|
|
<edge from-layer="3" from-port="4" to-layer="16" to-port="3" />
|
|
<edge from-layer="3" from-port="5" to-layer="16" to-port="4" />
|
|
<edge from-layer="4" from-port="1" to-layer="7" to-port="0" />
|
|
<edge from-layer="5" from-port="0" to-layer="7" to-port="1" />
|
|
<edge from-layer="6" from-port="0" to-layer="7" to-port="2" />
|
|
<edge from-layer="7" from-port="3" to-layer="9" to-port="1" />
|
|
<edge from-layer="7" from-port="3" to-layer="12" to-port="0" />
|
|
<edge from-layer="8" from-port="0" to-layer="9" to-port="2" />
|
|
<edge from-layer="9" from-port="3" to-layer="16" to-port="0" />
|
|
<edge from-layer="10" from-port="0" to-layer="14" to-port="0" />
|
|
<edge from-layer="11" from-port="0" to-layer="12" to-port="1" />
|
|
<edge from-layer="12" from-port="2" to-layer="14" to-port="1" />
|
|
<edge from-layer="13" from-port="0" to-layer="14" to-port="2" />
|
|
<edge from-layer="14" from-port="3" to-layer="16" to-port="1" />
|
|
<edge from-layer="15" from-port="0" to-layer="16" to-port="5" />
|
|
<edge from-layer="16" from-port="6" to-layer="20" to-port="0" />
|
|
<edge from-layer="16" from-port="7" to-layer="20" to-port="1" />
|
|
<edge from-layer="16" from-port="8" to-layer="20" to-port="2" />
|
|
<edge from-layer="16" from-port="9" to-layer="20" to-port="3" />
|
|
<edge from-layer="16" from-port="10" to-layer="20" to-port="4" />
|
|
<edge from-layer="17" from-port="0" to-layer="20" to-port="5" />
|
|
<edge from-layer="18" from-port="0" to-layer="19" to-port="0" />
|
|
<edge from-layer="19" from-port="1" to-layer="20" to-port="6" />
|
|
<edge from-layer="19" from-port="2" to-layer="20" to-port="7" />
|
|
<edge from-layer="19" from-port="3" to-layer="20" to-port="8" />
|
|
<edge from-layer="20" from-port="9" to-layer="21" to-port="0" />
|
|
<edge from-layer="20" from-port="10" to-layer="21" to-port="1" />
|
|
<edge from-layer="20" from-port="11" to-layer="21" to-port="2" />
|
|
<edge from-layer="20" from-port="12" to-layer="21" to-port="3" />
|
|
<edge from-layer="20" from-port="13" to-layer="21" to-port="4" />
|
|
<edge from-layer="21" from-port="6" to-layer="42" to-port="1" />
|
|
<edge from-layer="21" from-port="7" to-layer="42" to-port="2" />
|
|
<edge from-layer="21" from-port="8" to-layer="42" to-port="3" />
|
|
<edge from-layer="21" from-port="9" to-layer="42" to-port="4" />
|
|
<edge from-layer="21" from-port="5" to-layer="42" to-port="0" />
|
|
<edge from-layer="22" from-port="0" to-layer="23" to-port="0" />
|
|
<edge from-layer="23" from-port="1" to-layer="42" to-port="5" />
|
|
<edge from-layer="23" from-port="2" to-layer="42" to-port="6" />
|
|
<edge from-layer="23" from-port="3" to-layer="42" to-port="7" />
|
|
<edge from-layer="24" from-port="0" to-layer="25" to-port="0" />
|
|
<edge from-layer="25" from-port="1" to-layer="42" to-port="8" />
|
|
<edge from-layer="25" from-port="2" to-layer="42" to-port="9" />
|
|
<edge from-layer="25" from-port="3" to-layer="42" to-port="10" />
|
|
<edge from-layer="26" from-port="0" to-layer="34" to-port="0" />
|
|
<edge from-layer="27" from-port="0" to-layer="28" to-port="0" />
|
|
<edge from-layer="28" from-port="1" to-layer="29" to-port="0" />
|
|
<edge from-layer="28" from-port="1" to-layer="40" to-port="2" />
|
|
<edge from-layer="28" from-port="2" to-layer="40" to-port="3" />
|
|
<edge from-layer="28" from-port="3" to-layer="40" to-port="4" />
|
|
<edge from-layer="29" from-port="1" to-layer="32" to-port="0" />
|
|
<edge from-layer="30" from-port="0" to-layer="32" to-port="1" />
|
|
<edge from-layer="31" from-port="0" to-layer="32" to-port="2" />
|
|
<edge from-layer="32" from-port="3" to-layer="34" to-port="1" />
|
|
<edge from-layer="32" from-port="3" to-layer="37" to-port="0" />
|
|
<edge from-layer="33" from-port="0" to-layer="34" to-port="2" />
|
|
<edge from-layer="34" from-port="3" to-layer="40" to-port="0" />
|
|
<edge from-layer="35" from-port="0" to-layer="39" to-port="0" />
|
|
<edge from-layer="36" from-port="0" to-layer="37" to-port="1" />
|
|
<edge from-layer="37" from-port="2" to-layer="39" to-port="1" />
|
|
<edge from-layer="38" from-port="0" to-layer="39" to-port="2" />
|
|
<edge from-layer="39" from-port="3" to-layer="40" to-port="1" />
|
|
<edge from-layer="40" from-port="7" to-layer="42" to-port="11" />
|
|
<edge from-layer="40" from-port="8" to-layer="42" to-port="12" />
|
|
<edge from-layer="40" from-port="9" to-layer="42" to-port="13" />
|
|
<edge from-layer="41" from-port="0" to-layer="42" to-port="14" />
|
|
<edge from-layer="42" from-port="16" to-layer="43" to-port="0" />
|
|
<edge from-layer="42" from-port="15" to-layer="43" to-port="1" />
|
|
<edge from-layer="42" from-port="16" to-layer="46" to-port="0" />
|
|
<edge from-layer="42" from-port="16" to-layer="47" to-port="0" />
|
|
<edge from-layer="42" from-port="16" to-layer="51" to-port="1" />
|
|
<edge from-layer="42" from-port="17" to-layer="51" to-port="2" />
|
|
<edge from-layer="43" from-port="2" to-layer="45" to-port="0" />
|
|
<edge from-layer="44" from-port="0" to-layer="45" to-port="1" />
|
|
<edge from-layer="45" from-port="2" to-layer="46" to-port="1" />
|
|
<edge from-layer="46" from-port="2" to-layer="47" to-port="1" />
|
|
<edge from-layer="46" from-port="2" to-layer="51" to-port="0" />
|
|
<edge from-layer="47" from-port="2" to-layer="49" to-port="0" />
|
|
<edge from-layer="48" from-port="0" to-layer="49" to-port="1" />
|
|
<edge from-layer="49" from-port="2" to-layer="51" to-port="3" />
|
|
<edge from-layer="50" from-port="0" to-layer="51" to-port="4" />
|
|
<edge from-layer="51" from-port="6" to-layer="52" to-port="0" />
|
|
<edge from-layer="51" from-port="5" to-layer="55" to-port="0" />
|
|
<edge from-layer="52" from-port="1" to-layer="53" to-port="0" />
|
|
<edge from-layer="53" from-port="1" to-layer="54" to-port="0" />
|
|
<edge from-layer="55" from-port="1" to-layer="56" to-port="0" />
|
|
</edges>
|
|
<rt_info>
|
|
<chat_template value="{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} {%- endif %} {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }} {%- else %} {%- if messages[0]['role'] == 'system' %} {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} {%- else %} {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} {%- endif %} {%- endif %} {%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %} {%- endfor %} {%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- endif %} " />
|
|
<eos_token_id value="151645" />
|
|
<original_tokenizer_class value="<class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>" />
|
|
<pad_token_id value="151643" />
|
|
</rt_info>
|
|
</net>
|
|
|