Upload 7 files
Browse files- .gitattributes +1 -0
- Qwen2.5-Math-1.5B.bin +3 -0
- Qwen2.5-Math-1.5B.onnx +3 -0
- Qwen2.5-Math-1.5B.onnx.data +3 -0
- Qwen2.5-Math-1.5B.pb.bin +3 -0
- genai_config.json +54 -0
- tokenizer.json +0 -0
- tokenizer_config.json +35 -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 |
+
Qwen2.5-Math-1.5B.onnx.data filter=lfs diff=lfs merge=lfs -text
|
Qwen2.5-Math-1.5B.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8562f9950a94ea40c31e5faaaef8f4c9bffb3c5247b3316043b6eb0c6dcbc907
|
| 3 |
+
size 1847354112
|
Qwen2.5-Math-1.5B.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3b58a606b483757f11d6836128d1ed693a0c05302548a6558dc8054c3d61659
|
| 3 |
+
size 227006
|
Qwen2.5-Math-1.5B.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0820524e882efa644b6cc90a9e35169588f599a8a5d745de96c3361190ec957f
|
| 3 |
+
size 467971072
|
Qwen2.5-Math-1.5B.pb.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f1ed24f9edd89bff1e3191f02ab1d9b535be19062a3d9fdbb4319d2740f9927
|
| 3 |
+
size 15372
|
genai_config.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"bos_token_id": 151646,
|
| 4 |
+
"context_length": 4096,
|
| 5 |
+
"decoder": {
|
| 6 |
+
"session_options": {
|
| 7 |
+
"log_id": "onnxruntime-genai",
|
| 8 |
+
"custom_ops_library": "<path_to>\\onnx_custom_ops.dll",
|
| 9 |
+
"external_data_file": "Qwen2.5-Math-1.5B.pb.bin",
|
| 10 |
+
"custom_allocator": "shared_d3d_xrt",
|
| 11 |
+
"hybrid_opt_free_after_prefill": "0",
|
| 12 |
+
"hybrid_opt_gpu_jit": "0",
|
| 13 |
+
"provider_options": []
|
| 14 |
+
},
|
| 15 |
+
"filename": "Qwen2.5-Math-1.5B.onnx",
|
| 16 |
+
"head_size": 128,
|
| 17 |
+
"hidden_size": 1536,
|
| 18 |
+
"inputs": {
|
| 19 |
+
"input_ids": "input_ids",
|
| 20 |
+
"attention_mask": "attention_mask",
|
| 21 |
+
"past_key_names": "past_key_values.%d.key",
|
| 22 |
+
"past_value_names": "past_key_values.%d.value"
|
| 23 |
+
},
|
| 24 |
+
"outputs": {
|
| 25 |
+
"logits": "logits",
|
| 26 |
+
"present_key_names": "present.%d.key",
|
| 27 |
+
"present_value_names": "present.%d.value"
|
| 28 |
+
},
|
| 29 |
+
"num_attention_heads": 12,
|
| 30 |
+
"num_hidden_layers": 28,
|
| 31 |
+
"num_key_value_heads": 2
|
| 32 |
+
},
|
| 33 |
+
"eos_token_id": 151643,
|
| 34 |
+
"pad_token_id": 151643,
|
| 35 |
+
"type": "qwen2",
|
| 36 |
+
"vocab_size": 151936
|
| 37 |
+
},
|
| 38 |
+
"search": {
|
| 39 |
+
"diversity_penalty": 0.0,
|
| 40 |
+
"do_sample": false,
|
| 41 |
+
"early_stopping": true,
|
| 42 |
+
"length_penalty": 1.0,
|
| 43 |
+
"max_length": 4096,
|
| 44 |
+
"min_length": 0,
|
| 45 |
+
"no_repeat_ngram_size": 0,
|
| 46 |
+
"num_beams": 1,
|
| 47 |
+
"num_return_sequences": 1,
|
| 48 |
+
"past_present_share_buffer": true,
|
| 49 |
+
"repetition_penalty": 1.0,
|
| 50 |
+
"temperature": 1.0,
|
| 51 |
+
"top_k": 1,
|
| 52 |
+
"top_p": 1.0
|
| 53 |
+
}
|
| 54 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": false,
|
| 4 |
+
"bos_token": {
|
| 5 |
+
"__type": "AddedToken",
|
| 6 |
+
"content": "<|begin▁of▁sentence|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": true,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"clean_up_tokenization_spaces": false,
|
| 13 |
+
"eos_token": {
|
| 14 |
+
"__type": "AddedToken",
|
| 15 |
+
"content": "<|end▁of▁sentence|>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": true,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false
|
| 20 |
+
},
|
| 21 |
+
"legacy": true,
|
| 22 |
+
"model_max_length": 16384,
|
| 23 |
+
"pad_token": {
|
| 24 |
+
"__type": "AddedToken",
|
| 25 |
+
"content": "<|end▁of▁sentence|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": true,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
},
|
| 31 |
+
"sp_model_kwargs": {},
|
| 32 |
+
"unk_token": null,
|
| 33 |
+
"tokenizer_class": "LlamaTokenizerFast",
|
| 34 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set ns = namespace(is_first=false, is_tool=false, is_output_first=true, system_prompt='') %}{%- for message in messages %}{%- if message['role'] == 'system' %}{% set ns.system_prompt = message['content'] %}{%- endif %}{%- endfor %}{{bos_token}}{{ns.system_prompt}}{%- for message in messages %}{%- if message['role'] == 'user' %}{%- set ns.is_tool = false -%}{{'<|User|>' + message['content']}}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is none %}{%- set ns.is_tool = false -%}{%- for tool in message['tool_calls']%}{%- if not ns.is_first %}{{'<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{%- set ns.is_first = true -%}{%- else %}{{'\\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}{%- endif %}{%- endfor %}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is not none %}{%- if ns.is_tool %}{{'<|tool▁outputs▁end|>' + message['content'] + '<|end▁of▁sentence|>'}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message['content'] %}{% if '</think>' in content %}{% set content = content.split('</think>')[-1] %}{% endif %}{{'<|Assistant|>' + content + '<|end▁of▁sentence|>'}}{%- endif %}{%- endif %}{%- if message['role'] == 'tool' %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{'<|tool▁outputs▁begin|><|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- set ns.is_output_first = false %}{%- else %}{{'\\n<|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{'<|tool▁outputs▁end|>'}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{'<|Assistant|>'}}{% endif %}"
|
| 35 |
+
}
|