Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +117 -0
- added_tokens.json +24 -0
- config.json +29 -0
- generation_config.json +14 -0
- merges.txt +0 -0
- openvino_detokenizer.bin +3 -0
- openvino_detokenizer.xml +220 -0
- openvino_model.bin +3 -0
- openvino_model.xml +0 -0
- openvino_tokenizer.bin +3 -0
- openvino_tokenizer.xml +723 -0
- special_tokens_map.json +31 -0
- tokenizer.json +3 -0
- tokenizer_config.json +208 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_link: https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B-Instruct/blob/main/LICENSE
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
base_model:
|
| 7 |
+
- Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
library_name: transformers
|
| 10 |
+
tags:
|
| 11 |
+
- code
|
| 12 |
+
- codeqwen
|
| 13 |
+
- chat
|
| 14 |
+
- qwen
|
| 15 |
+
- qwen-coder
|
| 16 |
+
base_model_relation: quantized
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Qwen2.5-Coder-0.5B-Instruct-int4-ov
|
| 20 |
+
* Model creator: [Qwen](https://huggingface.co/Qwen)
|
| 21 |
+
* Original model: [Qwen2.5-Coder-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B-Instruct)
|
| 22 |
+
|
| 23 |
+
## Description
|
| 24 |
+
This is [Qwen2.5-Coder-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B-Instruct) model converted to the [OpenVINO™ IR](https://docs.openvino.ai/2025/documentation/openvino-ir-format.html) (Intermediate Representation) format with weights compressed to INT4 by [NNCF](https://github.com/openvinotoolkit/nncf).
|
| 25 |
+
|
| 26 |
+
## Quantization Parameters
|
| 27 |
+
|
| 28 |
+
Weight compression was performed using `nncf.compress_weights` with the following parameters:
|
| 29 |
+
|
| 30 |
+
* mode: **INT4_ASYM**
|
| 31 |
+
|
| 32 |
+
For more information on quantization, check the [OpenVINO model optimization guide](https://docs.openvino.ai/2025/openvino-workflow/model-optimization-guide/weight-compression.html).
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
## Compatibility
|
| 36 |
+
|
| 37 |
+
The provided OpenVINO™ IR model is compatible with:
|
| 38 |
+
|
| 39 |
+
* OpenVINO version 2025.2.0 and higher
|
| 40 |
+
* Optimum Intel 1.25.0 and higher
|
| 41 |
+
|
| 42 |
+
## Running Model Inference with [Optimum Intel](https://huggingface.co/docs/optimum/intel/index)
|
| 43 |
+
|
| 44 |
+
1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
|
| 45 |
+
|
| 46 |
+
```
|
| 47 |
+
pip install optimum[openvino]
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
2. Run model inference:
|
| 51 |
+
|
| 52 |
+
```
|
| 53 |
+
from transformers import AutoTokenizer
|
| 54 |
+
from optimum.intel.openvino import OVModelForCausalLM
|
| 55 |
+
|
| 56 |
+
model_id = "OpenVINO/Qwen2.5-Coder-0.5B-Instruct-int4-ov"
|
| 57 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 58 |
+
model = OVModelForCausalLM.from_pretrained(model_id)
|
| 59 |
+
|
| 60 |
+
inputs = tokenizer("write a quick sort algorithm.", return_tensors="pt")
|
| 61 |
+
|
| 62 |
+
outputs = model.generate(**inputs, max_length=200)
|
| 63 |
+
text = tokenizer.batch_decode(outputs)[0]
|
| 64 |
+
print(text)
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
For more examples and possible optimizations, refer to the [Inference with Optimum Intel](https://docs.openvino.ai/2025/openvino-workflow-generative/inference-with-optimum-intel.html).
|
| 68 |
+
|
| 69 |
+
## Running Model Inference with [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai)
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
1. Install packages required for using OpenVINO GenAI.
|
| 73 |
+
```
|
| 74 |
+
pip install openvino-genai huggingface_hub
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
2. Download model from HuggingFace Hub
|
| 78 |
+
|
| 79 |
+
```
|
| 80 |
+
import huggingface_hub as hf_hub
|
| 81 |
+
|
| 82 |
+
model_id = "OpenVINO/Qwen2.5-Coder-0.5B-Instruct-int4-ov"
|
| 83 |
+
model_path = "Qwen2.5-Coder-0.5B-Instruct-int4-ov"
|
| 84 |
+
|
| 85 |
+
hf_hub.snapshot_download(model_id, local_dir=model_path)
|
| 86 |
+
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
3. Run model inference:
|
| 90 |
+
|
| 91 |
+
```
|
| 92 |
+
import openvino_genai as ov_genai
|
| 93 |
+
|
| 94 |
+
device = "CPU"
|
| 95 |
+
pipe = ov_genai.LLMPipeline(model_path, device)
|
| 96 |
+
pipe.get_tokenizer().set_chat_template(pipe.get_tokenizer().chat_template)
|
| 97 |
+
print(pipe.generate("write a quick sort algorithm.", max_length=200))
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
More GenAI usage examples can be found in OpenVINO GenAI library [docs](https://docs.openvino.ai/2025/openvino-workflow-generative/inference-with-genai.html) and [samples](https://github.com/openvinotoolkit/openvino.genai?tab=readme-ov-file#openvino-genai-samples)
|
| 101 |
+
|
| 102 |
+
You can find more detaild usage examples in OpenVINO Notebooks:
|
| 103 |
+
|
| 104 |
+
- [LLM](https://openvinotoolkit.github.io/openvino_notebooks/?search=LLM)
|
| 105 |
+
- [RAG text generation](https://openvinotoolkit.github.io/openvino_notebooks/?search=RAG+system&tasks=Text+Generation)
|
| 106 |
+
|
| 107 |
+
## Limitations
|
| 108 |
+
|
| 109 |
+
Check the original [model card](https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B-Instruct) for limitations.
|
| 110 |
+
|
| 111 |
+
## Legal information
|
| 112 |
+
|
| 113 |
+
The original model is distributed under [Apache License Version 2.0](https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B-Instruct/blob/main/LICENSE) license. More details can be found in [Qwen2.5-Coder-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B-Instruct).
|
| 114 |
+
|
| 115 |
+
## Disclaimer
|
| 116 |
+
|
| 117 |
+
Intel is committed to respecting human rights and avoiding causing or contributing to adverse impacts on human rights. See [Intel’s Global Human Rights Principles](https://www.intel.com/content/dam/www/central-libraries/us/en/documents/policy-human-rights.pdf). Intel’s products and software are intended only to be used in applications that do not cause or contribute to adverse impacts on human rights.
|
added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation_autoset": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Qwen2ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 151643,
|
| 8 |
+
"eos_token_id": 151645,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 896,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 4864,
|
| 13 |
+
"max_position_embeddings": 32768,
|
| 14 |
+
"max_window_layers": 24,
|
| 15 |
+
"model_type": "qwen2",
|
| 16 |
+
"num_attention_heads": 14,
|
| 17 |
+
"num_hidden_layers": 24,
|
| 18 |
+
"num_key_value_heads": 2,
|
| 19 |
+
"rms_norm_eps": 1e-06,
|
| 20 |
+
"rope_scaling": null,
|
| 21 |
+
"rope_theta": 1000000.0,
|
| 22 |
+
"sliding_window": 32768,
|
| 23 |
+
"tie_word_embeddings": true,
|
| 24 |
+
"torch_dtype": "bfloat16",
|
| 25 |
+
"transformers_version": "4.51.3",
|
| 26 |
+
"use_cache": true,
|
| 27 |
+
"use_sliding_window": false,
|
| 28 |
+
"vocab_size": 151936
|
| 29 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": 0.7,
|
| 11 |
+
"top_k": 20,
|
| 12 |
+
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "4.51.3"
|
| 14 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
openvino_detokenizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ca47601554a3b871c1e45e8f31aa6e17d726365c075fb430d1a2089484ae8d6
|
| 3 |
+
size 2189639
|
openvino_detokenizer.xml
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<net name="detokenizer" version="11">
|
| 3 |
+
<layers>
|
| 4 |
+
<layer id="0" name="Parameter_79602" type="Parameter" version="opset1">
|
| 5 |
+
<data shape="?,?" element_type="i64" />
|
| 6 |
+
<output>
|
| 7 |
+
<port id="0" precision="I64" names="Parameter_79602">
|
| 8 |
+
<dim>-1</dim>
|
| 9 |
+
<dim>-1</dim>
|
| 10 |
+
</port>
|
| 11 |
+
</output>
|
| 12 |
+
</layer>
|
| 13 |
+
<layer id="1" name="Convert_79792" type="Convert" version="opset1">
|
| 14 |
+
<data destination_type="i32" />
|
| 15 |
+
<input>
|
| 16 |
+
<port id="0" precision="I64">
|
| 17 |
+
<dim>-1</dim>
|
| 18 |
+
<dim>-1</dim>
|
| 19 |
+
</port>
|
| 20 |
+
</input>
|
| 21 |
+
<output>
|
| 22 |
+
<port id="1" precision="I32">
|
| 23 |
+
<dim>-1</dim>
|
| 24 |
+
<dim>-1</dim>
|
| 25 |
+
</port>
|
| 26 |
+
</output>
|
| 27 |
+
</layer>
|
| 28 |
+
<layer id="2" name="Constant_79604" type="Const" version="opset1">
|
| 29 |
+
<data element_type="i32" shape="151665" offset="0" size="606660" />
|
| 30 |
+
<output>
|
| 31 |
+
<port id="0" precision="I32">
|
| 32 |
+
<dim>151665</dim>
|
| 33 |
+
</port>
|
| 34 |
+
</output>
|
| 35 |
+
</layer>
|
| 36 |
+
<layer id="3" name="Constant_79606" type="Const" version="opset1">
|
| 37 |
+
<data element_type="i32" shape="151665" offset="606660" size="606660" />
|
| 38 |
+
<output>
|
| 39 |
+
<port id="0" precision="I32">
|
| 40 |
+
<dim>151665</dim>
|
| 41 |
+
</port>
|
| 42 |
+
</output>
|
| 43 |
+
</layer>
|
| 44 |
+
<layer id="4" name="Constant_79608" type="Const" version="opset1">
|
| 45 |
+
<data element_type="u8" shape="976263" offset="1213320" size="976263" />
|
| 46 |
+
<output>
|
| 47 |
+
<port id="0" precision="U8">
|
| 48 |
+
<dim>976263</dim>
|
| 49 |
+
</port>
|
| 50 |
+
</output>
|
| 51 |
+
</layer>
|
| 52 |
+
<layer id="5" name="Slice_79613" type="Const" version="opset1">
|
| 53 |
+
<data element_type="i32" shape="14" offset="2189583" size="56" />
|
| 54 |
+
<output>
|
| 55 |
+
<port id="0" precision="I32">
|
| 56 |
+
<dim>14</dim>
|
| 57 |
+
</port>
|
| 58 |
+
</output>
|
| 59 |
+
</layer>
|
| 60 |
+
<layer id="6" name="VocabDecoder_79615" type="VocabDecoder" version="extension">
|
| 61 |
+
<data skip_tokens="" />
|
| 62 |
+
<input>
|
| 63 |
+
<port id="0" precision="I32">
|
| 64 |
+
<dim>-1</dim>
|
| 65 |
+
<dim>-1</dim>
|
| 66 |
+
</port>
|
| 67 |
+
<port id="1" precision="I32">
|
| 68 |
+
<dim>151665</dim>
|
| 69 |
+
</port>
|
| 70 |
+
<port id="2" precision="I32">
|
| 71 |
+
<dim>151665</dim>
|
| 72 |
+
</port>
|
| 73 |
+
<port id="3" precision="U8">
|
| 74 |
+
<dim>976263</dim>
|
| 75 |
+
</port>
|
| 76 |
+
<port id="4" precision="I32">
|
| 77 |
+
<dim>14</dim>
|
| 78 |
+
</port>
|
| 79 |
+
</input>
|
| 80 |
+
<output>
|
| 81 |
+
<port id="5" precision="I32">
|
| 82 |
+
<dim>-1</dim>
|
| 83 |
+
</port>
|
| 84 |
+
<port id="6" precision="I32">
|
| 85 |
+
<dim>-1</dim>
|
| 86 |
+
</port>
|
| 87 |
+
<port id="7" precision="I32">
|
| 88 |
+
<dim>-1</dim>
|
| 89 |
+
</port>
|
| 90 |
+
<port id="8" precision="I32">
|
| 91 |
+
<dim>-1</dim>
|
| 92 |
+
</port>
|
| 93 |
+
<port id="9" precision="U8">
|
| 94 |
+
<dim>-1</dim>
|
| 95 |
+
</port>
|
| 96 |
+
</output>
|
| 97 |
+
</layer>
|
| 98 |
+
<layer id="7" name="FuzeRagged_79616" type="FuzeRagged" version="extension">
|
| 99 |
+
<input>
|
| 100 |
+
<port id="0" precision="I32">
|
| 101 |
+
<dim>-1</dim>
|
| 102 |
+
</port>
|
| 103 |
+
<port id="1" precision="I32">
|
| 104 |
+
<dim>-1</dim>
|
| 105 |
+
</port>
|
| 106 |
+
<port id="2" precision="I32">
|
| 107 |
+
<dim>-1</dim>
|
| 108 |
+
</port>
|
| 109 |
+
<port id="3" precision="I32">
|
| 110 |
+
<dim>-1</dim>
|
| 111 |
+
</port>
|
| 112 |
+
</input>
|
| 113 |
+
<output>
|
| 114 |
+
<port id="4" precision="I32">
|
| 115 |
+
<dim>-1</dim>
|
| 116 |
+
</port>
|
| 117 |
+
<port id="5" precision="I32">
|
| 118 |
+
<dim>-1</dim>
|
| 119 |
+
</port>
|
| 120 |
+
</output>
|
| 121 |
+
</layer>
|
| 122 |
+
<layer id="8" name="UTF8Validate_79617" type="UTF8Validate" version="extension">
|
| 123 |
+
<data replace_mode="true" />
|
| 124 |
+
<input>
|
| 125 |
+
<port id="0" precision="I32">
|
| 126 |
+
<dim>-1</dim>
|
| 127 |
+
</port>
|
| 128 |
+
<port id="1" precision="I32">
|
| 129 |
+
<dim>-1</dim>
|
| 130 |
+
</port>
|
| 131 |
+
<port id="2" precision="U8">
|
| 132 |
+
<dim>-1</dim>
|
| 133 |
+
</port>
|
| 134 |
+
</input>
|
| 135 |
+
<output>
|
| 136 |
+
<port id="3" precision="I32">
|
| 137 |
+
<dim>-1</dim>
|
| 138 |
+
</port>
|
| 139 |
+
<port id="4" precision="I32">
|
| 140 |
+
<dim>-1</dim>
|
| 141 |
+
</port>
|
| 142 |
+
<port id="5" precision="U8">
|
| 143 |
+
<dim>-1</dim>
|
| 144 |
+
</port>
|
| 145 |
+
</output>
|
| 146 |
+
</layer>
|
| 147 |
+
<layer id="9" name="StringTensorPack_79618" type="StringTensorPack" version="opset15">
|
| 148 |
+
<input>
|
| 149 |
+
<port id="0" precision="I32">
|
| 150 |
+
<dim>-1</dim>
|
| 151 |
+
</port>
|
| 152 |
+
<port id="1" precision="I32">
|
| 153 |
+
<dim>-1</dim>
|
| 154 |
+
</port>
|
| 155 |
+
<port id="2" precision="U8">
|
| 156 |
+
<dim>-1</dim>
|
| 157 |
+
</port>
|
| 158 |
+
</input>
|
| 159 |
+
<output>
|
| 160 |
+
<port id="3" precision="STRING" names="Result_79619,string_output">
|
| 161 |
+
<dim>-1</dim>
|
| 162 |
+
</port>
|
| 163 |
+
</output>
|
| 164 |
+
</layer>
|
| 165 |
+
<layer id="10" name="Result_79619" type="Result" version="opset1" output_names="Result_79619,string_output">
|
| 166 |
+
<input>
|
| 167 |
+
<port id="0" precision="STRING">
|
| 168 |
+
<dim>-1</dim>
|
| 169 |
+
</port>
|
| 170 |
+
</input>
|
| 171 |
+
</layer>
|
| 172 |
+
</layers>
|
| 173 |
+
<edges>
|
| 174 |
+
<edge from-layer="0" from-port="0" to-layer="1" to-port="0" />
|
| 175 |
+
<edge from-layer="1" from-port="1" to-layer="6" to-port="0" />
|
| 176 |
+
<edge from-layer="2" from-port="0" to-layer="6" to-port="1" />
|
| 177 |
+
<edge from-layer="3" from-port="0" to-layer="6" to-port="2" />
|
| 178 |
+
<edge from-layer="4" from-port="0" to-layer="6" to-port="3" />
|
| 179 |
+
<edge from-layer="5" from-port="0" to-layer="6" to-port="4" />
|
| 180 |
+
<edge from-layer="6" from-port="7" to-layer="7" to-port="2" />
|
| 181 |
+
<edge from-layer="6" from-port="9" to-layer="8" to-port="2" />
|
| 182 |
+
<edge from-layer="6" from-port="8" to-layer="7" to-port="3" />
|
| 183 |
+
<edge from-layer="6" from-port="6" to-layer="7" to-port="1" />
|
| 184 |
+
<edge from-layer="6" from-port="5" to-layer="7" to-port="0" />
|
| 185 |
+
<edge from-layer="7" from-port="4" to-layer="8" to-port="0" />
|
| 186 |
+
<edge from-layer="7" from-port="5" to-layer="8" to-port="1" />
|
| 187 |
+
<edge from-layer="8" from-port="3" to-layer="9" to-port="0" />
|
| 188 |
+
<edge from-layer="8" from-port="4" to-layer="9" to-port="1" />
|
| 189 |
+
<edge from-layer="8" from-port="5" to-layer="9" to-port="2" />
|
| 190 |
+
<edge from-layer="9" from-port="3" to-layer="10" to-port="0" />
|
| 191 |
+
</edges>
|
| 192 |
+
<rt_info>
|
| 193 |
+
<add_attention_mask value="True" />
|
| 194 |
+
<add_prefix_space />
|
| 195 |
+
<add_special_tokens value="True" />
|
| 196 |
+
<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 %} " />
|
| 197 |
+
<clean_up_tokenization_spaces />
|
| 198 |
+
<detokenizer_input_type value="i64" />
|
| 199 |
+
<eos_token_id value="151645" />
|
| 200 |
+
<handle_special_tokens_with_re />
|
| 201 |
+
<max_length />
|
| 202 |
+
<number_of_inputs value="1" />
|
| 203 |
+
<openvino_tokenizers_version value="2025.2.0.1-567-7885335c24b" />
|
| 204 |
+
<openvino_version value="2025.2.0-19140-c01cd93e24d-releases/2025/2" />
|
| 205 |
+
<original_post_processor_template value="{"type": "ByteLevel", "add_prefix_space": false, "trim_offsets": false, "use_regex": false}" />
|
| 206 |
+
<original_tokenizer_class value="<class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>" />
|
| 207 |
+
<pad_token_id value="151643" />
|
| 208 |
+
<sentencepiece_version value="0.2.1" />
|
| 209 |
+
<skip_special_tokens value="True" />
|
| 210 |
+
<streaming_detokenizer value="False" />
|
| 211 |
+
<tiktoken_version value="0.9.0" />
|
| 212 |
+
<tokenizer_output_type value="i64" />
|
| 213 |
+
<tokenizers_version value="0.21.4" />
|
| 214 |
+
<transformers_version value="4.51.3" />
|
| 215 |
+
<use_max_padding value="False" />
|
| 216 |
+
<use_sentencepiece_backend value="False" />
|
| 217 |
+
<utf8_replace_mode value="replace" />
|
| 218 |
+
<with_detokenizer value="True" />
|
| 219 |
+
</rt_info>
|
| 220 |
+
</net>
|
openvino_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdffb86766b3da0a24c9de9f9da92ed79acb2b59fc93a5dd12cae6b2d1d48d04
|
| 3 |
+
size 322723912
|
openvino_model.xml
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
openvino_tokenizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e3a56216ade1ed29c7744b5e6bc27ffdc85038747766e838b3d881713fc0633
|
| 3 |
+
size 5588645
|
openvino_tokenizer.xml
ADDED
|
@@ -0,0 +1,723 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<net name="tokenizer" version="11">
|
| 3 |
+
<layers>
|
| 4 |
+
<layer id="0" name="Parameter_79481" type="Parameter" version="opset1">
|
| 5 |
+
<data shape="?" element_type="string" />
|
| 6 |
+
<output>
|
| 7 |
+
<port id="0" precision="STRING" names="Parameter_79481">
|
| 8 |
+
<dim>-1</dim>
|
| 9 |
+
</port>
|
| 10 |
+
</output>
|
| 11 |
+
</layer>
|
| 12 |
+
<layer id="1" name="Constant_79487" type="Const" version="opset1">
|
| 13 |
+
<data element_type="i64" shape="" offset="0" size="8" />
|
| 14 |
+
<output>
|
| 15 |
+
<port id="0" precision="I64" />
|
| 16 |
+
</output>
|
| 17 |
+
</layer>
|
| 18 |
+
<layer id="2" name="StringTensorUnpack_79482" type="StringTensorUnpack" version="opset15">
|
| 19 |
+
<input>
|
| 20 |
+
<port id="0" precision="STRING">
|
| 21 |
+
<dim>-1</dim>
|
| 22 |
+
</port>
|
| 23 |
+
</input>
|
| 24 |
+
<output>
|
| 25 |
+
<port id="1" precision="I32">
|
| 26 |
+
<dim>-1</dim>
|
| 27 |
+
</port>
|
| 28 |
+
<port id="2" precision="I32">
|
| 29 |
+
<dim>-1</dim>
|
| 30 |
+
</port>
|
| 31 |
+
<port id="3" precision="U8">
|
| 32 |
+
<dim>-1</dim>
|
| 33 |
+
</port>
|
| 34 |
+
</output>
|
| 35 |
+
</layer>
|
| 36 |
+
<layer id="3" name="ShapeOf_79483" type="ShapeOf" version="opset3">
|
| 37 |
+
<data output_type="i64" />
|
| 38 |
+
<input>
|
| 39 |
+
<port id="0" precision="I32">
|
| 40 |
+
<dim>-1</dim>
|
| 41 |
+
</port>
|
| 42 |
+
</input>
|
| 43 |
+
<output>
|
| 44 |
+
<port id="1" precision="I64">
|
| 45 |
+
<dim>1</dim>
|
| 46 |
+
</port>
|
| 47 |
+
</output>
|
| 48 |
+
</layer>
|
| 49 |
+
<layer id="4" name="Constant_79484" type="Const" version="opset1">
|
| 50 |
+
<data element_type="i64" shape="" offset="0" size="8" />
|
| 51 |
+
<output>
|
| 52 |
+
<port id="0" precision="I64" />
|
| 53 |
+
</output>
|
| 54 |
+
</layer>
|
| 55 |
+
<layer id="5" name="Constant_79485" type="Const" version="opset1">
|
| 56 |
+
<data element_type="i64" shape="" offset="0" size="8" />
|
| 57 |
+
<output>
|
| 58 |
+
<port id="0" precision="I64" />
|
| 59 |
+
</output>
|
| 60 |
+
</layer>
|
| 61 |
+
<layer id="6" name="Gather_79486" type="Gather" version="opset8">
|
| 62 |
+
<data batch_dims="0" />
|
| 63 |
+
<input>
|
| 64 |
+
<port id="0" precision="I64">
|
| 65 |
+
<dim>1</dim>
|
| 66 |
+
</port>
|
| 67 |
+
<port id="1" precision="I64" />
|
| 68 |
+
<port id="2" precision="I64" />
|
| 69 |
+
</input>
|
| 70 |
+
<output>
|
| 71 |
+
<port id="3" precision="I64" />
|
| 72 |
+
</output>
|
| 73 |
+
</layer>
|
| 74 |
+
<layer id="7" name="Constant_79488" type="Const" version="opset1">
|
| 75 |
+
<data element_type="i64" shape="" offset="8" size="8" />
|
| 76 |
+
<output>
|
| 77 |
+
<port id="0" precision="I64" />
|
| 78 |
+
</output>
|
| 79 |
+
</layer>
|
| 80 |
+
<layer id="8" name="Range_79489" type="Range" version="opset4">
|
| 81 |
+
<data output_type="i32" />
|
| 82 |
+
<input>
|
| 83 |
+
<port id="0" precision="I64" />
|
| 84 |
+
<port id="1" precision="I64" />
|
| 85 |
+
<port id="2" precision="I64" />
|
| 86 |
+
</input>
|
| 87 |
+
<output>
|
| 88 |
+
<port id="3" precision="I32">
|
| 89 |
+
<dim>-1</dim>
|
| 90 |
+
</port>
|
| 91 |
+
</output>
|
| 92 |
+
</layer>
|
| 93 |
+
<layer id="9" name="Constant_79490" type="Const" version="opset1">
|
| 94 |
+
<data element_type="i64" shape="" offset="8" size="8" />
|
| 95 |
+
<output>
|
| 96 |
+
<port id="0" precision="I64" />
|
| 97 |
+
</output>
|
| 98 |
+
</layer>
|
| 99 |
+
<layer id="10" name="Constant_79491" type="Const" version="opset1">
|
| 100 |
+
<data element_type="i64" shape="" offset="8" size="8" />
|
| 101 |
+
<output>
|
| 102 |
+
<port id="0" precision="I64" />
|
| 103 |
+
</output>
|
| 104 |
+
</layer>
|
| 105 |
+
<layer id="11" name="Add_79492" type="Add" version="opset1">
|
| 106 |
+
<data auto_broadcast="numpy" />
|
| 107 |
+
<input>
|
| 108 |
+
<port id="0" precision="I64" />
|
| 109 |
+
<port id="1" precision="I64" />
|
| 110 |
+
</input>
|
| 111 |
+
<output>
|
| 112 |
+
<port id="2" precision="I64" />
|
| 113 |
+
</output>
|
| 114 |
+
</layer>
|
| 115 |
+
<layer id="12" name="Constant_79493" type="Const" version="opset1">
|
| 116 |
+
<data element_type="i64" shape="" offset="8" size="8" />
|
| 117 |
+
<output>
|
| 118 |
+
<port id="0" precision="I64" />
|
| 119 |
+
</output>
|
| 120 |
+
</layer>
|
| 121 |
+
<layer id="13" name="Range_79494" type="Range" version="opset4">
|
| 122 |
+
<data output_type="i32" />
|
| 123 |
+
<input>
|
| 124 |
+
<port id="0" precision="I64" />
|
| 125 |
+
<port id="1" precision="I64" />
|
| 126 |
+
<port id="2" precision="I64" />
|
| 127 |
+
</input>
|
| 128 |
+
<output>
|
| 129 |
+
<port id="3" precision="I32">
|
| 130 |
+
<dim>-1</dim>
|
| 131 |
+
</port>
|
| 132 |
+
</output>
|
| 133 |
+
</layer>
|
| 134 |
+
<layer id="14" name="Constant_79556" type="Const" version="opset1">
|
| 135 |
+
<data element_type="u8" shape="444" offset="16" size="444" />
|
| 136 |
+
<output>
|
| 137 |
+
<port id="0" precision="U8">
|
| 138 |
+
<dim>444</dim>
|
| 139 |
+
</port>
|
| 140 |
+
</output>
|
| 141 |
+
</layer>
|
| 142 |
+
<layer id="15" name="SpecialTokensSplit_79557" type="SpecialTokensSplit" version="extension">
|
| 143 |
+
<input>
|
| 144 |
+
<port id="0" precision="I32">
|
| 145 |
+
<dim>-1</dim>
|
| 146 |
+
</port>
|
| 147 |
+
<port id="1" precision="I32">
|
| 148 |
+
<dim>-1</dim>
|
| 149 |
+
</port>
|
| 150 |
+
<port id="2" precision="I32">
|
| 151 |
+
<dim>-1</dim>
|
| 152 |
+
</port>
|
| 153 |
+
<port id="3" precision="I32">
|
| 154 |
+
<dim>-1</dim>
|
| 155 |
+
</port>
|
| 156 |
+
<port id="4" precision="U8">
|
| 157 |
+
<dim>-1</dim>
|
| 158 |
+
</port>
|
| 159 |
+
<port id="5" precision="U8">
|
| 160 |
+
<dim>444</dim>
|
| 161 |
+
</port>
|
| 162 |
+
</input>
|
| 163 |
+
<output>
|
| 164 |
+
<port id="6" precision="I32">
|
| 165 |
+
<dim>-1</dim>
|
| 166 |
+
</port>
|
| 167 |
+
<port id="7" precision="I32">
|
| 168 |
+
<dim>-1</dim>
|
| 169 |
+
</port>
|
| 170 |
+
<port id="8" precision="I32">
|
| 171 |
+
<dim>-1</dim>
|
| 172 |
+
</port>
|
| 173 |
+
<port id="9" precision="I32">
|
| 174 |
+
<dim>-1</dim>
|
| 175 |
+
</port>
|
| 176 |
+
<port id="10" precision="U8">
|
| 177 |
+
<dim>-1</dim>
|
| 178 |
+
</port>
|
| 179 |
+
<port id="11" precision="BOOL">
|
| 180 |
+
<dim>-1</dim>
|
| 181 |
+
</port>
|
| 182 |
+
</output>
|
| 183 |
+
</layer>
|
| 184 |
+
<layer id="16" name="CharsMapNormalization_79558" type="CharsMapNormalization" version="extension">
|
| 185 |
+
<data add_dummy_prefix="false" remove_extra_whitespaces="false" escape_whitespaces="false" normalization_form="nfc" case_fold="false" nmt="false" />
|
| 186 |
+
<input>
|
| 187 |
+
<port id="0" precision="I32">
|
| 188 |
+
<dim>-1</dim>
|
| 189 |
+
</port>
|
| 190 |
+
<port id="1" precision="I32">
|
| 191 |
+
<dim>-1</dim>
|
| 192 |
+
</port>
|
| 193 |
+
<port id="2" precision="U8">
|
| 194 |
+
<dim>-1</dim>
|
| 195 |
+
</port>
|
| 196 |
+
<port id="3" precision="BOOL">
|
| 197 |
+
<dim>-1</dim>
|
| 198 |
+
</port>
|
| 199 |
+
</input>
|
| 200 |
+
<output>
|
| 201 |
+
<port id="4" precision="I32">
|
| 202 |
+
<dim>-1</dim>
|
| 203 |
+
</port>
|
| 204 |
+
<port id="5" precision="I32">
|
| 205 |
+
<dim>-1</dim>
|
| 206 |
+
</port>
|
| 207 |
+
<port id="6" precision="U8">
|
| 208 |
+
<dim>-1</dim>
|
| 209 |
+
</port>
|
| 210 |
+
<port id="7" precision="BOOL">
|
| 211 |
+
<dim>-1</dim>
|
| 212 |
+
</port>
|
| 213 |
+
</output>
|
| 214 |
+
</layer>
|
| 215 |
+
<layer id="17" name="Constant_79560" type="Const" version="opset1">
|
| 216 |
+
<data element_type="u8" shape="110" offset="460" size="110" />
|
| 217 |
+
<output>
|
| 218 |
+
<port id="0" precision="U8">
|
| 219 |
+
<dim>110</dim>
|
| 220 |
+
</port>
|
| 221 |
+
</output>
|
| 222 |
+
</layer>
|
| 223 |
+
<layer id="18" name="RegexSplit_79561" type="RegexSplit" version="extension">
|
| 224 |
+
<data behaviour="isolate" invert="false" max_splits="-1" />
|
| 225 |
+
<input>
|
| 226 |
+
<port id="0" precision="I32">
|
| 227 |
+
<dim>-1</dim>
|
| 228 |
+
</port>
|
| 229 |
+
<port id="1" precision="I32">
|
| 230 |
+
<dim>-1</dim>
|
| 231 |
+
</port>
|
| 232 |
+
<port id="2" precision="I32">
|
| 233 |
+
<dim>-1</dim>
|
| 234 |
+
</port>
|
| 235 |
+
<port id="3" precision="I32">
|
| 236 |
+
<dim>-1</dim>
|
| 237 |
+
</port>
|
| 238 |
+
<port id="4" precision="U8">
|
| 239 |
+
<dim>-1</dim>
|
| 240 |
+
</port>
|
| 241 |
+
<port id="5" precision="BOOL">
|
| 242 |
+
<dim>-1</dim>
|
| 243 |
+
</port>
|
| 244 |
+
<port id="6" precision="U8">
|
| 245 |
+
<dim>110</dim>
|
| 246 |
+
</port>
|
| 247 |
+
</input>
|
| 248 |
+
<output>
|
| 249 |
+
<port id="7" precision="I32">
|
| 250 |
+
<dim>-1</dim>
|
| 251 |
+
</port>
|
| 252 |
+
<port id="8" precision="I32">
|
| 253 |
+
<dim>-1</dim>
|
| 254 |
+
</port>
|
| 255 |
+
<port id="9" precision="I32">
|
| 256 |
+
<dim>-1</dim>
|
| 257 |
+
</port>
|
| 258 |
+
<port id="10" precision="I32">
|
| 259 |
+
<dim>-1</dim>
|
| 260 |
+
</port>
|
| 261 |
+
<port id="11" precision="U8">
|
| 262 |
+
<dim>-1</dim>
|
| 263 |
+
</port>
|
| 264 |
+
<port id="12" precision="BOOL">
|
| 265 |
+
<dim>-1</dim>
|
| 266 |
+
</port>
|
| 267 |
+
</output>
|
| 268 |
+
</layer>
|
| 269 |
+
<layer id="19" name="Constant_79563" type="Const" version="opset1">
|
| 270 |
+
<data element_type="i32" shape="151665" offset="570" size="606660" />
|
| 271 |
+
<output>
|
| 272 |
+
<port id="0" precision="I32">
|
| 273 |
+
<dim>151665</dim>
|
| 274 |
+
</port>
|
| 275 |
+
</output>
|
| 276 |
+
</layer>
|
| 277 |
+
<layer id="20" name="Constant_79565" type="Const" version="opset1">
|
| 278 |
+
<data element_type="i32" shape="151665" offset="607230" size="606660" />
|
| 279 |
+
<output>
|
| 280 |
+
<port id="0" precision="I32">
|
| 281 |
+
<dim>151665</dim>
|
| 282 |
+
</port>
|
| 283 |
+
</output>
|
| 284 |
+
</layer>
|
| 285 |
+
<layer id="21" name="Constant_79567" type="Const" version="opset1">
|
| 286 |
+
<data element_type="u8" shape="976263" offset="1213890" size="976263" />
|
| 287 |
+
<output>
|
| 288 |
+
<port id="0" precision="U8">
|
| 289 |
+
<dim>976263</dim>
|
| 290 |
+
</port>
|
| 291 |
+
</output>
|
| 292 |
+
</layer>
|
| 293 |
+
<layer id="22" name="Constant_79575" type="Const" version="opset1">
|
| 294 |
+
<data element_type="i32" shape="151387" offset="2190153" size="605548" />
|
| 295 |
+
<output>
|
| 296 |
+
<port id="0" precision="I32">
|
| 297 |
+
<dim>151387</dim>
|
| 298 |
+
</port>
|
| 299 |
+
</output>
|
| 300 |
+
</layer>
|
| 301 |
+
<layer id="23" name="Constant_79577" type="Const" version="opset1">
|
| 302 |
+
<data element_type="i32" shape="151387" offset="2795701" size="605548" />
|
| 303 |
+
<output>
|
| 304 |
+
<port id="0" precision="I32">
|
| 305 |
+
<dim>151387</dim>
|
| 306 |
+
</port>
|
| 307 |
+
</output>
|
| 308 |
+
</layer>
|
| 309 |
+
<layer id="24" name="Constant_79579" type="Const" version="opset1">
|
| 310 |
+
<data element_type="u8" shape="491359" offset="3401249" size="491359" />
|
| 311 |
+
<output>
|
| 312 |
+
<port id="0" precision="U8">
|
| 313 |
+
<dim>491359</dim>
|
| 314 |
+
</port>
|
| 315 |
+
</output>
|
| 316 |
+
</layer>
|
| 317 |
+
<layer id="25" name="Constant_79581" type="Const" version="opset1">
|
| 318 |
+
<data element_type="i32" shape="151387" offset="3892608" size="605548" />
|
| 319 |
+
<output>
|
| 320 |
+
<port id="0" precision="I32">
|
| 321 |
+
<dim>151387</dim>
|
| 322 |
+
</port>
|
| 323 |
+
</output>
|
| 324 |
+
</layer>
|
| 325 |
+
<layer id="26" name="Constant_79583" type="Const" version="opset1">
|
| 326 |
+
<data element_type="i32" shape="151387" offset="4498156" size="605548" />
|
| 327 |
+
<output>
|
| 328 |
+
<port id="0" precision="I32">
|
| 329 |
+
<dim>151387</dim>
|
| 330 |
+
</port>
|
| 331 |
+
</output>
|
| 332 |
+
</layer>
|
| 333 |
+
<layer id="27" name="Constant_79585" type="Const" version="opset1">
|
| 334 |
+
<data element_type="u8" shape="484354" offset="5103704" size="484354" />
|
| 335 |
+
<output>
|
| 336 |
+
<port id="0" precision="U8">
|
| 337 |
+
<dim>484354</dim>
|
| 338 |
+
</port>
|
| 339 |
+
</output>
|
| 340 |
+
</layer>
|
| 341 |
+
<layer id="28" name="Constant_79569" type="Const" version="opset1">
|
| 342 |
+
<data element_type="i32" shape="22" offset="5588058" size="88" />
|
| 343 |
+
<output>
|
| 344 |
+
<port id="0" precision="I32">
|
| 345 |
+
<dim>22</dim>
|
| 346 |
+
</port>
|
| 347 |
+
</output>
|
| 348 |
+
</layer>
|
| 349 |
+
<layer id="29" name="Constant_79571" type="Const" version="opset1">
|
| 350 |
+
<data element_type="i32" shape="22" offset="5588146" size="88" />
|
| 351 |
+
<output>
|
| 352 |
+
<port id="0" precision="I32">
|
| 353 |
+
<dim>22</dim>
|
| 354 |
+
</port>
|
| 355 |
+
</output>
|
| 356 |
+
</layer>
|
| 357 |
+
<layer id="30" name="Constant_79573" type="Const" version="opset1">
|
| 358 |
+
<data element_type="u8" shape="294" offset="5588234" size="294" />
|
| 359 |
+
<output>
|
| 360 |
+
<port id="0" precision="U8">
|
| 361 |
+
<dim>294</dim>
|
| 362 |
+
</port>
|
| 363 |
+
</output>
|
| 364 |
+
</layer>
|
| 365 |
+
<layer id="31" name="Constant_79586" type="Const" version="opset1">
|
| 366 |
+
<data element_type="i32" shape="22" offset="5588528" size="88" />
|
| 367 |
+
<output>
|
| 368 |
+
<port id="0" precision="I32">
|
| 369 |
+
<dim>22</dim>
|
| 370 |
+
</port>
|
| 371 |
+
</output>
|
| 372 |
+
</layer>
|
| 373 |
+
<layer id="32" name="BPETokenizer_79587" type="BPETokenizer" version="extension">
|
| 374 |
+
<data unk_token="" fuse_unk="false" suffix_indicator="" end_suffix="" byte_fallback="false" cache_capacity="30328" />
|
| 375 |
+
<input>
|
| 376 |
+
<port id="0" precision="I32">
|
| 377 |
+
<dim>-1</dim>
|
| 378 |
+
</port>
|
| 379 |
+
<port id="1" precision="I32">
|
| 380 |
+
<dim>-1</dim>
|
| 381 |
+
</port>
|
| 382 |
+
<port id="2" precision="I32">
|
| 383 |
+
<dim>-1</dim>
|
| 384 |
+
</port>
|
| 385 |
+
<port id="3" precision="I32">
|
| 386 |
+
<dim>-1</dim>
|
| 387 |
+
</port>
|
| 388 |
+
<port id="4" precision="U8">
|
| 389 |
+
<dim>-1</dim>
|
| 390 |
+
</port>
|
| 391 |
+
<port id="5" precision="I32">
|
| 392 |
+
<dim>151665</dim>
|
| 393 |
+
</port>
|
| 394 |
+
<port id="6" precision="I32">
|
| 395 |
+
<dim>151665</dim>
|
| 396 |
+
</port>
|
| 397 |
+
<port id="7" precision="U8">
|
| 398 |
+
<dim>976263</dim>
|
| 399 |
+
</port>
|
| 400 |
+
<port id="8" precision="I32">
|
| 401 |
+
<dim>151387</dim>
|
| 402 |
+
</port>
|
| 403 |
+
<port id="9" precision="I32">
|
| 404 |
+
<dim>151387</dim>
|
| 405 |
+
</port>
|
| 406 |
+
<port id="10" precision="U8">
|
| 407 |
+
<dim>491359</dim>
|
| 408 |
+
</port>
|
| 409 |
+
<port id="11" precision="I32">
|
| 410 |
+
<dim>151387</dim>
|
| 411 |
+
</port>
|
| 412 |
+
<port id="12" precision="I32">
|
| 413 |
+
<dim>151387</dim>
|
| 414 |
+
</port>
|
| 415 |
+
<port id="13" precision="U8">
|
| 416 |
+
<dim>484354</dim>
|
| 417 |
+
</port>
|
| 418 |
+
<port id="14" precision="I32">
|
| 419 |
+
<dim>22</dim>
|
| 420 |
+
</port>
|
| 421 |
+
<port id="15" precision="I32">
|
| 422 |
+
<dim>22</dim>
|
| 423 |
+
</port>
|
| 424 |
+
<port id="16" precision="U8">
|
| 425 |
+
<dim>294</dim>
|
| 426 |
+
</port>
|
| 427 |
+
<port id="17" precision="I32">
|
| 428 |
+
<dim>22</dim>
|
| 429 |
+
</port>
|
| 430 |
+
</input>
|
| 431 |
+
<output>
|
| 432 |
+
<port id="18" precision="I32">
|
| 433 |
+
<dim>-1</dim>
|
| 434 |
+
</port>
|
| 435 |
+
<port id="19" precision="I32">
|
| 436 |
+
<dim>-1</dim>
|
| 437 |
+
</port>
|
| 438 |
+
<port id="20" precision="I32">
|
| 439 |
+
<dim>-1</dim>
|
| 440 |
+
</port>
|
| 441 |
+
</output>
|
| 442 |
+
</layer>
|
| 443 |
+
<layer id="33" name="Constant_79588" type="Const" version="opset1">
|
| 444 |
+
<data element_type="i32" shape="" offset="5588616" size="4" />
|
| 445 |
+
<output>
|
| 446 |
+
<port id="0" precision="I32" />
|
| 447 |
+
</output>
|
| 448 |
+
</layer>
|
| 449 |
+
<layer id="34" name="Constant_79590" type="Const" version="opset1">
|
| 450 |
+
<data element_type="u8" shape="4" offset="5588620" size="4" />
|
| 451 |
+
<output>
|
| 452 |
+
<port id="0" precision="U8">
|
| 453 |
+
<dim>4</dim>
|
| 454 |
+
</port>
|
| 455 |
+
</output>
|
| 456 |
+
</layer>
|
| 457 |
+
<layer id="35" name="Constant_79592" type="Const" version="opset1">
|
| 458 |
+
<data element_type="u8" shape="13" offset="5588624" size="13" />
|
| 459 |
+
<output>
|
| 460 |
+
<port id="0" precision="U8">
|
| 461 |
+
<dim>13</dim>
|
| 462 |
+
</port>
|
| 463 |
+
</output>
|
| 464 |
+
</layer>
|
| 465 |
+
<layer id="36" name="Truncate_79593" type="Truncate" version="extension">
|
| 466 |
+
<data m_num_inputs="1" />
|
| 467 |
+
<input>
|
| 468 |
+
<port id="0" precision="I32">
|
| 469 |
+
<dim>-1</dim>
|
| 470 |
+
</port>
|
| 471 |
+
<port id="1" precision="I32">
|
| 472 |
+
<dim>-1</dim>
|
| 473 |
+
</port>
|
| 474 |
+
<port id="2" precision="I32">
|
| 475 |
+
<dim>-1</dim>
|
| 476 |
+
</port>
|
| 477 |
+
<port id="3" precision="I32" />
|
| 478 |
+
<port id="4" precision="U8">
|
| 479 |
+
<dim>4</dim>
|
| 480 |
+
</port>
|
| 481 |
+
<port id="5" precision="U8">
|
| 482 |
+
<dim>13</dim>
|
| 483 |
+
</port>
|
| 484 |
+
</input>
|
| 485 |
+
<output>
|
| 486 |
+
<port id="6" precision="I32">
|
| 487 |
+
<dim>-1</dim>
|
| 488 |
+
</port>
|
| 489 |
+
<port id="7" precision="I32">
|
| 490 |
+
<dim>-1</dim>
|
| 491 |
+
</port>
|
| 492 |
+
<port id="8" precision="I32">
|
| 493 |
+
<dim>-1</dim>
|
| 494 |
+
</port>
|
| 495 |
+
</output>
|
| 496 |
+
</layer>
|
| 497 |
+
<layer id="37" name="Subtract_79594" type="Subtract" version="opset1">
|
| 498 |
+
<data auto_broadcast="numpy" />
|
| 499 |
+
<input>
|
| 500 |
+
<port id="0" precision="I32">
|
| 501 |
+
<dim>-1</dim>
|
| 502 |
+
</port>
|
| 503 |
+
<port id="1" precision="I32">
|
| 504 |
+
<dim>-1</dim>
|
| 505 |
+
</port>
|
| 506 |
+
</input>
|
| 507 |
+
<output>
|
| 508 |
+
<port id="2" precision="I32">
|
| 509 |
+
<dim>-1</dim>
|
| 510 |
+
</port>
|
| 511 |
+
</output>
|
| 512 |
+
</layer>
|
| 513 |
+
<layer id="38" name="Constant_79595" type="Const" version="opset1">
|
| 514 |
+
<data element_type="i32" shape="" offset="5588637" size="4" />
|
| 515 |
+
<output>
|
| 516 |
+
<port id="0" precision="I32" />
|
| 517 |
+
</output>
|
| 518 |
+
</layer>
|
| 519 |
+
<layer id="39" name="ReduceMax_79596" type="ReduceMax" version="opset1">
|
| 520 |
+
<data keep_dims="false" />
|
| 521 |
+
<input>
|
| 522 |
+
<port id="0" precision="I32">
|
| 523 |
+
<dim>-1</dim>
|
| 524 |
+
</port>
|
| 525 |
+
<port id="1" precision="I32" />
|
| 526 |
+
</input>
|
| 527 |
+
<output>
|
| 528 |
+
<port id="2" precision="I32" />
|
| 529 |
+
</output>
|
| 530 |
+
</layer>
|
| 531 |
+
<layer id="40" name="Constant_79597" type="Const" version="opset1">
|
| 532 |
+
<data element_type="i32" shape="" offset="5588641" size="4" />
|
| 533 |
+
<output>
|
| 534 |
+
<port id="0" precision="I32" />
|
| 535 |
+
</output>
|
| 536 |
+
</layer>
|
| 537 |
+
<layer id="41" name="RaggedToDense_79598" type="RaggedToDense" version="extension">
|
| 538 |
+
<data pad_right="false" m_pad_max_length="false" />
|
| 539 |
+
<input>
|
| 540 |
+
<port id="0" precision="I32">
|
| 541 |
+
<dim>-1</dim>
|
| 542 |
+
</port>
|
| 543 |
+
<port id="1" precision="I32">
|
| 544 |
+
<dim>-1</dim>
|
| 545 |
+
</port>
|
| 546 |
+
<port id="2" precision="I32">
|
| 547 |
+
<dim>-1</dim>
|
| 548 |
+
</port>
|
| 549 |
+
<port id="3" precision="I32" />
|
| 550 |
+
<port id="4" precision="I32" />
|
| 551 |
+
</input>
|
| 552 |
+
<output>
|
| 553 |
+
<port id="5" precision="I32">
|
| 554 |
+
<dim>-1</dim>
|
| 555 |
+
<dim>-1</dim>
|
| 556 |
+
</port>
|
| 557 |
+
<port id="6" precision="BOOL">
|
| 558 |
+
<dim>-1</dim>
|
| 559 |
+
<dim>-1</dim>
|
| 560 |
+
</port>
|
| 561 |
+
</output>
|
| 562 |
+
</layer>
|
| 563 |
+
<layer id="42" name="Convert_79599" type="Convert" version="opset1">
|
| 564 |
+
<data destination_type="i32" />
|
| 565 |
+
<input>
|
| 566 |
+
<port id="0" precision="BOOL">
|
| 567 |
+
<dim>-1</dim>
|
| 568 |
+
<dim>-1</dim>
|
| 569 |
+
</port>
|
| 570 |
+
</input>
|
| 571 |
+
<output>
|
| 572 |
+
<port id="1" precision="I32">
|
| 573 |
+
<dim>-1</dim>
|
| 574 |
+
<dim>-1</dim>
|
| 575 |
+
</port>
|
| 576 |
+
</output>
|
| 577 |
+
</layer>
|
| 578 |
+
<layer id="43" name="Convert_79599.0" type="Convert" version="opset1">
|
| 579 |
+
<data destination_type="i64" />
|
| 580 |
+
<input>
|
| 581 |
+
<port id="0" precision="I32">
|
| 582 |
+
<dim>-1</dim>
|
| 583 |
+
<dim>-1</dim>
|
| 584 |
+
</port>
|
| 585 |
+
</input>
|
| 586 |
+
<output>
|
| 587 |
+
<port id="1" precision="I64" names="attention_mask">
|
| 588 |
+
<dim>-1</dim>
|
| 589 |
+
<dim>-1</dim>
|
| 590 |
+
</port>
|
| 591 |
+
</output>
|
| 592 |
+
</layer>
|
| 593 |
+
<layer id="45" name="RaggedToDense_79598.0" type="Convert" version="opset1">
|
| 594 |
+
<data destination_type="i64" />
|
| 595 |
+
<input>
|
| 596 |
+
<port id="0" precision="I32">
|
| 597 |
+
<dim>-1</dim>
|
| 598 |
+
<dim>-1</dim>
|
| 599 |
+
</port>
|
| 600 |
+
</input>
|
| 601 |
+
<output>
|
| 602 |
+
<port id="1" precision="I64" names="input_ids">
|
| 603 |
+
<dim>-1</dim>
|
| 604 |
+
<dim>-1</dim>
|
| 605 |
+
</port>
|
| 606 |
+
</output>
|
| 607 |
+
</layer>
|
| 608 |
+
<layer id="46" name="Result_79600" type="Result" version="opset1" output_names="input_ids">
|
| 609 |
+
<input>
|
| 610 |
+
<port id="0" precision="I64">
|
| 611 |
+
<dim>-1</dim>
|
| 612 |
+
<dim>-1</dim>
|
| 613 |
+
</port>
|
| 614 |
+
</input>
|
| 615 |
+
</layer>
|
| 616 |
+
<layer id="44" name="Result_79601" type="Result" version="opset1" output_names="attention_mask">
|
| 617 |
+
<input>
|
| 618 |
+
<port id="0" precision="I64">
|
| 619 |
+
<dim>-1</dim>
|
| 620 |
+
<dim>-1</dim>
|
| 621 |
+
</port>
|
| 622 |
+
</input>
|
| 623 |
+
</layer>
|
| 624 |
+
</layers>
|
| 625 |
+
<edges>
|
| 626 |
+
<edge from-layer="0" from-port="0" to-layer="2" to-port="0" />
|
| 627 |
+
<edge from-layer="1" from-port="0" to-layer="8" to-port="0" />
|
| 628 |
+
<edge from-layer="2" from-port="1" to-layer="3" to-port="0" />
|
| 629 |
+
<edge from-layer="2" from-port="3" to-layer="15" to-port="4" />
|
| 630 |
+
<edge from-layer="2" from-port="2" to-layer="15" to-port="3" />
|
| 631 |
+
<edge from-layer="2" from-port="1" to-layer="15" to-port="2" />
|
| 632 |
+
<edge from-layer="3" from-port="1" to-layer="6" to-port="0" />
|
| 633 |
+
<edge from-layer="4" from-port="0" to-layer="6" to-port="1" />
|
| 634 |
+
<edge from-layer="5" from-port="0" to-layer="6" to-port="2" />
|
| 635 |
+
<edge from-layer="6" from-port="3" to-layer="11" to-port="0" />
|
| 636 |
+
<edge from-layer="6" from-port="3" to-layer="8" to-port="1" />
|
| 637 |
+
<edge from-layer="7" from-port="0" to-layer="8" to-port="2" />
|
| 638 |
+
<edge from-layer="8" from-port="3" to-layer="15" to-port="0" />
|
| 639 |
+
<edge from-layer="9" from-port="0" to-layer="13" to-port="0" />
|
| 640 |
+
<edge from-layer="10" from-port="0" to-layer="11" to-port="1" />
|
| 641 |
+
<edge from-layer="11" from-port="2" to-layer="13" to-port="1" />
|
| 642 |
+
<edge from-layer="12" from-port="0" to-layer="13" to-port="2" />
|
| 643 |
+
<edge from-layer="13" from-port="3" to-layer="15" to-port="1" />
|
| 644 |
+
<edge from-layer="14" from-port="0" to-layer="15" to-port="5" />
|
| 645 |
+
<edge from-layer="15" from-port="8" to-layer="16" to-port="0" />
|
| 646 |
+
<edge from-layer="15" from-port="7" to-layer="18" to-port="1" />
|
| 647 |
+
<edge from-layer="15" from-port="6" to-layer="18" to-port="0" />
|
| 648 |
+
<edge from-layer="15" from-port="11" to-layer="16" to-port="3" />
|
| 649 |
+
<edge from-layer="15" from-port="10" to-layer="16" to-port="2" />
|
| 650 |
+
<edge from-layer="15" from-port="9" to-layer="16" to-port="1" />
|
| 651 |
+
<edge from-layer="16" from-port="4" to-layer="18" to-port="2" />
|
| 652 |
+
<edge from-layer="16" from-port="5" to-layer="18" to-port="3" />
|
| 653 |
+
<edge from-layer="16" from-port="6" to-layer="18" to-port="4" />
|
| 654 |
+
<edge from-layer="16" from-port="7" to-layer="18" to-port="5" />
|
| 655 |
+
<edge from-layer="17" from-port="0" to-layer="18" to-port="6" />
|
| 656 |
+
<edge from-layer="18" from-port="11" to-layer="32" to-port="4" />
|
| 657 |
+
<edge from-layer="18" from-port="10" to-layer="32" to-port="3" />
|
| 658 |
+
<edge from-layer="18" from-port="8" to-layer="32" to-port="1" />
|
| 659 |
+
<edge from-layer="18" from-port="9" to-layer="32" to-port="2" />
|
| 660 |
+
<edge from-layer="18" from-port="7" to-layer="32" to-port="0" />
|
| 661 |
+
<edge from-layer="19" from-port="0" to-layer="32" to-port="5" />
|
| 662 |
+
<edge from-layer="20" from-port="0" to-layer="32" to-port="6" />
|
| 663 |
+
<edge from-layer="21" from-port="0" to-layer="32" to-port="7" />
|
| 664 |
+
<edge from-layer="22" from-port="0" to-layer="32" to-port="8" />
|
| 665 |
+
<edge from-layer="23" from-port="0" to-layer="32" to-port="9" />
|
| 666 |
+
<edge from-layer="24" from-port="0" to-layer="32" to-port="10" />
|
| 667 |
+
<edge from-layer="25" from-port="0" to-layer="32" to-port="11" />
|
| 668 |
+
<edge from-layer="26" from-port="0" to-layer="32" to-port="12" />
|
| 669 |
+
<edge from-layer="27" from-port="0" to-layer="32" to-port="13" />
|
| 670 |
+
<edge from-layer="28" from-port="0" to-layer="32" to-port="14" />
|
| 671 |
+
<edge from-layer="29" from-port="0" to-layer="32" to-port="15" />
|
| 672 |
+
<edge from-layer="30" from-port="0" to-layer="32" to-port="16" />
|
| 673 |
+
<edge from-layer="31" from-port="0" to-layer="32" to-port="17" />
|
| 674 |
+
<edge from-layer="32" from-port="20" to-layer="36" to-port="2" />
|
| 675 |
+
<edge from-layer="32" from-port="18" to-layer="36" to-port="0" />
|
| 676 |
+
<edge from-layer="32" from-port="19" to-layer="36" to-port="1" />
|
| 677 |
+
<edge from-layer="33" from-port="0" to-layer="36" to-port="3" />
|
| 678 |
+
<edge from-layer="34" from-port="0" to-layer="36" to-port="4" />
|
| 679 |
+
<edge from-layer="35" from-port="0" to-layer="36" to-port="5" />
|
| 680 |
+
<edge from-layer="36" from-port="6" to-layer="41" to-port="0" />
|
| 681 |
+
<edge from-layer="36" from-port="8" to-layer="41" to-port="2" />
|
| 682 |
+
<edge from-layer="36" from-port="7" to-layer="41" to-port="1" />
|
| 683 |
+
<edge from-layer="36" from-port="6" to-layer="37" to-port="1" />
|
| 684 |
+
<edge from-layer="36" from-port="7" to-layer="37" to-port="0" />
|
| 685 |
+
<edge from-layer="37" from-port="2" to-layer="39" to-port="0" />
|
| 686 |
+
<edge from-layer="38" from-port="0" to-layer="39" to-port="1" />
|
| 687 |
+
<edge from-layer="39" from-port="2" to-layer="41" to-port="3" />
|
| 688 |
+
<edge from-layer="40" from-port="0" to-layer="41" to-port="4" />
|
| 689 |
+
<edge from-layer="41" from-port="6" to-layer="42" to-port="0" />
|
| 690 |
+
<edge from-layer="41" from-port="5" to-layer="45" to-port="0" />
|
| 691 |
+
<edge from-layer="42" from-port="1" to-layer="43" to-port="0" />
|
| 692 |
+
<edge from-layer="43" from-port="1" to-layer="44" to-port="0" />
|
| 693 |
+
<edge from-layer="45" from-port="1" to-layer="46" to-port="0" />
|
| 694 |
+
</edges>
|
| 695 |
+
<rt_info>
|
| 696 |
+
<add_attention_mask value="True" />
|
| 697 |
+
<add_prefix_space />
|
| 698 |
+
<add_special_tokens value="True" />
|
| 699 |
+
<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 %} " />
|
| 700 |
+
<clean_up_tokenization_spaces />
|
| 701 |
+
<detokenizer_input_type value="i64" />
|
| 702 |
+
<eos_token_id value="151645" />
|
| 703 |
+
<handle_special_tokens_with_re />
|
| 704 |
+
<max_length />
|
| 705 |
+
<number_of_inputs value="1" />
|
| 706 |
+
<openvino_tokenizers_version value="2025.2.0.1-567-7885335c24b" />
|
| 707 |
+
<openvino_version value="2025.2.0-19140-c01cd93e24d-releases/2025/2" />
|
| 708 |
+
<original_post_processor_template value="{"type": "ByteLevel", "add_prefix_space": false, "trim_offsets": false, "use_regex": false}" />
|
| 709 |
+
<original_tokenizer_class value="<class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>" />
|
| 710 |
+
<pad_token_id value="151643" />
|
| 711 |
+
<sentencepiece_version value="0.2.1" />
|
| 712 |
+
<skip_special_tokens value="True" />
|
| 713 |
+
<streaming_detokenizer value="False" />
|
| 714 |
+
<tiktoken_version value="0.9.0" />
|
| 715 |
+
<tokenizer_output_type value="i64" />
|
| 716 |
+
<tokenizers_version value="0.21.4" />
|
| 717 |
+
<transformers_version value="4.51.3" />
|
| 718 |
+
<use_max_padding value="False" />
|
| 719 |
+
<use_sentencepiece_backend value="False" />
|
| 720 |
+
<utf8_replace_mode value="replace" />
|
| 721 |
+
<with_detokenizer value="True" />
|
| 722 |
+
</rt_info>
|
| 723 |
+
</net>
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"eos_token": {
|
| 18 |
+
"content": "<|im_end|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
},
|
| 24 |
+
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": false,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
}
|
| 31 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
|
| 3 |
+
size 11421896
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
"additional_special_tokens": [
|
| 183 |
+
"<|im_start|>",
|
| 184 |
+
"<|im_end|>",
|
| 185 |
+
"<|object_ref_start|>",
|
| 186 |
+
"<|object_ref_end|>",
|
| 187 |
+
"<|box_start|>",
|
| 188 |
+
"<|box_end|>",
|
| 189 |
+
"<|quad_start|>",
|
| 190 |
+
"<|quad_end|>",
|
| 191 |
+
"<|vision_start|>",
|
| 192 |
+
"<|vision_end|>",
|
| 193 |
+
"<|vision_pad|>",
|
| 194 |
+
"<|image_pad|>",
|
| 195 |
+
"<|video_pad|>"
|
| 196 |
+
],
|
| 197 |
+
"bos_token": null,
|
| 198 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
| 199 |
+
"clean_up_tokenization_spaces": false,
|
| 200 |
+
"eos_token": "<|im_end|>",
|
| 201 |
+
"errors": "replace",
|
| 202 |
+
"extra_special_tokens": {},
|
| 203 |
+
"model_max_length": 32768,
|
| 204 |
+
"pad_token": "<|endoftext|>",
|
| 205 |
+
"split_special_tokens": false,
|
| 206 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
+
"unk_token": null
|
| 208 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|