Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- chat_template.jinja +54 -0
- config.json +40 -10
- generation_config.json +11 -0
- model.safetensors +2 -2
- quant_log.csv +169 -169
- quantize_config.json +11 -7
- special_tokens_map.json +1 -1
- tokenizer.json +0 -0
- tokenizer_config.json +4 -4
.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
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\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>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\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" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
config.json
CHANGED
|
@@ -1,39 +1,70 @@
|
|
| 1 |
{
|
| 2 |
-
"_attn_implementation_autoset": true,
|
| 3 |
-
"_name_or_path": "/monster/data/model/Qwen2.5-0.5B-Instruct",
|
| 4 |
"architectures": [
|
| 5 |
"Qwen2ForCausalLM"
|
| 6 |
],
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"bos_token_id": 151643,
|
|
|
|
| 9 |
"eos_token_id": 151645,
|
| 10 |
"hidden_act": "silu",
|
| 11 |
"hidden_size": 896,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"intermediate_size": 4864,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"max_position_embeddings": 32768,
|
| 15 |
"max_window_layers": 21,
|
| 16 |
"model_type": "qwen2",
|
| 17 |
"num_attention_heads": 14,
|
| 18 |
"num_hidden_layers": 24,
|
| 19 |
"num_key_value_heads": 2,
|
|
|
|
| 20 |
"quantization_config": {
|
| 21 |
"bits": 4,
|
| 22 |
"checkpoint_format": "gptq",
|
| 23 |
-
"desc_act":
|
| 24 |
-
"dynamic": null,
|
| 25 |
"group_size": 128,
|
| 26 |
"lm_head": false,
|
| 27 |
"meta": {
|
| 28 |
-
"
|
| 29 |
-
"
|
|
|
|
|
|
|
| 30 |
"quantizer": [
|
| 31 |
-
"gptqmodel:
|
| 32 |
],
|
| 33 |
"static_groups": false,
|
| 34 |
"true_sequential": true,
|
| 35 |
-
"uri": "https://github.com/modelcloud/gptqmodel"
|
|
|
|
|
|
|
| 36 |
},
|
|
|
|
|
|
|
| 37 |
"quant_method": "gptq",
|
| 38 |
"sym": true
|
| 39 |
},
|
|
@@ -42,8 +73,7 @@
|
|
| 42 |
"rope_theta": 1000000.0,
|
| 43 |
"sliding_window": null,
|
| 44 |
"tie_word_embeddings": true,
|
| 45 |
-
"
|
| 46 |
-
"transformers_version": "4.49.0.dev0",
|
| 47 |
"use_cache": true,
|
| 48 |
"use_sliding_window": false,
|
| 49 |
"vocab_size": 151936
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"Qwen2ForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_dropout": 0.0,
|
| 6 |
"bos_token_id": 151643,
|
| 7 |
+
"dtype": "bfloat16",
|
| 8 |
"eos_token_id": 151645,
|
| 9 |
"hidden_act": "silu",
|
| 10 |
"hidden_size": 896,
|
| 11 |
"initializer_range": 0.02,
|
| 12 |
"intermediate_size": 4864,
|
| 13 |
+
"layer_types": [
|
| 14 |
+
"full_attention",
|
| 15 |
+
"full_attention",
|
| 16 |
+
"full_attention",
|
| 17 |
+
"full_attention",
|
| 18 |
+
"full_attention",
|
| 19 |
+
"full_attention",
|
| 20 |
+
"full_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention"
|
| 38 |
+
],
|
| 39 |
"max_position_embeddings": 32768,
|
| 40 |
"max_window_layers": 21,
|
| 41 |
"model_type": "qwen2",
|
| 42 |
"num_attention_heads": 14,
|
| 43 |
"num_hidden_layers": 24,
|
| 44 |
"num_key_value_heads": 2,
|
| 45 |
+
"pad_token_id": 151662,
|
| 46 |
"quantization_config": {
|
| 47 |
"bits": 4,
|
| 48 |
"checkpoint_format": "gptq",
|
| 49 |
+
"desc_act": false,
|
|
|
|
| 50 |
"group_size": 128,
|
| 51 |
"lm_head": false,
|
| 52 |
"meta": {
|
| 53 |
+
"act_group_aware": true,
|
| 54 |
+
"damp_auto_increment": 0.01,
|
| 55 |
+
"damp_percent": 0.05,
|
| 56 |
+
"mse": 0.0,
|
| 57 |
"quantizer": [
|
| 58 |
+
"gptqmodel:5.0.0-dev0"
|
| 59 |
],
|
| 60 |
"static_groups": false,
|
| 61 |
"true_sequential": true,
|
| 62 |
+
"uri": "https://github.com/modelcloud/gptqmodel",
|
| 63 |
+
"v2": false,
|
| 64 |
+
"v2_alpha": 0.25
|
| 65 |
},
|
| 66 |
+
"pack_dtype": "int32",
|
| 67 |
+
"pack_impl": "cpu",
|
| 68 |
"quant_method": "gptq",
|
| 69 |
"sym": true
|
| 70 |
},
|
|
|
|
| 73 |
"rope_theta": 1000000.0,
|
| 74 |
"sliding_window": null,
|
| 75 |
"tie_word_embeddings": true,
|
| 76 |
+
"transformers_version": "4.57.1",
|
|
|
|
| 77 |
"use_cache": true,
|
| 78 |
"use_sliding_window": false,
|
| 79 |
"vocab_size": 151936
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"repetition_penalty": 1.1,
|
| 9 |
+
"top_k": 20,
|
| 10 |
+
"transformers_version": "4.57.1"
|
| 11 |
+
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05d1802c2690026b6326f91a35e2d7740c44b526c602eb84d651c787ee358218
|
| 3 |
+
size 459384459
|
quant_log.csv
CHANGED
|
@@ -1,169 +1,169 @@
|
|
| 1 |
-
layer,module,loss,damp,time
|
| 2 |
-
0,self_attn.k_proj,0.
|
| 3 |
-
0,self_attn.v_proj,0.
|
| 4 |
-
0,self_attn.q_proj,0.
|
| 5 |
-
0,self_attn.o_proj,0.
|
| 6 |
-
0,mlp.up_proj,0.
|
| 7 |
-
0,mlp.gate_proj,0.
|
| 8 |
-
0,mlp.down_proj,0.
|
| 9 |
-
1,self_attn.k_proj,0.
|
| 10 |
-
1,self_attn.v_proj,0.
|
| 11 |
-
1,self_attn.q_proj,0.
|
| 12 |
-
1,self_attn.o_proj,0.
|
| 13 |
-
1,mlp.up_proj,0.
|
| 14 |
-
1,mlp.gate_proj,
|
| 15 |
-
1,mlp.down_proj,0.
|
| 16 |
-
2,self_attn.k_proj,0.
|
| 17 |
-
2,self_attn.v_proj,0.
|
| 18 |
-
2,self_attn.q_proj,0.
|
| 19 |
-
2,self_attn.o_proj,0.
|
| 20 |
-
2,mlp.
|
| 21 |
-
2,mlp.
|
| 22 |
-
2,mlp.down_proj,0.
|
| 23 |
-
3,self_attn.k_proj,0.
|
| 24 |
-
3,self_attn.v_proj,0.
|
| 25 |
-
3,self_attn.q_proj,0.
|
| 26 |
-
3,self_attn.o_proj,0.
|
| 27 |
-
3,mlp.
|
| 28 |
-
3,mlp.
|
| 29 |
-
3,mlp.down_proj,0.
|
| 30 |
-
4,self_attn.
|
| 31 |
-
4,self_attn.
|
| 32 |
-
4,self_attn.
|
| 33 |
-
4,self_attn.o_proj,0.
|
| 34 |
-
4,mlp.up_proj,
|
| 35 |
-
4,mlp.gate_proj,
|
| 36 |
-
4,mlp.down_proj,0.
|
| 37 |
-
5,self_attn.k_proj,0.
|
| 38 |
-
5,self_attn.v_proj,0.
|
| 39 |
-
5,self_attn.q_proj,0.
|
| 40 |
-
5,self_attn.o_proj,0.
|
| 41 |
-
5,mlp.
|
| 42 |
-
5,mlp.
|
| 43 |
-
5,mlp.down_proj,0.
|
| 44 |
-
6,self_attn.k_proj,0.
|
| 45 |
-
6,self_attn.
|
| 46 |
-
6,self_attn.
|
| 47 |
-
6,self_attn.o_proj,0.
|
| 48 |
-
6,mlp.up_proj,
|
| 49 |
-
6,mlp.gate_proj,
|
| 50 |
-
6,mlp.down_proj,0.
|
| 51 |
-
7,self_attn.k_proj,0.
|
| 52 |
-
7,self_attn.
|
| 53 |
-
7,self_attn.
|
| 54 |
-
7,self_attn.o_proj,0.
|
| 55 |
-
7,mlp.up_proj,
|
| 56 |
-
7,mlp.gate_proj,
|
| 57 |
-
7,mlp.down_proj,0.
|
| 58 |
-
8,self_attn.k_proj,0.
|
| 59 |
-
8,self_attn.v_proj,0.
|
| 60 |
-
8,self_attn.q_proj,0.
|
| 61 |
-
8,self_attn.o_proj,0.
|
| 62 |
-
8,mlp.up_proj,
|
| 63 |
-
8,mlp.gate_proj,
|
| 64 |
-
8,mlp.down_proj,0.
|
| 65 |
-
9,self_attn.k_proj,0.
|
| 66 |
-
9,self_attn.
|
| 67 |
-
9,self_attn.
|
| 68 |
-
9,self_attn.o_proj,0.
|
| 69 |
-
9,mlp.
|
| 70 |
-
9,mlp.
|
| 71 |
-
9,mlp.down_proj,0.
|
| 72 |
-
10,self_attn.k_proj,0.
|
| 73 |
-
10,self_attn.
|
| 74 |
-
10,self_attn.
|
| 75 |
-
10,self_attn.o_proj,0.
|
| 76 |
-
10,mlp.
|
| 77 |
-
10,mlp.
|
| 78 |
-
10,mlp.down_proj,0.
|
| 79 |
-
11,self_attn.
|
| 80 |
-
11,self_attn.v_proj,0.
|
| 81 |
-
11,self_attn.
|
| 82 |
-
11,self_attn.o_proj,0.
|
| 83 |
-
11,mlp.
|
| 84 |
-
11,mlp.
|
| 85 |
-
11,mlp.down_proj,0.
|
| 86 |
-
12,self_attn.
|
| 87 |
-
12,self_attn.v_proj,0.
|
| 88 |
-
12,self_attn.
|
| 89 |
-
12,self_attn.o_proj,0.
|
| 90 |
-
12,mlp.
|
| 91 |
-
12,mlp.
|
| 92 |
-
12,mlp.down_proj,0.
|
| 93 |
-
13,self_attn.
|
| 94 |
-
13,self_attn.v_proj,0.
|
| 95 |
-
13,self_attn.
|
| 96 |
-
13,self_attn.o_proj,0.
|
| 97 |
-
13,mlp.
|
| 98 |
-
13,mlp.
|
| 99 |
-
13,mlp.down_proj,0.
|
| 100 |
-
14,self_attn.k_proj,0.
|
| 101 |
-
14,self_attn.
|
| 102 |
-
14,self_attn.
|
| 103 |
-
14,self_attn.o_proj,0.
|
| 104 |
-
14,mlp.up_proj,
|
| 105 |
-
14,mlp.gate_proj,
|
| 106 |
-
14,mlp.down_proj,0.
|
| 107 |
-
15,self_attn.k_proj,0.
|
| 108 |
-
15,self_attn.v_proj,0.
|
| 109 |
-
15,self_attn.q_proj,0.
|
| 110 |
-
15,self_attn.o_proj,0.
|
| 111 |
-
15,mlp.
|
| 112 |
-
15,mlp.
|
| 113 |
-
15,mlp.down_proj,0.
|
| 114 |
-
16,self_attn.k_proj,0.
|
| 115 |
-
16,self_attn.v_proj,0.
|
| 116 |
-
16,self_attn.q_proj,
|
| 117 |
-
16,self_attn.o_proj,0.
|
| 118 |
-
16,mlp.
|
| 119 |
-
16,mlp.
|
| 120 |
-
16,mlp.down_proj,0.
|
| 121 |
-
17,self_attn.k_proj,0.
|
| 122 |
-
17,self_attn.
|
| 123 |
-
17,self_attn.
|
| 124 |
-
17,self_attn.o_proj,0.
|
| 125 |
-
17,mlp.up_proj,
|
| 126 |
-
17,mlp.gate_proj,
|
| 127 |
-
17,mlp.down_proj,0.
|
| 128 |
-
18,self_attn.
|
| 129 |
-
18,self_attn.v_proj,0.
|
| 130 |
-
18,self_attn.
|
| 131 |
-
18,self_attn.o_proj,0.
|
| 132 |
-
18,mlp.up_proj,
|
| 133 |
-
18,mlp.gate_proj,
|
| 134 |
-
18,mlp.down_proj,0.
|
| 135 |
-
19,self_attn.k_proj,0.
|
| 136 |
-
19,self_attn.
|
| 137 |
-
19,self_attn.
|
| 138 |
-
19,self_attn.o_proj,0.
|
| 139 |
-
19,mlp.up_proj,
|
| 140 |
-
19,mlp.gate_proj,
|
| 141 |
-
19,mlp.down_proj,0.
|
| 142 |
-
20,self_attn.k_proj,0.
|
| 143 |
-
20,self_attn.
|
| 144 |
-
20,self_attn.
|
| 145 |
-
20,self_attn.o_proj,0.
|
| 146 |
-
20,mlp.up_proj,
|
| 147 |
-
20,mlp.gate_proj,
|
| 148 |
-
20,mlp.down_proj,0.
|
| 149 |
-
21,self_attn.k_proj,0.
|
| 150 |
-
21,self_attn.
|
| 151 |
-
21,self_attn.
|
| 152 |
-
21,self_attn.o_proj,0.
|
| 153 |
-
21,mlp.up_proj,
|
| 154 |
-
21,mlp.gate_proj,
|
| 155 |
-
21,mlp.down_proj,
|
| 156 |
-
22,self_attn.k_proj,0.
|
| 157 |
-
22,self_attn.v_proj,0.
|
| 158 |
-
22,self_attn.q_proj,
|
| 159 |
-
22,self_attn.o_proj,0.
|
| 160 |
-
22,mlp.up_proj,
|
| 161 |
-
22,mlp.gate_proj,
|
| 162 |
-
22,mlp.down_proj,0.
|
| 163 |
-
23,self_attn.k_proj,0.
|
| 164 |
-
23,self_attn.v_proj,0.
|
| 165 |
-
23,self_attn.q_proj,
|
| 166 |
-
23,self_attn.o_proj,0.
|
| 167 |
-
23,mlp.
|
| 168 |
-
23,mlp.
|
| 169 |
-
23,mlp.down_proj,0.
|
|
|
|
| 1 |
+
layer,module,loss,samples,damp,time
|
| 2 |
+
0,self_attn.k_proj,0.0000001846,0.05000,0.421
|
| 3 |
+
0,self_attn.v_proj,0.0000000044,0.05000,0.623
|
| 4 |
+
0,self_attn.q_proj,0.0000012105,0.05000,0.651
|
| 5 |
+
0,self_attn.o_proj,0.0000000008,0.05000,0.272
|
| 6 |
+
0,mlp.up_proj,0.0000175088,0.05000,0.287
|
| 7 |
+
0,mlp.gate_proj,0.0000274922,0.05000,0.304
|
| 8 |
+
0,mlp.down_proj,0.0000003773,0.05000,1.938
|
| 9 |
+
1,self_attn.k_proj,0.0000020258,0.05000,0.378
|
| 10 |
+
1,self_attn.v_proj,0.0000002284,0.05000,0.662
|
| 11 |
+
1,self_attn.q_proj,0.0000073043,0.05000,0.671
|
| 12 |
+
1,self_attn.o_proj,0.0000001099,0.05000,0.616
|
| 13 |
+
1,mlp.up_proj,0.0000257946,0.05000,0.674
|
| 14 |
+
1,mlp.gate_proj,0.0000495168,0.05000,0.693
|
| 15 |
+
1,mlp.down_proj,0.0000003927,0.05000,1.795
|
| 16 |
+
2,self_attn.k_proj,0.0000044331,0.05000,0.442
|
| 17 |
+
2,self_attn.v_proj,0.0000006006,0.05000,0.808
|
| 18 |
+
2,self_attn.q_proj,0.0000161915,0.05000,0.832
|
| 19 |
+
2,self_attn.o_proj,0.0000001450,0.05000,0.437
|
| 20 |
+
2,mlp.gate_proj,0.0000690778,0.05000,0.259
|
| 21 |
+
2,mlp.up_proj,0.0000374052,0.05000,0.706
|
| 22 |
+
2,mlp.down_proj,0.0000096427,0.05000,1.414
|
| 23 |
+
3,self_attn.k_proj,0.0000051747,0.05000,0.492
|
| 24 |
+
3,self_attn.v_proj,0.0000012535,0.05000,0.897
|
| 25 |
+
3,self_attn.q_proj,0.0000214496,0.05000,0.907
|
| 26 |
+
3,self_attn.o_proj,0.0000002033,0.05000,0.422
|
| 27 |
+
3,mlp.gate_proj,0.0001435908,0.05000,0.493
|
| 28 |
+
3,mlp.up_proj,0.0000814998,0.05000,0.537
|
| 29 |
+
3,mlp.down_proj,0.0000165190,0.05000,1.751
|
| 30 |
+
4,self_attn.v_proj,0.0000015579,0.05000,0.470
|
| 31 |
+
4,self_attn.q_proj,0.0000169404,0.05000,0.474
|
| 32 |
+
4,self_attn.k_proj,0.0000033608,0.05000,0.710
|
| 33 |
+
4,self_attn.o_proj,0.0000004269,0.05000,0.545
|
| 34 |
+
4,mlp.up_proj,0.0000605056,0.05000,0.257
|
| 35 |
+
4,mlp.gate_proj,0.0000924927,0.05000,0.268
|
| 36 |
+
4,mlp.down_proj,0.0000012452,0.05000,2.330
|
| 37 |
+
5,self_attn.k_proj,0.0000042852,0.05000,0.248
|
| 38 |
+
5,self_attn.v_proj,0.0000020662,0.05000,0.388
|
| 39 |
+
5,self_attn.q_proj,0.0000212661,0.05000,0.393
|
| 40 |
+
5,self_attn.o_proj,0.0000003989,0.05000,0.239
|
| 41 |
+
5,mlp.gate_proj,0.0001488598,0.05000,0.466
|
| 42 |
+
5,mlp.up_proj,0.0000753015,0.05000,0.479
|
| 43 |
+
5,mlp.down_proj,0.0000011859,0.05000,2.195
|
| 44 |
+
6,self_attn.k_proj,0.0000039774,0.05000,0.668
|
| 45 |
+
6,self_attn.q_proj,0.0000173516,0.05000,1.329
|
| 46 |
+
6,self_attn.v_proj,0.0000011332,0.05000,1.336
|
| 47 |
+
6,self_attn.o_proj,0.0000002758,0.05000,0.556
|
| 48 |
+
6,mlp.up_proj,0.0000618804,0.05000,0.244
|
| 49 |
+
6,mlp.gate_proj,0.0000890550,0.05000,0.289
|
| 50 |
+
6,mlp.down_proj,0.0000013619,0.05000,3.632
|
| 51 |
+
7,self_attn.k_proj,0.0000060954,0.05000,0.255
|
| 52 |
+
7,self_attn.q_proj,0.0000250038,0.05000,1.341
|
| 53 |
+
7,self_attn.v_proj,0.0000019706,0.05000,1.345
|
| 54 |
+
7,self_attn.o_proj,0.0000006489,0.05000,0.269
|
| 55 |
+
7,mlp.up_proj,0.0000707421,0.05000,0.258
|
| 56 |
+
7,mlp.gate_proj,0.0000907406,0.05000,0.683
|
| 57 |
+
7,mlp.down_proj,0.0000017962,0.05000,3.559
|
| 58 |
+
8,self_attn.k_proj,0.0000045065,0.05000,0.372
|
| 59 |
+
8,self_attn.v_proj,0.0000016776,0.05000,0.670
|
| 60 |
+
8,self_attn.q_proj,0.0000237909,0.05000,0.693
|
| 61 |
+
8,self_attn.o_proj,0.0000007376,0.05000,0.356
|
| 62 |
+
8,mlp.up_proj,0.0000616151,0.05000,0.469
|
| 63 |
+
8,mlp.gate_proj,0.0000799935,0.05000,0.557
|
| 64 |
+
8,mlp.down_proj,0.0000011966,0.05000,3.384
|
| 65 |
+
9,self_attn.k_proj,0.0000126081,0.05000,0.343
|
| 66 |
+
9,self_attn.q_proj,0.0000496791,0.05000,0.533
|
| 67 |
+
9,self_attn.v_proj,0.0000033377,0.05000,0.570
|
| 68 |
+
9,self_attn.o_proj,0.0000005403,0.05000,0.411
|
| 69 |
+
9,mlp.gate_proj,0.0000756505,0.05000,0.502
|
| 70 |
+
9,mlp.up_proj,0.0000649747,0.05000,0.518
|
| 71 |
+
9,mlp.down_proj,0.0000014291,0.05000,1.314
|
| 72 |
+
10,self_attn.k_proj,0.0000040391,0.05000,0.408
|
| 73 |
+
10,self_attn.q_proj,0.0000211797,0.05000,0.704
|
| 74 |
+
10,self_attn.v_proj,0.0000029188,0.05000,0.713
|
| 75 |
+
10,self_attn.o_proj,0.0000008407,0.05000,0.387
|
| 76 |
+
10,mlp.gate_proj,0.0000737496,0.05000,0.456
|
| 77 |
+
10,mlp.up_proj,0.0000574715,0.05000,0.465
|
| 78 |
+
10,mlp.down_proj,0.0000011740,0.05000,3.047
|
| 79 |
+
11,self_attn.q_proj,0.0000515761,0.05000,0.552
|
| 80 |
+
11,self_attn.v_proj,0.0000037881,0.05000,0.567
|
| 81 |
+
11,self_attn.k_proj,0.0000141380,0.05000,0.632
|
| 82 |
+
11,self_attn.o_proj,0.0000005721,0.05000,0.704
|
| 83 |
+
11,mlp.gate_proj,0.0000717162,0.05000,0.263
|
| 84 |
+
11,mlp.up_proj,0.0000662663,0.05000,0.535
|
| 85 |
+
11,mlp.down_proj,0.0000017422,0.05000,2.340
|
| 86 |
+
12,self_attn.q_proj,0.0000219778,0.05000,0.404
|
| 87 |
+
12,self_attn.v_proj,0.0000025610,0.05000,0.417
|
| 88 |
+
12,self_attn.k_proj,0.0000039857,0.05000,0.663
|
| 89 |
+
12,self_attn.o_proj,0.0000009195,0.05000,0.678
|
| 90 |
+
12,mlp.gate_proj,0.0000669683,0.05000,0.263
|
| 91 |
+
12,mlp.up_proj,0.0000601216,0.05000,0.676
|
| 92 |
+
12,mlp.down_proj,0.0000013678,0.05000,2.078
|
| 93 |
+
13,self_attn.q_proj,0.0000371196,0.05000,0.511
|
| 94 |
+
13,self_attn.v_proj,0.0000030710,0.05000,0.517
|
| 95 |
+
13,self_attn.k_proj,0.0000074217,0.05000,0.612
|
| 96 |
+
13,self_attn.o_proj,0.0000007384,0.05000,0.669
|
| 97 |
+
13,mlp.gate_proj,0.0000725489,0.05000,0.232
|
| 98 |
+
13,mlp.up_proj,0.0000715233,0.05000,0.550
|
| 99 |
+
13,mlp.down_proj,0.0000019356,0.05000,3.418
|
| 100 |
+
14,self_attn.k_proj,0.0000051945,0.05000,0.446
|
| 101 |
+
14,self_attn.q_proj,0.0000330241,0.05000,0.719
|
| 102 |
+
14,self_attn.v_proj,0.0000047070,0.05000,0.733
|
| 103 |
+
14,self_attn.o_proj,0.0000018053,0.05000,0.223
|
| 104 |
+
14,mlp.up_proj,0.0000730560,0.05000,0.249
|
| 105 |
+
14,mlp.gate_proj,0.0000833288,0.05000,0.251
|
| 106 |
+
14,mlp.down_proj,0.0000024172,0.05000,1.230
|
| 107 |
+
15,self_attn.k_proj,0.0000056382,0.05000,0.430
|
| 108 |
+
15,self_attn.v_proj,0.0000039362,0.05000,0.856
|
| 109 |
+
15,self_attn.q_proj,0.0000289588,0.05000,0.860
|
| 110 |
+
15,self_attn.o_proj,0.0000010586,0.05000,0.353
|
| 111 |
+
15,mlp.gate_proj,0.0000967614,0.05000,0.617
|
| 112 |
+
15,mlp.up_proj,0.0000926957,0.05000,0.702
|
| 113 |
+
15,mlp.down_proj,0.0000031419,0.05000,2.435
|
| 114 |
+
16,self_attn.k_proj,0.0000109810,0.05000,0.443
|
| 115 |
+
16,self_attn.v_proj,0.0000096741,0.05000,0.734
|
| 116 |
+
16,self_attn.q_proj,0.0000628785,0.05000,0.748
|
| 117 |
+
16,self_attn.o_proj,0.0000011271,0.05000,0.389
|
| 118 |
+
16,mlp.gate_proj,0.0001423836,0.05000,0.274
|
| 119 |
+
16,mlp.up_proj,0.0001109843,0.05000,0.730
|
| 120 |
+
16,mlp.down_proj,0.0000060371,0.05000,1.237
|
| 121 |
+
17,self_attn.k_proj,0.0000060039,0.05000,0.309
|
| 122 |
+
17,self_attn.q_proj,0.0000400760,0.05000,0.681
|
| 123 |
+
17,self_attn.v_proj,0.0000059069,0.05000,0.682
|
| 124 |
+
17,self_attn.o_proj,0.0000008255,0.05000,0.386
|
| 125 |
+
17,mlp.up_proj,0.0001233144,0.05000,0.384
|
| 126 |
+
17,mlp.gate_proj,0.0001934214,0.05000,0.412
|
| 127 |
+
17,mlp.down_proj,0.0000050482,0.05000,2.300
|
| 128 |
+
18,self_attn.q_proj,0.0000411873,0.05000,0.357
|
| 129 |
+
18,self_attn.v_proj,0.0000059423,0.05000,0.369
|
| 130 |
+
18,self_attn.k_proj,0.0000077203,0.05000,0.678
|
| 131 |
+
18,self_attn.o_proj,0.0000010869,0.05000,0.599
|
| 132 |
+
18,mlp.up_proj,0.0001260548,0.05000,0.258
|
| 133 |
+
18,mlp.gate_proj,0.0001582911,0.05000,0.264
|
| 134 |
+
18,mlp.down_proj,0.0000059834,0.05000,2.446
|
| 135 |
+
19,self_attn.k_proj,0.0000063490,0.05000,0.272
|
| 136 |
+
19,self_attn.q_proj,0.0000380589,0.05000,0.666
|
| 137 |
+
19,self_attn.v_proj,0.0000057355,0.05000,0.670
|
| 138 |
+
19,self_attn.o_proj,0.0000013602,0.05000,0.247
|
| 139 |
+
19,mlp.up_proj,0.0001832222,0.05000,0.367
|
| 140 |
+
19,mlp.gate_proj,0.0002190037,0.05000,0.372
|
| 141 |
+
19,mlp.down_proj,0.0000113082,0.05000,2.235
|
| 142 |
+
20,self_attn.k_proj,0.0000078660,0.05000,0.290
|
| 143 |
+
20,self_attn.q_proj,0.0000533177,0.05000,0.443
|
| 144 |
+
20,self_attn.v_proj,0.0000177706,0.05000,0.459
|
| 145 |
+
20,self_attn.o_proj,0.0000024812,0.05000,0.569
|
| 146 |
+
20,mlp.up_proj,0.0002066750,0.05000,0.240
|
| 147 |
+
20,mlp.gate_proj,0.0002273082,0.05000,0.717
|
| 148 |
+
20,mlp.down_proj,0.0000155725,0.05000,2.551
|
| 149 |
+
21,self_attn.k_proj,0.0000082325,0.05000,0.232
|
| 150 |
+
21,self_attn.q_proj,0.0000596139,0.05000,1.457
|
| 151 |
+
21,self_attn.v_proj,0.0000242640,0.05000,1.457
|
| 152 |
+
21,self_attn.o_proj,0.0000054829,0.05000,0.257
|
| 153 |
+
21,mlp.up_proj,0.0002139384,0.05000,0.277
|
| 154 |
+
21,mlp.gate_proj,0.0002226604,0.05000,0.695
|
| 155 |
+
21,mlp.down_proj,0.0000279960,0.05000,2.661
|
| 156 |
+
22,self_attn.k_proj,0.0000075570,0.05000,0.458
|
| 157 |
+
22,self_attn.v_proj,0.0000210302,0.05000,0.811
|
| 158 |
+
22,self_attn.q_proj,0.0000556213,0.05000,0.815
|
| 159 |
+
22,self_attn.o_proj,0.0000020455,0.05000,0.256
|
| 160 |
+
22,mlp.up_proj,0.0001812818,0.05000,0.505
|
| 161 |
+
22,mlp.gate_proj,0.0001728906,0.05000,0.536
|
| 162 |
+
22,mlp.down_proj,0.0000204518,0.05000,1.919
|
| 163 |
+
23,self_attn.k_proj,0.0000085684,0.05000,0.263
|
| 164 |
+
23,self_attn.v_proj,0.0000168603,0.05000,0.415
|
| 165 |
+
23,self_attn.q_proj,0.0000655303,0.05000,0.421
|
| 166 |
+
23,self_attn.o_proj,0.0000053465,0.05000,0.242
|
| 167 |
+
23,mlp.gate_proj,0.0001968066,0.05000,0.261
|
| 168 |
+
23,mlp.up_proj,0.0001895685,0.05000,0.267
|
| 169 |
+
23,mlp.down_proj,0.0000390435,0.05000,1.745
|
quantize_config.json
CHANGED
|
@@ -1,21 +1,25 @@
|
|
| 1 |
{
|
| 2 |
"bits": 4,
|
| 3 |
-
"dynamic": null,
|
| 4 |
"group_size": 128,
|
| 5 |
-
"desc_act":
|
| 6 |
"sym": true,
|
| 7 |
"lm_head": false,
|
| 8 |
"quant_method": "gptq",
|
| 9 |
"checkpoint_format": "gptq",
|
|
|
|
| 10 |
"meta": {
|
| 11 |
"quantizer": [
|
| 12 |
-
"gptqmodel:
|
| 13 |
],
|
| 14 |
"uri": "https://github.com/modelcloud/gptqmodel",
|
| 15 |
-
"damp_percent": 0.
|
| 16 |
-
"damp_auto_increment": 0.
|
| 17 |
"static_groups": false,
|
| 18 |
"true_sequential": true,
|
| 19 |
-
"mse":
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"bits": 4,
|
|
|
|
| 3 |
"group_size": 128,
|
| 4 |
+
"desc_act": false,
|
| 5 |
"sym": true,
|
| 6 |
"lm_head": false,
|
| 7 |
"quant_method": "gptq",
|
| 8 |
"checkpoint_format": "gptq",
|
| 9 |
+
"pack_dtype": "int32",
|
| 10 |
"meta": {
|
| 11 |
"quantizer": [
|
| 12 |
+
"gptqmodel:5.0.0-dev0"
|
| 13 |
],
|
| 14 |
"uri": "https://github.com/modelcloud/gptqmodel",
|
| 15 |
+
"damp_percent": 0.05,
|
| 16 |
+
"damp_auto_increment": 0.01,
|
| 17 |
"static_groups": false,
|
| 18 |
"true_sequential": true,
|
| 19 |
+
"mse": 0.0,
|
| 20 |
+
"v2": false,
|
| 21 |
+
"v2_alpha": 0.25,
|
| 22 |
+
"act_group_aware": true
|
| 23 |
+
},
|
| 24 |
+
"pack_impl": "cpu"
|
| 25 |
}
|
special_tokens_map.json
CHANGED
|
@@ -21,5 +21,5 @@
|
|
| 21 |
"rstrip": false,
|
| 22 |
"single_word": false
|
| 23 |
},
|
| 24 |
-
"pad_token": "
|
| 25 |
}
|
|
|
|
| 21 |
"rstrip": false,
|
| 22 |
"single_word": false
|
| 23 |
},
|
| 24 |
+
"pad_token": "<|fim_pad|>"
|
| 25 |
}
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -160,7 +160,7 @@
|
|
| 160 |
"normalized": false,
|
| 161 |
"rstrip": false,
|
| 162 |
"single_word": false,
|
| 163 |
-
"special":
|
| 164 |
},
|
| 165 |
"151663": {
|
| 166 |
"content": "<|repo_name|>",
|
|
@@ -195,13 +195,13 @@
|
|
| 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 |
"model_max_length": 131072,
|
| 203 |
-
"pad_token": "<|
|
| 204 |
"split_special_tokens": false,
|
| 205 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 206 |
"unk_token": null
|
| 207 |
-
}
|
|
|
|
| 160 |
"normalized": false,
|
| 161 |
"rstrip": false,
|
| 162 |
"single_word": false,
|
| 163 |
+
"special": true
|
| 164 |
},
|
| 165 |
"151663": {
|
| 166 |
"content": "<|repo_name|>",
|
|
|
|
| 195 |
"<|video_pad|>"
|
| 196 |
],
|
| 197 |
"bos_token": null,
|
|
|
|
| 198 |
"clean_up_tokenization_spaces": false,
|
| 199 |
"eos_token": "<|im_end|>",
|
| 200 |
"errors": "replace",
|
| 201 |
+
"extra_special_tokens": {},
|
| 202 |
"model_max_length": 131072,
|
| 203 |
+
"pad_token": "<|fim_pad|>",
|
| 204 |
"split_special_tokens": false,
|
| 205 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 206 |
"unk_token": null
|
| 207 |
+
}
|