Download openvino_tokenizer.xml from Irfanuruchi/Nanbeige4.2-3B-CE-v1.0-OpenVINO-INT4: direct link, hf CLI and curl.
- Browser
- Download file 36.3 kB
-
https://huggingface.co/Irfanuruchi/Nanbeige4.2-3B-CE-v1.0-OpenVINO-INT4/resolve/main/openvino_tokenizer.xml
- Command line
-
hf download hf://Irfanuruchi/Nanbeige4.2-3B-CE-v1.0-OpenVINO-INT4/openvino_tokenizer.xml
-
curl -L -o openvino_tokenizer.xml https://huggingface.co/Irfanuruchi/Nanbeige4.2-3B-CE-v1.0-OpenVINO-INT4/resolve/main/openvino_tokenizer.xml
36.3 kB
| <net name="tokenizer" version="11"> | |
| <layers> | |
| <layer id="0" name="Parameter_121276" type="Parameter" version="opset1"> | |
| <data shape="?" element_type="string" /> | |
| <output> | |
| <port id="0" precision="STRING" names="Parameter_121276"> | |
| <dim>-1</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="1" name="Constant_121397" 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_121398" 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_121399" 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_121287" type="Const" version="opset1"> | |
| <data element_type="i64" shape="" offset="12" size="8" /> | |
| <output> | |
| <port id="0" precision="I64" /> | |
| </output> | |
| </layer> | |
| <layer id="5" name="StringTensorUnpack_121277" type="StringTensorUnpack" version="opset15"> | |
| <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_121279" type="Const" version="opset1"> | |
| <data element_type="u8" shape="153" offset="20" size="153" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>153</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="7" name="Constant_121281" type="Const" version="opset1"> | |
| <data element_type="u8" shape="5" offset="173" size="5" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>5</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="8" name="RegexNormalization_121282" type="RegexNormalization" version="extension"> | |
| <data global_replace="false" /> | |
| <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>153</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="9" name="ShapeOf_121283" 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_121284" type="Const" version="opset1"> | |
| <data element_type="i64" shape="" offset="12" size="8" /> | |
| <output> | |
| <port id="0" precision="I64" /> | |
| </output> | |
| </layer> | |
| <layer id="11" name="Constant_121285" type="Const" version="opset1"> | |
| <data element_type="i64" shape="" offset="12" size="8" /> | |
| <output> | |
| <port id="0" precision="I64" /> | |
| </output> | |
| </layer> | |
| <layer id="12" name="Gather_121286" 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_121288" type="Const" version="opset1"> | |
| <data element_type="i64" shape="" offset="178" size="8" /> | |
| <output> | |
| <port id="0" precision="I64" /> | |
| </output> | |
| </layer> | |
| <layer id="14" name="Range_121289" 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_121290" type="Const" version="opset1"> | |
| <data element_type="i64" shape="" offset="178" size="8" /> | |
| <output> | |
| <port id="0" precision="I64" /> | |
| </output> | |
| </layer> | |
| <layer id="16" name="Constant_121291" type="Const" version="opset1"> | |
| <data element_type="i64" shape="" offset="178" size="8" /> | |
| <output> | |
| <port id="0" precision="I64" /> | |
| </output> | |
| </layer> | |
| <layer id="17" name="Add_121292" 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_121293" type="Const" version="opset1"> | |
| <data element_type="i64" shape="" offset="178" size="8" /> | |
| <output> | |
| <port id="0" precision="I64" /> | |
| </output> | |
| </layer> | |
| <layer id="19" name="Range_121294" 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_121358" type="Const" version="opset1"> | |
| <data element_type="u8" shape="125" offset="186" size="125" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>125</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="21" name="SpecialTokensSplit_121359" 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>125</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="Constant_121361" type="Const" version="opset1"> | |
| <data element_type="u8" shape="1" offset="311" size="1" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>1</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="23" name="Constant_121363" type="Const" version="opset1"> | |
| <data element_type="u8" shape="3" offset="312" size="3" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>3</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="24" name="RegexNormalization_121364" 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="BOOL"> | |
| <dim>-1</dim> | |
| </port> | |
| <port id="4" precision="U8"> | |
| <dim>1</dim> | |
| </port> | |
| <port id="5" precision="U8"> | |
| <dim>3</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="U8"> | |
| <dim>-1</dim> | |
| </port> | |
| <port id="9" precision="BOOL"> | |
| <dim>-1</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="25" name="Constant_121366" type="Const" version="opset1"> | |
| <data element_type="i32" shape="166107" offset="315" size="664428" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>166107</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="26" name="Constant_121368" type="Const" version="opset1"> | |
| <data element_type="i32" shape="166107" offset="664743" size="664428" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>166107</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="27" name="Constant_121370" type="Const" version="opset1"> | |
| <data element_type="u8" shape="1286755" offset="1329171" size="1286755" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>1286755</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="28" name="Constant_121378" type="Const" version="opset1"> | |
| <data element_type="i32" shape="296888" offset="2615926" size="1187552" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="29" name="Constant_121380" type="Const" version="opset1"> | |
| <data element_type="i32" shape="296888" offset="3803478" size="1187552" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="30" name="Constant_121382" type="Const" version="opset1"> | |
| <data element_type="u8" shape="1363596" offset="4991030" size="1363596" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>1363596</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="31" name="Constant_121384" type="Const" version="opset1"> | |
| <data element_type="i32" shape="296888" offset="6354626" size="1187552" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="32" name="Constant_121386" type="Const" version="opset1"> | |
| <data element_type="i32" shape="296888" offset="7542178" size="1187552" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="33" name="Constant_121388" type="Const" version="opset1"> | |
| <data element_type="u8" shape="1037128" offset="8729730" size="1037128" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>1037128</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="34" name="Constant_121372" type="Const" version="opset1"> | |
| <data element_type="i32" shape="9" offset="9766858" size="36" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>9</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="35" name="Constant_121374" type="Const" version="opset1"> | |
| <data element_type="i32" shape="9" offset="9766894" size="36" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>9</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="36" name="Constant_121376" type="Const" version="opset1"> | |
| <data element_type="u8" shape="80" offset="9766930" size="80" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>80</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="37" name="Constant_121389" type="Const" version="opset1"> | |
| <data element_type="i32" shape="9" offset="9767010" size="36" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>9</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="38" name="BPETokenizer_121390" type="BPETokenizer" version="extension"> | |
| <data unk_token="<unk>" fuse_unk="true" suffix_indicator="" end_suffix="" byte_fallback="true" cache_capacity="33220" /> | |
| <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>166107</dim> | |
| </port> | |
| <port id="6" precision="I32"> | |
| <dim>166107</dim> | |
| </port> | |
| <port id="7" precision="U8"> | |
| <dim>1286755</dim> | |
| </port> | |
| <port id="8" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| <port id="9" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| <port id="10" precision="U8"> | |
| <dim>1363596</dim> | |
| </port> | |
| <port id="11" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| <port id="12" precision="I32"> | |
| <dim>296888</dim> | |
| </port> | |
| <port id="13" precision="U8"> | |
| <dim>1037128</dim> | |
| </port> | |
| <port id="14" precision="I32"> | |
| <dim>9</dim> | |
| </port> | |
| <port id="15" precision="I32"> | |
| <dim>9</dim> | |
| </port> | |
| <port id="16" precision="U8"> | |
| <dim>80</dim> | |
| </port> | |
| <port id="17" precision="I32"> | |
| <dim>9</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="39" name="Constant_121391" type="Const" version="opset1"> | |
| <data element_type="i32" shape="" offset="9767046" size="4" /> | |
| <output> | |
| <port id="0" precision="I32" /> | |
| </output> | |
| </layer> | |
| <layer id="40" name="Constant_121393" type="Const" version="opset1"> | |
| <data element_type="u8" shape="5" offset="9767050" size="5" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>5</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="41" name="Constant_121395" type="Const" version="opset1"> | |
| <data element_type="u8" shape="13" offset="9767055" size="13" /> | |
| <output> | |
| <port id="0" precision="U8"> | |
| <dim>13</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="42" name="Truncate_121396" type="Truncate" version="extension"> | |
| <data m_num_inputs="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" /> | |
| <port id="4" precision="U8"> | |
| <dim>5</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> | |
| </output> | |
| </layer> | |
| <layer id="43" name="Constant_121400" type="Const" version="opset1"> | |
| <data element_type="i32" shape="2" offset="12" size="8" /> | |
| <output> | |
| <port id="0" precision="I32"> | |
| <dim>2</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="44" name="CombineSegments_121401" 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="45" name="Subtract_121402" 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_121403" type="Const" version="opset1"> | |
| <data element_type="i32" shape="" offset="0" size="4" /> | |
| <output> | |
| <port id="0" precision="I32" /> | |
| </output> | |
| </layer> | |
| <layer id="47" name="ReduceMax_121404" 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="48" name="Constant_121405" 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="RaggedToDense_121406" type="RaggedToDense" version="extension"> | |
| <data pad_right="false" m_pad_max_length="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="50" name="Convert_121407" 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="51" name="Convert_121407.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="attention_mask"> | |
| <dim>-1</dim> | |
| <dim>-1</dim> | |
| </port> | |
| </output> | |
| </layer> | |
| <layer id="52" name="RaggedToDense_121406.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="53" name="Result_121410" type="Result" version="opset1" output_names="input_ids"> | |
| <input> | |
| <port id="0" precision="I64"> | |
| <dim>-1</dim> | |
| <dim>-1</dim> | |
| </port> | |
| </input> | |
| </layer> | |
| <layer id="54" name="Result_121412" type="Result" version="opset1" output_names="attention_mask"> | |
| <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="44" to-port="0" /> | |
| <edge from-layer="2" from-port="0" to-layer="44" to-port="1" /> | |
| <edge from-layer="3" from-port="0" to-layer="44" to-port="2" /> | |
| <edge from-layer="4" from-port="0" to-layer="14" 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="9" to-port="0" /> | |
| <edge from-layer="8" from-port="5" to-layer="21" to-port="2" /> | |
| <edge from-layer="8" from-port="6" to-layer="21" to-port="3" /> | |
| <edge from-layer="8" from-port="7" to-layer="21" to-port="4" /> | |
| <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="8" to-layer="24" to-port="0" /> | |
| <edge from-layer="21" from-port="9" to-layer="24" to-port="1" /> | |
| <edge from-layer="21" from-port="10" to-layer="24" to-port="2" /> | |
| <edge from-layer="21" from-port="11" to-layer="24" to-port="3" /> | |
| <edge from-layer="21" from-port="6" to-layer="38" to-port="0" /> | |
| <edge from-layer="21" from-port="7" to-layer="38" to-port="1" /> | |
| <edge from-layer="22" from-port="0" to-layer="24" to-port="4" /> | |
| <edge from-layer="23" from-port="0" to-layer="24" to-port="5" /> | |
| <edge from-layer="24" from-port="6" to-layer="38" to-port="2" /> | |
| <edge from-layer="24" from-port="7" to-layer="38" to-port="3" /> | |
| <edge from-layer="24" from-port="8" to-layer="38" to-port="4" /> | |
| <edge from-layer="25" from-port="0" to-layer="38" to-port="5" /> | |
| <edge from-layer="26" from-port="0" to-layer="38" to-port="6" /> | |
| <edge from-layer="27" from-port="0" to-layer="38" to-port="7" /> | |
| <edge from-layer="28" from-port="0" to-layer="38" to-port="8" /> | |
| <edge from-layer="29" from-port="0" to-layer="38" to-port="9" /> | |
| <edge from-layer="30" from-port="0" to-layer="38" to-port="10" /> | |
| <edge from-layer="31" from-port="0" to-layer="38" to-port="11" /> | |
| <edge from-layer="32" from-port="0" to-layer="38" to-port="12" /> | |
| <edge from-layer="33" from-port="0" to-layer="38" to-port="13" /> | |
| <edge from-layer="34" from-port="0" to-layer="38" to-port="14" /> | |
| <edge from-layer="35" from-port="0" to-layer="38" to-port="15" /> | |
| <edge from-layer="36" from-port="0" to-layer="38" to-port="16" /> | |
| <edge from-layer="37" from-port="0" to-layer="38" to-port="17" /> | |
| <edge from-layer="38" from-port="18" to-layer="42" to-port="0" /> | |
| <edge from-layer="38" from-port="19" to-layer="42" to-port="1" /> | |
| <edge from-layer="38" from-port="20" to-layer="42" to-port="2" /> | |
| <edge from-layer="39" from-port="0" to-layer="42" to-port="3" /> | |
| <edge from-layer="40" from-port="0" to-layer="42" to-port="4" /> | |
| <edge from-layer="41" from-port="0" to-layer="42" to-port="5" /> | |
| <edge from-layer="42" from-port="6" to-layer="44" to-port="3" /> | |
| <edge from-layer="42" from-port="7" to-layer="44" to-port="4" /> | |
| <edge from-layer="42" from-port="8" to-layer="44" to-port="5" /> | |
| <edge from-layer="43" from-port="0" to-layer="44" to-port="6" /> | |
| <edge from-layer="44" from-port="8" to-layer="45" to-port="0" /> | |
| <edge from-layer="44" from-port="7" to-layer="45" to-port="1" /> | |
| <edge from-layer="44" from-port="7" to-layer="49" to-port="0" /> | |
| <edge from-layer="44" from-port="8" to-layer="49" to-port="1" /> | |
| <edge from-layer="44" from-port="9" to-layer="49" to-port="2" /> | |
| <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="49" to-port="3" /> | |
| <edge from-layer="48" from-port="0" to-layer="49" to-port="4" /> | |
| <edge from-layer="49" from-port="6" to-layer="50" to-port="0" /> | |
| <edge from-layer="49" from-port="5" to-layer="52" to-port="0" /> | |
| <edge from-layer="50" from-port="1" to-layer="51" to-port="0" /> | |
| <edge from-layer="51" from-port="1" to-layer="54" to-port="0" /> | |
| <edge from-layer="52" from-port="1" to-layer="53" to-port="0" /> | |
| </edges> | |
| <rt_info> | |
| <info name="OpenVINO Runtime" value="2026.3.1-22476-759c5a6ab8c-releases/2026/3" /> | |
| <add_attention_mask value="True" /> | |
| <add_prefix_space /> | |
| <add_special_tokens value="True" /> | |
| <bos_token_id value="166100" /> | |
| <chat_template value=" {%- macro visible_text(content) -%} {%- if content is string -%} {{- content }} {%- elif content is iterable and content is not mapping -%} {%- for item in content -%} {%- if item is mapping and item.type == 'text' -%} {{- item.text }} {%- elif item is string -%} {{- item }} {%- elif item is mapping and item.type in ['image', 'image_url', 'video', 'video_url', 'audio', 'audio_url', 'input_audio'] -%} {%- set media_type = item.type | replace('_url', '') | replace('input_', '') -%} {{- "<reminder>You are unable to process this " ~ media_type ~ " because you don't have multi-modal input ability. Try different methods.</reminder>" }} {%- endif -%} {%- endfor -%} {%- else -%} {{- content }} {%- endif -%} {%- endmacro -%} {%- set tool_call_format = tool_call_format if tool_call_format is defined else 'xml' %} {%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages|length > 0 and messages[0].get('role', '') == 'system' %} {{- visible_text(messages[0].content) + '\n\n' }} {%- else %} {{- '你是一位工具函数调用专家,你会得到一个问题和一组可能的工具函数。根据问题,你需要进行一个或多个函数/工具调用以实现目的,请尽量尝试探索通过工具解决问题。\n如果没有一个函数可以使用,请直接使用自然语言回复用户。\n如果给定的问题缺少函数所需的参数,请使用自然语言进行提问,向用户询问必要信息。\n如果调用结果已经足够回答用户问题,请对历史结果进行总结,使用自然语言回复用户。' }} {%- endif %} {{- "# 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 %} {%- if tool_call_format == 'json' %} {{- "\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 %} {{- "\n</tools>\n\nFor each function call, output the function name and arguments within the following XML format:\n" }} {{- '<tool_call> <function=example_function_name> <parameter=example_parameter_1> value_1 </parameter> <parameter=example_parameter_2> This is the value for the second parameter that can span multiple lines </parameter> </function> </tool_call><|im_end|>\n' }} {%- endif %} {%- else %} {%- if messages|length > 0 and messages[0].get('role', '') == 'system' %} {{- '<|im_start|>system\n' + visible_text(messages[0].content) + '<|im_end|>\n' }} {%- else %} {{- '<|im_start|>system\n你是南北阁,一款由BOSS直聘自主研发并训练的专业大语言模型。<|im_end|>\n' }} {%- endif %} {%- endif %} {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %} {%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.get('role', '') == "user" and visible_text(message.content) is string and not(visible_text(message.content).startswith('<tool_response>') and visible_text(message.content).endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %} {%- endfor %} {%- for message in messages %} {%- if visible_text(message.content) is string %} {%- set content = visible_text(message.content) %} {%- else %} {%- set content = '' %} {%- endif %} {%- if message.get('role', '') == "system" %} {%- if not loop.first %} {{- raise_exception('System message must be at the beginning.') }} {%- endif %} {%- elif message.get('role', '') == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n').rstrip('\n') %} {%- endif %} {%- endif %} {%- set reasoning_content = reasoning_content|trim %} {%- if (preserve_thinking is defined and preserve_thinking is false) and (loop.index0 < ns.last_query_index) %} {{- '<|im_start|>' + message.get('role', '') + '\n<think>\n\n</think>\n\n' + content }} {%- else %} {{- '<|im_start|>' + message.get('role', '') + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }} {%- endif %} {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %} {%- if tool_call_format == 'json' %} {%- for tool_call in message.tool_calls %} {%- if (loop.first and content) or (not loop.first) %} {{- '\n' }} {%- endif %} {%- if tool_call.function %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {%- if tool_call.arguments is string %} {{- tool_call.arguments }} {%- else %} {{- tool_call.arguments | tojson }} {%- endif %} {{- '}\n</tool_call>' }} {%- endfor %} {%- else %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {%- if loop.first %} {%- if content|trim %} {{- ' <tool_call> <function=' + tool_call.name + '> ' }} {%- else %} {{- '<tool_call> <function=' + tool_call.name + '> ' }} {%- endif %} {%- else %} {{- ' <tool_call> <function=' + tool_call.name + '> ' }} {%- endif %} {%- if tool_call.arguments is defined %} {%- for args_name, args_value in tool_call.arguments|items %} {{- '<parameter=' + args_name + '> ' }} {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %} {{- args_value }} {{- ' </parameter> ' }} {%- endfor %} {%- endif %} {{- '</function> </tool_call>' }} {%- endfor %} {%- endif %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.get('role', '') == "tool" %} {%- if loop.previtem and loop.previtem.get('role', '') != "tool" %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if loop.last or loop.nextitem.get('role', '') != "tool" %} {{- '<|im_end|>\n' }} {%- endif %} {%- elif message.get('role', '') != '' %} {{- '<|im_start|>' + message.get('role', '') + '\n' + content + '<|im_end|>' + '\n' }} {%- endif %} {%- endfor %} {%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think> </think> ' }} {%- else %} {{- '<think> ' }} {%- endif %} {%- endif %} " /> | |
| <clean_up_tokenization_spaces /> | |
| <detokenizer_input_type value="i64" /> | |
| <eos_token_id value="166101" /> | |
| <handle_special_tokens_with_re /> | |
| <max_length /> | |
| <number_of_inputs value="1" /> | |
| <openvino_tokenizers_version value="2026.3.1.0-705-77e4637387c" /> | |
| <openvino_version value="2026.3.1-22476-759c5a6ab8c-releases/2026/3" /> | |
| <original_post_processor_template value="{"type": "TemplateProcessing", "single": [{"SpecialToken": {"id": "<|im_start|>", "type_id": 0}}, {"Sequence": {"id": "A", "type_id": 0}}], "pair": [{"SpecialToken": {"id": "<|im_start|>", "type_id": 0}}, {"Sequence": {"id": "A", "type_id": 0}}, {"SpecialToken": {"id": "<|im_start|>", "type_id": 1}}, {"Sequence": {"id": "B", "type_id": 1}}], "special_tokens": {"<|im_start|>": {"id": "<|im_start|>", "ids": [166100], "tokens": ["<|im_start|>"]}}}" /> | |
| <original_tokenizer_class value="<class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>" /> | |
| <pad_token_id value="0" /> | |
| <processed_post_processor_template value="{"single": {"ids": [166100, -1], "type_ids": [0, 0]}, "pair": {"ids": [166100, -1, 166100, -2], "type_ids": [0, 0, 1, 1]}}" /> | |
| <sentencepiece_version value="0.2.2" /> | |
| <skip_special_tokens value="True" /> | |
| <streaming_detokenizer value="False" /> | |
| <tokenizer_output_type value="i64" /> | |
| <tokenizers_version value="0.22.2" /> | |
| <transformers_version value="4.57.6" /> | |
| <use_max_padding value="False" /> | |
| <use_sentencepiece_backend value="False" /> | |
| <utf8_replace_mode value="replace" /> | |
| <with_detokenizer value="True" /> | |
| </rt_info> | |
| </net> | |