glm-4-9b-chat-openvino-8bit / openvino_tokenizer.xml
AIFunOver's picture
Upload openvino_tokenizer.xml with huggingface_hub
3020b27 verified
<?xml version="1.0"?>
<net name="tokenizer" version="11">
<layers>
<layer id="0" name="Parameter_306401" type="Parameter" version="opset1">
<data shape="?" element_type="string" />
<output>
<port id="0" precision="STRING" names="Parameter_306401">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="1" name="Constant_306500" 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_306501" 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_306502" type="Const" version="opset1">
<data element_type="i32" shape="1" offset="8" size="4" />
<output>
<port id="0" precision="I32">
<dim>1</dim>
</port>
</output>
</layer>
<layer id="4" name="Constant_306503" 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="Constant_306504" type="Const" version="opset1">
<data element_type="i32" shape="" offset="4" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="6" name="Constant_306505" type="Const" version="opset1">
<data element_type="i32" shape="1" offset="12" size="4" />
<output>
<port id="0" precision="I32">
<dim>1</dim>
</port>
</output>
</layer>
<layer id="7" name="Constant_306407" type="Const" version="opset1">
<data element_type="i64" shape="" offset="16" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="8" name="StringTensorUnpack_306402" 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="9" name="ShapeOf_306403" 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="10" name="Constant_306404" type="Const" version="opset1">
<data element_type="i64" shape="" offset="16" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="11" name="Constant_306405" type="Const" version="opset1">
<data element_type="i64" shape="" offset="16" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="12" name="Gather_306406" type="Gather" version="opset8">
<data batch_dims="0" />
<input>
<port id="0" precision="I64">
<dim>1</dim>
</port>
<port id="1" precision="I64" />
<port id="2" precision="I64" />
</input>
<output>
<port id="3" precision="I64" />
</output>
</layer>
<layer id="13" name="Constant_306408" type="Const" version="opset1">
<data element_type="i64" shape="" offset="24" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="14" name="Range_306409" type="Range" version="opset4">
<data output_type="i32" />
<input>
<port id="0" precision="I64" />
<port id="1" precision="I64" />
<port id="2" precision="I64" />
</input>
<output>
<port id="3" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="15" name="Constant_306410" type="Const" version="opset1">
<data element_type="i64" shape="" offset="24" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="16" name="Constant_306411" type="Const" version="opset1">
<data element_type="i64" shape="" offset="24" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="17" name="Add_306412" 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="18" name="Constant_306413" type="Const" version="opset1">
<data element_type="i64" shape="" offset="24" size="8" />
<output>
<port id="0" precision="I64" />
</output>
</layer>
<layer id="19" name="Range_306414" type="Range" version="opset4">
<data output_type="i32" />
<input>
<port id="0" precision="I64" />
<port id="1" precision="I64" />
<port id="2" precision="I64" />
</input>
<output>
<port id="3" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="20" name="Constant_306476" type="Const" version="opset1">
<data element_type="u8" shape="244" offset="32" size="244" />
<output>
<port id="0" precision="U8">
<dim>244</dim>
</port>
</output>
</layer>
<layer id="21" name="SpecialTokensSplit_306477" type="SpecialTokensSplit" 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>
<port id="5" precision="U8">
<dim>244</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>
<port id="11" precision="BOOL">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="22" name="NormalizeUnicode_306478" 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>
<port id="3" precision="BOOL">
<dim>-1</dim>
</port>
</input>
<output>
<port id="4" precision="I32">
<dim>-1</dim>
</port>
<port id="5" precision="I32">
<dim>-1</dim>
</port>
<port id="6" precision="U8">
<dim>-1</dim>
</port>
<port id="7" precision="BOOL">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="23" name="Constant_306480" type="Const" version="opset1">
<data element_type="u8" shape="115" offset="276" size="115" />
<output>
<port id="0" precision="U8">
<dim>115</dim>
</port>
</output>
</layer>
<layer id="24" name="RegexSplit_306481" type="RegexSplit" version="extension">
<data behaviour="contiguous" 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="BOOL">
<dim>-1</dim>
</port>
<port id="6" precision="U8">
<dim>115</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="U8">
<dim>-1</dim>
</port>
<port id="12" precision="BOOL">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="25" name="Constant_306483" type="Const" version="opset1">
<data element_type="u8" shape="1623592" offset="391" size="1623592" />
<output>
<port id="0" precision="U8">
<dim>1623592</dim>
</port>
</output>
</layer>
<layer id="26" name="StringTensorUnpack_306484" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="U8">
<dim>1623592</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_306489" type="Const" version="opset1">
<data element_type="u8" shape="1100616" offset="1623983" size="1100616" />
<output>
<port id="0" precision="U8">
<dim>1100616</dim>
</port>
</output>
</layer>
<layer id="28" name="StringTensorUnpack_306490" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="U8">
<dim>1100616</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_306492" type="Const" version="opset1">
<data element_type="u8" shape="1106903" offset="2724599" size="1106903" />
<output>
<port id="0" precision="U8">
<dim>1106903</dim>
</port>
</output>
</layer>
<layer id="30" name="StringTensorUnpack_306493" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="U8">
<dim>1106903</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_306486" type="Const" version="opset1">
<data element_type="u8" shape="14600" offset="3831502" size="14600" />
<output>
<port id="0" precision="U8">
<dim>14600</dim>
</port>
</output>
</layer>
<layer id="32" name="StringTensorUnpack_306487" type="StringTensorUnpack" version="extension">
<data mode="begins_ends" />
<input>
<port id="0" precision="U8">
<dim>14600</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="33" name="Constant_306494" type="Const" version="opset1">
<data element_type="i32" shape="1072" offset="3846102" size="4288" />
<output>
<port id="0" precision="I32">
<dim>1072</dim>
</port>
</output>
</layer>
<layer id="34" name="BPETokenizer_306495" type="BPETokenizer" version="extension">
<data unk_token="" fuse_unk="false" suffix_indicator="" end_suffix="" byte_fallback="false" cache_capacity="30268" />
<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>-1</dim>
</port>
<port id="15" precision="I32">
<dim>-1</dim>
</port>
<port id="16" precision="U8">
<dim>-1</dim>
</port>
<port id="17" precision="I32">
<dim>1072</dim>
</port>
</input>
<output>
<port id="18" precision="I32">
<dim>-1</dim>
</port>
<port id="19" precision="I32">
<dim>-1</dim>
</port>
<port id="20" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="35" name="Subtract_306496" 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="36" name="Constant_306497" type="Const" version="opset1">
<data element_type="i32" shape="" offset="3850390" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="37" name="Minimum_306498" 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="38" name="Add_306499" type="Add" 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="39" name="Constant_306506" type="Const" version="opset1">
<data element_type="i32" shape="3" offset="3850394" size="12" />
<output>
<port id="0" precision="I32">
<dim>3</dim>
</port>
</output>
</layer>
<layer id="40" name="CombineSegments_306507" 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" />
<port id="4" precision="I32" />
<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="I32">
<dim>3</dim>
</port>
</input>
<output>
<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="I32">
<dim>-1</dim>
</port>
<port id="14" precision="I32">
<dim>-1</dim>
</port>
<port id="15" precision="I32">
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="41" name="Subtract_306508" 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="42" name="Constant_306509" 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="ReduceMax_306510" 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="44" name="Constant_306511" type="Const" version="opset1">
<data element_type="i32" shape="" offset="3850406" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="45" name="RaggedToDense_306512" 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="46" name="Convert_306513" 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="47" name="Convert_306513" 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="49" name="Constant_306514" type="Const" version="opset1">
<data element_type="i32" shape="" offset="3850406" size="4" />
<output>
<port id="0" precision="I32" />
</output>
</layer>
<layer id="50" name="RaggedToDense_306515" 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="51" name="RaggedToDense_306515.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="token_type_ids">
<dim>-1</dim>
<dim>-1</dim>
</port>
</output>
</layer>
<layer id="53" name="RaggedToDense_306512.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="54" name="Result_306516" type="Result" version="opset1">
<input>
<port id="0" precision="I64">
<dim>-1</dim>
<dim>-1</dim>
</port>
</input>
</layer>
<layer id="52" name="Result_306517" type="Result" version="opset1">
<input>
<port id="0" precision="I64">
<dim>-1</dim>
<dim>-1</dim>
</port>
</input>
</layer>
<layer id="48" name="Result_306518" 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="8" to-port="0" />
<edge from-layer="1" from-port="0" to-layer="40" to-port="0" />
<edge from-layer="2" from-port="0" to-layer="40" to-port="1" />
<edge from-layer="3" from-port="0" to-layer="40" to-port="2" />
<edge from-layer="4" from-port="0" to-layer="40" to-port="3" />
<edge from-layer="5" from-port="0" to-layer="40" to-port="4" />
<edge from-layer="6" from-port="0" to-layer="40" to-port="5" />
<edge from-layer="7" from-port="0" to-layer="14" to-port="0" />
<edge from-layer="8" from-port="1" to-layer="9" to-port="0" />
<edge from-layer="8" from-port="3" to-layer="21" to-port="4" />
<edge from-layer="8" from-port="2" to-layer="21" to-port="3" />
<edge from-layer="8" from-port="1" to-layer="21" to-port="2" />
<edge from-layer="9" from-port="1" to-layer="12" to-port="0" />
<edge from-layer="10" from-port="0" to-layer="12" to-port="1" />
<edge from-layer="11" from-port="0" to-layer="12" to-port="2" />
<edge from-layer="12" from-port="3" to-layer="14" to-port="1" />
<edge from-layer="12" from-port="3" to-layer="17" to-port="0" />
<edge from-layer="13" from-port="0" to-layer="14" to-port="2" />
<edge from-layer="14" from-port="3" to-layer="21" to-port="0" />
<edge from-layer="15" from-port="0" to-layer="19" to-port="0" />
<edge from-layer="16" from-port="0" to-layer="17" to-port="1" />
<edge from-layer="17" from-port="2" to-layer="19" to-port="1" />
<edge from-layer="18" from-port="0" to-layer="19" to-port="2" />
<edge from-layer="19" from-port="3" to-layer="21" to-port="1" />
<edge from-layer="20" from-port="0" to-layer="21" to-port="5" />
<edge from-layer="21" from-port="9" to-layer="22" to-port="1" />
<edge from-layer="21" from-port="10" to-layer="22" to-port="2" />
<edge from-layer="21" from-port="11" to-layer="22" to-port="3" />
<edge from-layer="21" from-port="6" to-layer="24" to-port="0" />
<edge from-layer="21" from-port="7" to-layer="24" to-port="1" />
<edge from-layer="21" from-port="8" to-layer="22" to-port="0" />
<edge from-layer="22" from-port="6" to-layer="24" to-port="4" />
<edge from-layer="22" from-port="7" to-layer="24" to-port="5" />
<edge from-layer="22" from-port="5" to-layer="24" to-port="3" />
<edge from-layer="22" from-port="4" to-layer="24" to-port="2" />
<edge from-layer="23" from-port="0" to-layer="24" to-port="6" />
<edge from-layer="24" from-port="9" to-layer="34" to-port="2" />
<edge from-layer="24" from-port="10" to-layer="34" to-port="3" />
<edge from-layer="24" from-port="11" to-layer="34" to-port="4" />
<edge from-layer="24" from-port="8" to-layer="34" to-port="1" />
<edge from-layer="24" from-port="7" to-layer="34" to-port="0" />
<edge from-layer="25" from-port="0" to-layer="26" to-port="0" />
<edge from-layer="26" from-port="1" to-layer="34" to-port="5" />
<edge from-layer="26" from-port="2" to-layer="34" to-port="6" />
<edge from-layer="26" from-port="3" to-layer="34" to-port="7" />
<edge from-layer="27" from-port="0" to-layer="28" to-port="0" />
<edge from-layer="28" from-port="3" to-layer="34" to-port="10" />
<edge from-layer="28" from-port="1" to-layer="34" to-port="8" />
<edge from-layer="28" from-port="2" to-layer="34" to-port="9" />
<edge from-layer="29" from-port="0" to-layer="30" to-port="0" />
<edge from-layer="30" from-port="3" to-layer="34" to-port="13" />
<edge from-layer="30" from-port="1" to-layer="34" to-port="11" />
<edge from-layer="30" from-port="2" to-layer="34" to-port="12" />
<edge from-layer="31" from-port="0" to-layer="32" to-port="0" />
<edge from-layer="32" from-port="1" to-layer="34" to-port="14" />
<edge from-layer="32" from-port="2" to-layer="34" to-port="15" />
<edge from-layer="32" from-port="3" to-layer="34" to-port="16" />
<edge from-layer="33" from-port="0" to-layer="34" to-port="17" />
<edge from-layer="34" from-port="18" to-layer="38" to-port="0" />
<edge from-layer="34" from-port="20" to-layer="40" to-port="8" />
<edge from-layer="34" from-port="18" to-layer="40" to-port="6" />
<edge from-layer="34" from-port="19" to-layer="35" to-port="0" />
<edge from-layer="34" from-port="18" to-layer="35" to-port="1" />
<edge from-layer="35" from-port="2" to-layer="37" 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="38" to-port="1" />
<edge from-layer="38" from-port="2" to-layer="40" to-port="7" />
<edge from-layer="39" from-port="0" to-layer="40" to-port="9" />
<edge from-layer="40" from-port="11" to-layer="41" to-port="0" />
<edge from-layer="40" from-port="15" to-layer="50" to-port="2" />
<edge from-layer="40" from-port="14" to-layer="50" to-port="1" />
<edge from-layer="40" from-port="13" to-layer="50" to-port="0" />
<edge from-layer="40" from-port="12" to-layer="45" to-port="2" />
<edge from-layer="40" from-port="11" to-layer="45" to-port="1" />
<edge from-layer="40" from-port="10" to-layer="45" to-port="0" />
<edge from-layer="40" from-port="10" to-layer="41" to-port="1" />
<edge from-layer="41" from-port="2" to-layer="43" to-port="0" />
<edge from-layer="42" from-port="0" to-layer="43" to-port="1" />
<edge from-layer="43" from-port="2" to-layer="45" to-port="3" />
<edge from-layer="43" from-port="2" to-layer="50" to-port="3" />
<edge from-layer="44" from-port="0" to-layer="45" to-port="4" />
<edge from-layer="45" from-port="6" to-layer="46" to-port="0" />
<edge from-layer="45" from-port="5" to-layer="53" to-port="0" />
<edge from-layer="46" from-port="1" to-layer="47" to-port="0" />
<edge from-layer="47" from-port="1" to-layer="48" to-port="0" />
<edge from-layer="49" from-port="0" to-layer="50" to-port="4" />
<edge from-layer="50" from-port="5" to-layer="51" to-port="0" />
<edge from-layer="51" from-port="1" to-layer="52" to-port="0" />
<edge from-layer="53" from-port="1" to-layer="54" to-port="0" />
</edges>
<rt_info>
<add_attention_mask value="True" />
<add_prefix_space />
<add_special_tokens value="True" />
<chat_template value="[gMASK]&lt;sop>{% for item in messages %}{% if item['tools'] is defined %}&lt;|system|>&#10;你是一个名为 ChatGLM 的人工智能助手。你是基于智谱AI训练的语言模型 GLM-4 模型开发的,你的任务是针对用户的问题和要求提供适当的答复和支持。&#10;&#10;# 可用工具{% set tools = item['tools'] %}{% for tool in tools %}{% if tool['type'] == 'function' %}&#10;&#10;## {{ tool['function']['name'] }}&#10;&#10;{{ tool['function'] | tojson(indent=4) }}&#10;在调用上述函数时,请使用 Json 格式表示调用的参数。{% elif tool['type'] == 'python' %}&#10;&#10;## python&#10;&#10;当你向 `python` 发送包含 Python 代码的消息时,该代码将会在一个有状态的 Jupyter notebook 环境中执行。&#10;`python` 返回代码执行的输出,或在执行 60 秒后返回超时。&#10;`/mnt/data` 将会持久化存储你的文件。在此会话中,`python` 无法访问互联网。不要使用 `python` 进行任何网络请求或者在线 API 调用,这些在线内容的访问将不会成功。{% elif tool['type'] == 'simple_browser' %}&#10;&#10;## simple_browser&#10;&#10;你可以使用 `simple_browser` 工具。该工具支持以下函数:&#10;`search(query: str, recency_days: int)`:使用搜索引擎进行查询并显示结果,可以使用 `recency_days` 参数控制搜索内容的时效性。&#10;`mclick(ids: list[int])`:获取一系列指定 id 的页面内容。每次调用时,须选择3-10个页面。选择多个角度的页面,同时尽可能选择可信任的信息来源。考虑到部分页面是无法加载的,你也可以多打开一些可能有用的页面而不用担心内容过多。&#10;`open_url(url: str)`:打开指定的 URL。&#10;&#10;使用 `【{引用 id}†{引用文本}】` 来引用内容。&#10;&#10;操作步骤:1. 使用 `search` 来获得信息列表; 2. 使用 `mclick` 来获取指定 ID 页面的内容; 3. 根据获得的内容进行回复。在回复中应当引用信息来源。&#10; 如果用户提供了 URL,也可以用 `open_url` 直接打开页面。&#10;如果初次搜索结果没有找到合适的信息,也可以再次使用 `search` 进行搜索。{% elif tool['type'] == 'cogview' %}&#10;&#10;## cogview&#10;&#10;如果用户的请求中包含了对图像的描述,你可以使用 `cogview` 来生成图像并展示给用户。你需要向 `cogview` 发送图像描述,规则:&#10;- 发送给 `cogview` 的消息必须使用英语。用户的中文描述必须完全翻译为英语。&#10;- 应当尽可能详细地描述图像生成的需求,需求描述约 100 英文单词。&#10;- 保持用户原始描述的意图。不要虚构内容或者没见过的人物。&#10;- 如无特殊说明,所在地为中国,持有中国立场并遵循中国社会主义价值观。{% endif %}{% endfor %}{% endif %}{% if item['content'] %}&lt;|{{ item['role'] }}|>{{ item['metadata'] }}&#10;{{ item['content'] }}{% endif %}{% endfor %}{% if add_generation_prompt %}&lt;|assistant|>{% endif %}" />
<clean_up_tokenization_spaces value="False" />
<detokenizer_input_type value="i64" />
<eos_token_id value="151329" />
<handle_special_tokens_with_re />
<number_of_inputs value="1" />
<openvino_tokenizers_version value="2024.5.0.0.dev20241030" />
<openvino_version value="2024.5.0.dev20241030" />
<original_tokenizer_class value="&lt;class 'transformers_modules.THUDM.glm-4-9b-chat.eb55a443d66541f30869f6caac5ad0d2e95bcbaa.tokenization_chatglm.ChatGLM4Tokenizer'>" />
<pad_token_id value="151329" />
<sentencepiece_version value="0.2.0" />
<skip_special_tokens value="True" />
<streaming_detokenizer value="False" />
<tiktoken_version value="0.8.0" />
<tokenizer_output_type value="i64" />
<tokenizers_version value="0.20.1" />
<transformers_version value="4.45.2" />
<use_max_padding value="False" />
<use_sentencepiece_backend value="False" />
<utf8_replace_mode />
<with_detokenizer value="True" />
</rt_info>
</net>