|
<?xml version="1.0"?>
|
|
<net name="tokenizer" version="11">
|
|
<layers>
|
|
<layer id="0" name="Parameter_322094" type="Parameter" version="opset1">
|
|
<data shape="?" element_type="string" />
|
|
<output>
|
|
<port id="0" precision="STRING" names="Parameter_322094">
|
|
<dim>-1</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="1" name="Constant_322270" 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_322271" 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_322272" 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_322100" 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_322095" 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="ShapeOf_322096" 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="7" name="Constant_322097" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="8" name="Constant_322098" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="9" name="Gather_322099" 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="10" name="Constant_322101" 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="Range_322102" 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="12" name="Constant_322104" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="13" name="Constant_322105" type="Const" version="opset1">
|
|
<data element_type="i64" shape="" offset="8" size="8" />
|
|
<output>
|
|
<port id="0" precision="I64" />
|
|
</output>
|
|
</layer>
|
|
<layer id="14" name="Add_322106" 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="15" name="Constant_322107" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="16" name="Range_322108" 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="17" name="Constant_322171" type="Const" version="opset1">
|
|
<data element_type="u8" shape="15857" offset="16" size="15857" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>15857</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="18" name="RegexSplit_322172" 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>15857</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="19" name="Constant_322177" type="Const" version="opset1">
|
|
<data element_type="u8" shape="211" offset="15873" size="211" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>211</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="20" name="Constant_322174" type="Const" version="opset1">
|
|
<data element_type="u8" shape="16861" offset="16084" size="16861" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>16861</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="21" name="StringTensorUnpack_322175" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>16861</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="22" name="RegexSplit_322178" 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>211</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="23" name="BytesToChars_322179" 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="24" name="Constant_322181" type="Const" version="opset1">
|
|
<data element_type="u8" shape="1796135" offset="32945" size="1796135" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>1796135</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="25" name="StringTensorUnpack_322182" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>1796135</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_322262" type="Const" version="opset1">
|
|
<data element_type="u8" shape="3935701" offset="1829080" size="3935701" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>3935701</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="27" name="StringTensorUnpack_322263" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>3935701</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="28" name="Constant_322190" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="29" name="Constant_322184" type="Const" version="opset1">
|
|
<data element_type="u8" shape="16861" offset="5764781" size="16861" />
|
|
<output>
|
|
<port id="0" precision="U8">
|
|
<dim>16861</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="30" name="StringTensorUnpack_322185" type="StringTensorUnpack" version="extension">
|
|
<data mode="begins_ends" />
|
|
<input>
|
|
<port id="0" precision="U8">
|
|
<dim>16861</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="ShapeOf_322186" 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="32" name="Constant_322187" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="33" name="Constant_322188" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="34" name="Gather_322189" 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="35" name="Constant_322191" 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="Range_322192" 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="37" name="Constant_322194" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="38" name="Constant_322195" type="Const" version="opset1">
|
|
<data element_type="i64" shape="" offset="8" size="8" />
|
|
<output>
|
|
<port id="0" precision="I64" />
|
|
</output>
|
|
</layer>
|
|
<layer id="39" name="Add_322196" 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="40" name="Constant_322197" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="4" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="41" name="Range_322198" 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="42" name="BytesToChars_322260" 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="43" name="Constant_322264" type="Const" version="opset1">
|
|
<data element_type="i32" shape="999" offset="5781642" size="3996" />
|
|
<output>
|
|
<port id="0" precision="I32">
|
|
<dim>999</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="44" name="BPETokenizer_322265" type="BPETokenizer" version="extension">
|
|
<data unk_token="" fuse_unk="false" suffix_indicator="" end_suffix="" byte_fallback="false" cache_capacity="26214" />
|
|
<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>999</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="45" name="Subtract_322266" 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="46" name="Constant_322267" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="5785638" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="47" name="Minimum_322268" 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="48" name="Subtract_322269" 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="49" name="Constant_322273" type="Const" version="opset1">
|
|
<data element_type="i32" shape="2" offset="5785642" size="8" />
|
|
<output>
|
|
<port id="0" precision="I32">
|
|
<dim>2</dim>
|
|
</port>
|
|
</output>
|
|
</layer>
|
|
<layer id="50" name="CombineSegments_322274" 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="51" name="Subtract_322275" 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="52" name="Constant_322276" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="53" name="ReduceMax_322277" 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="54" name="Constant_322278" type="Const" version="opset1">
|
|
<data element_type="i32" shape="" offset="0" size="4" />
|
|
<output>
|
|
<port id="0" precision="I32" />
|
|
</output>
|
|
</layer>
|
|
<layer id="55" name="RaggedToDense_322279" 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="56" name="Convert_322280" 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="57" name="Convert_322280" 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="59" name="RaggedToDense_322279.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="60" name="Result_322283" type="Result" version="opset1">
|
|
<input>
|
|
<port id="0" precision="I64">
|
|
<dim>-1</dim>
|
|
<dim>-1</dim>
|
|
</port>
|
|
</input>
|
|
</layer>
|
|
<layer id="58" name="Result_322285" 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="50" to-port="0" />
|
|
<edge from-layer="2" from-port="0" to-layer="50" to-port="1" />
|
|
<edge from-layer="3" from-port="0" to-layer="50" to-port="2" />
|
|
<edge from-layer="4" from-port="0" to-layer="11" to-port="0" />
|
|
<edge from-layer="5" from-port="1" to-layer="6" to-port="0" />
|
|
<edge from-layer="5" from-port="1" to-layer="18" to-port="2" />
|
|
<edge from-layer="5" from-port="2" to-layer="18" to-port="3" />
|
|
<edge from-layer="5" from-port="3" to-layer="18" to-port="4" />
|
|
<edge from-layer="6" from-port="1" to-layer="9" to-port="0" />
|
|
<edge from-layer="7" from-port="0" to-layer="9" to-port="1" />
|
|
<edge from-layer="8" from-port="0" to-layer="9" to-port="2" />
|
|
<edge from-layer="9" from-port="3" to-layer="11" to-port="1" />
|
|
<edge from-layer="9" from-port="3" to-layer="14" to-port="0" />
|
|
<edge from-layer="10" from-port="0" to-layer="11" to-port="2" />
|
|
<edge from-layer="11" from-port="3" to-layer="18" to-port="0" />
|
|
<edge from-layer="12" from-port="0" to-layer="16" to-port="0" />
|
|
<edge from-layer="13" from-port="0" to-layer="14" to-port="1" />
|
|
<edge from-layer="14" from-port="2" to-layer="16" to-port="1" />
|
|
<edge from-layer="15" from-port="0" to-layer="16" to-port="2" />
|
|
<edge from-layer="16" from-port="3" to-layer="18" to-port="1" />
|
|
<edge from-layer="17" from-port="0" to-layer="18" to-port="5" />
|
|
<edge from-layer="18" from-port="6" to-layer="22" to-port="0" />
|
|
<edge from-layer="18" from-port="7" to-layer="22" to-port="1" />
|
|
<edge from-layer="18" from-port="8" to-layer="22" to-port="2" />
|
|
<edge from-layer="18" from-port="9" to-layer="22" to-port="3" />
|
|
<edge from-layer="18" from-port="10" to-layer="22" to-port="4" />
|
|
<edge from-layer="19" from-port="0" to-layer="22" to-port="5" />
|
|
<edge from-layer="20" from-port="0" to-layer="21" to-port="0" />
|
|
<edge from-layer="21" from-port="1" to-layer="22" to-port="6" />
|
|
<edge from-layer="21" from-port="2" to-layer="22" to-port="7" />
|
|
<edge from-layer="21" from-port="3" to-layer="22" to-port="8" />
|
|
<edge from-layer="22" from-port="9" to-layer="23" to-port="0" />
|
|
<edge from-layer="22" from-port="10" to-layer="23" to-port="1" />
|
|
<edge from-layer="22" from-port="11" to-layer="23" to-port="2" />
|
|
<edge from-layer="22" from-port="12" to-layer="23" to-port="3" />
|
|
<edge from-layer="22" from-port="13" to-layer="23" to-port="4" />
|
|
<edge from-layer="23" from-port="9" to-layer="44" to-port="4" />
|
|
<edge from-layer="23" from-port="8" to-layer="44" to-port="3" />
|
|
<edge from-layer="23" from-port="7" to-layer="44" to-port="2" />
|
|
<edge from-layer="23" from-port="6" to-layer="44" to-port="1" />
|
|
<edge from-layer="23" from-port="5" to-layer="44" to-port="0" />
|
|
<edge from-layer="24" from-port="0" to-layer="25" to-port="0" />
|
|
<edge from-layer="25" from-port="2" to-layer="44" to-port="6" />
|
|
<edge from-layer="25" from-port="3" to-layer="44" to-port="7" />
|
|
<edge from-layer="25" from-port="1" to-layer="44" to-port="5" />
|
|
<edge from-layer="26" from-port="0" to-layer="27" to-port="0" />
|
|
<edge from-layer="27" from-port="3" to-layer="44" to-port="10" />
|
|
<edge from-layer="27" from-port="1" to-layer="44" to-port="8" />
|
|
<edge from-layer="27" from-port="2" to-layer="44" to-port="9" />
|
|
<edge from-layer="28" from-port="0" to-layer="36" to-port="0" />
|
|
<edge from-layer="29" from-port="0" to-layer="30" to-port="0" />
|
|
<edge from-layer="30" from-port="2" to-layer="42" to-port="3" />
|
|
<edge from-layer="30" from-port="3" to-layer="42" to-port="4" />
|
|
<edge from-layer="30" from-port="1" to-layer="31" to-port="0" />
|
|
<edge from-layer="30" from-port="1" to-layer="42" to-port="2" />
|
|
<edge from-layer="31" from-port="1" to-layer="34" to-port="0" />
|
|
<edge from-layer="32" from-port="0" to-layer="34" to-port="1" />
|
|
<edge from-layer="33" from-port="0" to-layer="34" to-port="2" />
|
|
<edge from-layer="34" from-port="3" to-layer="36" to-port="1" />
|
|
<edge from-layer="34" from-port="3" to-layer="39" to-port="0" />
|
|
<edge from-layer="35" from-port="0" to-layer="36" to-port="2" />
|
|
<edge from-layer="36" from-port="3" to-layer="42" to-port="0" />
|
|
<edge from-layer="37" from-port="0" to-layer="41" to-port="0" />
|
|
<edge from-layer="38" from-port="0" to-layer="39" to-port="1" />
|
|
<edge from-layer="39" from-port="2" to-layer="41" to-port="1" />
|
|
<edge from-layer="40" from-port="0" to-layer="41" to-port="2" />
|
|
<edge from-layer="41" from-port="3" to-layer="42" to-port="1" />
|
|
<edge from-layer="42" from-port="7" to-layer="44" to-port="11" />
|
|
<edge from-layer="42" from-port="8" to-layer="44" to-port="12" />
|
|
<edge from-layer="42" from-port="9" to-layer="44" to-port="13" />
|
|
<edge from-layer="43" from-port="0" to-layer="44" to-port="14" />
|
|
<edge from-layer="44" from-port="15" to-layer="45" to-port="1" />
|
|
<edge from-layer="44" from-port="16" to-layer="48" to-port="0" />
|
|
<edge from-layer="44" from-port="16" to-layer="50" to-port="4" />
|
|
<edge from-layer="44" from-port="16" to-layer="45" to-port="0" />
|
|
<edge from-layer="44" from-port="17" to-layer="50" to-port="5" />
|
|
<edge from-layer="45" from-port="2" to-layer="47" to-port="0" />
|
|
<edge from-layer="46" from-port="0" to-layer="47" to-port="1" />
|
|
<edge from-layer="47" from-port="2" to-layer="48" to-port="1" />
|
|
<edge from-layer="48" from-port="2" to-layer="50" to-port="3" />
|
|
<edge from-layer="49" from-port="0" to-layer="50" to-port="6" />
|
|
<edge from-layer="50" from-port="8" to-layer="51" to-port="0" />
|
|
<edge from-layer="50" from-port="7" to-layer="51" to-port="1" />
|
|
<edge from-layer="50" from-port="7" to-layer="55" to-port="0" />
|
|
<edge from-layer="50" from-port="8" to-layer="55" to-port="1" />
|
|
<edge from-layer="50" from-port="9" to-layer="55" to-port="2" />
|
|
<edge from-layer="51" from-port="2" to-layer="53" to-port="0" />
|
|
<edge from-layer="52" from-port="0" to-layer="53" to-port="1" />
|
|
<edge from-layer="53" from-port="2" to-layer="55" to-port="3" />
|
|
<edge from-layer="54" from-port="0" to-layer="55" to-port="4" />
|
|
<edge from-layer="55" from-port="6" to-layer="56" to-port="0" />
|
|
<edge from-layer="55" from-port="5" to-layer="59" to-port="0" />
|
|
<edge from-layer="56" from-port="1" to-layer="57" to-port="0" />
|
|
<edge from-layer="57" from-port="1" to-layer="58" to-port="0" />
|
|
<edge from-layer="59" from-port="1" to-layer="60" to-port="0" />
|
|
</edges>
|
|
<rt_info>
|
|
<bos_token_id value="1" />
|
|
<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"] + 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 %} " />
|
|
<eos_token_id value="2" />
|
|
<original_tokenizer_class value="<class 'transformers.tokenization_utils_fast.PreTrainedTokenizerFast'>" />
|
|
</rt_info>
|
|
</net>
|
|
|