Upload 7 files
Browse files- .gitattributes +1 -0
- DeepSeek-R1-Distill-Llama-8B.bin +3 -0
- DeepSeek-R1-Distill-Llama-8B.onnx +3 -0
- DeepSeek-R1-Distill-Llama-8B.onnx.data +3 -0
- DeepSeek-R1-Distill-Llama-8B.pb.bin +3 -0
- genai_config.json +55 -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 |
+
DeepSeek-R1-Distill-Llama-8B.onnx.data filter=lfs diff=lfs merge=lfs -text
|
DeepSeek-R1-Distill-Llama-8B.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13731a1ca26589272eb1981b2ce60a0a70cc90094d1a911217ec7ac815544c28
|
3 |
+
size 7989784576
|
DeepSeek-R1-Distill-Llama-8B.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:adb34bdb135670e6f46eb4584cac1ccbf580fd019866f027111138ef851bba9d
|
3 |
+
size 249957
|
DeepSeek-R1-Distill-Llama-8B.onnx.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af61e996a1121c406ab12cd9a22d2752a27648148e8b4a04ae83b1dbd1fd6f54
|
3 |
+
size 1084760064
|
DeepSeek-R1-Distill-Llama-8B.pb.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c7f6f8004f62b3e3e79ff225339567deb497eaa853740f8b9cf3841f7d6edbd
|
3 |
+
size 17710
|
genai_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model": {
|
3 |
+
"bos_token_id": 128000,
|
4 |
+
"context_length": 131072,
|
5 |
+
"decoder": {
|
6 |
+
"session_options": {
|
7 |
+
"log_id": "onnxruntime-genai",
|
8 |
+
"custom_ops_library": "<path_to>\\onnx_custom_ops.dll",
|
9 |
+
"external_data_file": "DeepSeek-R1-Distill-Llama-8B.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": "DeepSeek-R1-Distill-Llama-8B.onnx",
|
16 |
+
"head_size": 128,
|
17 |
+
"hidden_size": 4096,
|
18 |
+
"inputs": {
|
19 |
+
"input_ids": "input_ids",
|
20 |
+
"attention_mask": "attention_mask",
|
21 |
+
"position_ids": "position_ids",
|
22 |
+
"past_key_names": "past_key_values.%d.key",
|
23 |
+
"past_value_names": "past_key_values.%d.value"
|
24 |
+
},
|
25 |
+
"outputs": {
|
26 |
+
"logits": "logits",
|
27 |
+
"present_key_names": "present.%d.key",
|
28 |
+
"present_value_names": "present.%d.value"
|
29 |
+
},
|
30 |
+
"num_attention_heads": 32,
|
31 |
+
"num_hidden_layers": 32,
|
32 |
+
"num_key_value_heads": 8
|
33 |
+
},
|
34 |
+
"eos_token_id": 128001,
|
35 |
+
"pad_token_id": 128001,
|
36 |
+
"type": "llama",
|
37 |
+
"vocab_size": 128256
|
38 |
+
},
|
39 |
+
"search": {
|
40 |
+
"diversity_penalty": 0.0,
|
41 |
+
"do_sample": true,
|
42 |
+
"early_stopping": true,
|
43 |
+
"length_penalty": 1.0,
|
44 |
+
"max_length": 131072,
|
45 |
+
"min_length": 0,
|
46 |
+
"no_repeat_ngram_size": 0,
|
47 |
+
"num_beams": 1,
|
48 |
+
"num_return_sequences": 1,
|
49 |
+
"past_present_share_buffer": true,
|
50 |
+
"repetition_penalty": 1.0,
|
51 |
+
"temperature": 0.6,
|
52 |
+
"top_k": 1,
|
53 |
+
"top_p": 0.95
|
54 |
+
}
|
55 |
+
}
|
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 |
+
}
|