add ckpts and artifacts
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- chat_template.jinja +96 -0
- config.json +219 -0
- configuration_deepseek.py +212 -0
- generation_config.json +5 -0
- hf_quant_config.json +135 -0
- model-00001-of-00119.safetensors +3 -0
- model-00002-of-00119.safetensors +3 -0
- model-00003-of-00119.safetensors +3 -0
- model-00004-of-00119.safetensors +3 -0
- model-00005-of-00119.safetensors +3 -0
- model-00006-of-00119.safetensors +3 -0
- model-00007-of-00119.safetensors +3 -0
- model-00008-of-00119.safetensors +3 -0
- model-00009-of-00119.safetensors +3 -0
- model-00010-of-00119.safetensors +3 -0
- model-00011-of-00119.safetensors +3 -0
- model-00012-of-00119.safetensors +3 -0
- model-00013-of-00119.safetensors +3 -0
- model-00014-of-00119.safetensors +3 -0
- model-00015-of-00119.safetensors +3 -0
- model-00016-of-00119.safetensors +3 -0
- model-00017-of-00119.safetensors +3 -0
- model-00018-of-00119.safetensors +3 -0
- model-00019-of-00119.safetensors +3 -0
- model-00020-of-00119.safetensors +3 -0
- model-00021-of-00119.safetensors +3 -0
- model-00022-of-00119.safetensors +3 -0
- model-00023-of-00119.safetensors +3 -0
- model-00024-of-00119.safetensors +3 -0
- model-00025-of-00119.safetensors +3 -0
- model-00026-of-00119.safetensors +3 -0
- model-00027-of-00119.safetensors +3 -0
- model-00028-of-00119.safetensors +3 -0
- model-00029-of-00119.safetensors +3 -0
- model-00030-of-00119.safetensors +3 -0
- model-00031-of-00119.safetensors +3 -0
- model-00032-of-00119.safetensors +3 -0
- model-00033-of-00119.safetensors +3 -0
- model-00034-of-00119.safetensors +3 -0
- model-00035-of-00119.safetensors +3 -0
- model-00036-of-00119.safetensors +3 -0
- model-00037-of-00119.safetensors +3 -0
- model-00038-of-00119.safetensors +3 -0
- model-00039-of-00119.safetensors +3 -0
- model-00040-of-00119.safetensors +3 -0
- model-00041-of-00119.safetensors +3 -0
- model-00042-of-00119.safetensors +3 -0
- model-00043-of-00119.safetensors +3 -0
- model-00044-of-00119.safetensors +3 -0
- model-00045-of-00119.safetensors +3 -0
chat_template.jinja
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- macro render_content(msg) -%}
|
| 2 |
+
{%- set c = msg.get('content') -%}
|
| 3 |
+
{%- if c is string -%}
|
| 4 |
+
{{ c }}
|
| 5 |
+
{%- elif c is not none -%}
|
| 6 |
+
{% for content in c -%}
|
| 7 |
+
{% if content['type'] == 'image' or 'image' in content or 'image_url' in content -%}
|
| 8 |
+
<|media_start|>image<|media_content|><|media_pad|><|media_end|>
|
| 9 |
+
{% else -%}
|
| 10 |
+
{{ content['text'] }}
|
| 11 |
+
{%- endif -%}
|
| 12 |
+
{%- endfor -%}
|
| 13 |
+
{%- endif -%}
|
| 14 |
+
{%- endmacro -%}
|
| 15 |
+
|
| 16 |
+
{% macro set_roles(message) -%}
|
| 17 |
+
{%- set role_name = message.get('name') or message['role'] -%}
|
| 18 |
+
{%- if message['role'] == 'user' -%}
|
| 19 |
+
<|im_user|>{{role_name}}<|im_middle|>
|
| 20 |
+
{%- elif message['role'] == 'assistant' -%}
|
| 21 |
+
<|im_assistant|>{{role_name}}<|im_middle|>
|
| 22 |
+
{%- else -%}
|
| 23 |
+
<|im_system|>{{role_name}}<|im_middle|>
|
| 24 |
+
{%- endif -%}
|
| 25 |
+
{%- endmacro -%}
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
{%- macro render_toolcalls(message) -%}
|
| 29 |
+
<|tool_calls_section_begin|>
|
| 30 |
+
{%- for tool_call in message['tool_calls'] -%}
|
| 31 |
+
{%- set formatted_id = tool_call['id'] -%}
|
| 32 |
+
<|tool_call_begin|>{{ formatted_id }}<|tool_call_argument_begin|>{% if tool_call['function']['arguments'] is string %}{{ tool_call['function']['arguments'] }}{% else %}{{ tool_call['function']['arguments'] | tojson }}{% endif %}<|tool_call_end|>
|
| 33 |
+
{%- endfor -%}
|
| 34 |
+
<|tool_calls_section_end|>
|
| 35 |
+
{%- endmacro -%}
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
{# Find last non-tool-call assisitant message #}
|
| 39 |
+
{%- set ns = namespace(last_non_tool_call_assistant_msg=-1) -%}
|
| 40 |
+
{%- for idx in range(messages|length-1, -1, -1) -%}
|
| 41 |
+
{%- if messages[idx]['role'] == 'assistant' and not messages[idx].get('tool_calls') -%}
|
| 42 |
+
{%- set ns.last_non_tool_call_assistant_msg = idx -%}
|
| 43 |
+
{%- break -%}
|
| 44 |
+
{%- endif -%}
|
| 45 |
+
{%- endfor -%}
|
| 46 |
+
|
| 47 |
+
{# split all messages into history & suffix, reasoning_content in suffix should be reserved.#}
|
| 48 |
+
{%- set hist_msgs = messages[:ns.last_non_tool_call_assistant_msg+1] -%}
|
| 49 |
+
{%- set suffix_msgs = messages[ns.last_non_tool_call_assistant_msg+1:] -%}
|
| 50 |
+
|
| 51 |
+
{%- if tools -%}
|
| 52 |
+
<|im_system|>tool_declare<|im_middle|>{{ tools | tojson(separators=(',', ':')) }}<|im_end|>
|
| 53 |
+
{%- endif -%}
|
| 54 |
+
|
| 55 |
+
{%- for message in hist_msgs -%}
|
| 56 |
+
{%- if loop.first and messages[0]['role'] != 'system' -%}
|
| 57 |
+
<|im_system|>system<|im_middle|>You are Kimi, an AI assistant created by Moonshot AI.<|im_end|>
|
| 58 |
+
{%- endif -%}
|
| 59 |
+
{{set_roles(message)}}
|
| 60 |
+
{%- if message['role'] == 'assistant' -%}
|
| 61 |
+
<think></think>{{render_content(message)}}
|
| 62 |
+
{%- if message.get('tool_calls') -%}
|
| 63 |
+
{{render_toolcalls(message)}}
|
| 64 |
+
{%- endif -%}
|
| 65 |
+
{%- elif message['role'] == 'tool' -%}
|
| 66 |
+
{%- set tool_call_id = message.tool_call_id -%}
|
| 67 |
+
## Return of {{ tool_call_id }}
|
| 68 |
+
{{render_content(message)}}
|
| 69 |
+
{%- elif message['content'] is not none -%}
|
| 70 |
+
{{render_content(message)}}
|
| 71 |
+
{%- endif -%}
|
| 72 |
+
<|im_end|>
|
| 73 |
+
{%- endfor -%}
|
| 74 |
+
|
| 75 |
+
{%- for message in suffix_msgs -%}
|
| 76 |
+
{{set_roles(message)}}
|
| 77 |
+
{%- if message['role'] == 'assistant' -%}
|
| 78 |
+
{%- set rc = message.get('reasoning_content', '') -%}
|
| 79 |
+
<think>{{rc}}</think>{{render_content(message)}}
|
| 80 |
+
{%- if message.get('tool_calls') -%}
|
| 81 |
+
{{render_toolcalls(message)}}
|
| 82 |
+
{%- endif -%}
|
| 83 |
+
{%- elif message['role'] == 'tool' -%}
|
| 84 |
+
{%- set tool_call_id = message.tool_call_id -%}
|
| 85 |
+
## Return of {{ tool_call_id }}
|
| 86 |
+
{{render_content(message)}}
|
| 87 |
+
{%- elif message['content'] is not none -%}
|
| 88 |
+
{{render_content(message)}}
|
| 89 |
+
{%- endif -%}
|
| 90 |
+
<|im_end|>
|
| 91 |
+
{%- endfor -%}
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
{%- if add_generation_prompt -%}
|
| 95 |
+
<|im_assistant|>assistant<|im_middle|>
|
| 96 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation_autoset": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DeepseekV3ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"auto_map": {
|
| 9 |
+
"AutoConfig": "configuration_deepseek.DeepseekV3Config",
|
| 10 |
+
"AutoModel": "modeling_deepseek.DeepseekV3Model",
|
| 11 |
+
"AutoModelForCausalLM": "modeling_deepseek.DeepseekV3ForCausalLM"
|
| 12 |
+
},
|
| 13 |
+
"aux_loss_alpha": 0.001,
|
| 14 |
+
"bos_token_id": 163584,
|
| 15 |
+
"dtype": "bfloat16",
|
| 16 |
+
"eos_token_id": 163586,
|
| 17 |
+
"ep_size": 1,
|
| 18 |
+
"first_k_dense_replace": 1,
|
| 19 |
+
"hidden_act": "silu",
|
| 20 |
+
"hidden_size": 7168,
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"intermediate_size": 18432,
|
| 23 |
+
"kv_lora_rank": 512,
|
| 24 |
+
"max_position_embeddings": 262144,
|
| 25 |
+
"model_type": "deepseek_v3",
|
| 26 |
+
"moe_intermediate_size": 2048,
|
| 27 |
+
"moe_layer_freq": 1,
|
| 28 |
+
"n_group": 1,
|
| 29 |
+
"n_routed_experts": 384,
|
| 30 |
+
"n_shared_experts": 1,
|
| 31 |
+
"norm_topk_prob": true,
|
| 32 |
+
"num_attention_heads": 64,
|
| 33 |
+
"num_experts_per_tok": 8,
|
| 34 |
+
"num_hidden_layers": 61,
|
| 35 |
+
"num_key_value_heads": 64,
|
| 36 |
+
"num_nextn_predict_layers": 0,
|
| 37 |
+
"pad_token_id": 163839,
|
| 38 |
+
"pretraining_tp": 1,
|
| 39 |
+
"q_lora_rank": 1536,
|
| 40 |
+
"qk_nope_head_dim": 128,
|
| 41 |
+
"qk_rope_head_dim": 64,
|
| 42 |
+
"rms_norm_eps": 1e-05,
|
| 43 |
+
"rope_scaling": {
|
| 44 |
+
"beta_fast": 1.0,
|
| 45 |
+
"beta_slow": 1.0,
|
| 46 |
+
"factor": 64.0,
|
| 47 |
+
"mscale": 1.0,
|
| 48 |
+
"mscale_all_dim": 1.0,
|
| 49 |
+
"original_max_position_embeddings": 4096,
|
| 50 |
+
"type": "yarn"
|
| 51 |
+
},
|
| 52 |
+
"rope_theta": 50000.0,
|
| 53 |
+
"routed_scaling_factor": 2.827,
|
| 54 |
+
"scoring_func": "sigmoid",
|
| 55 |
+
"seq_aux": true,
|
| 56 |
+
"tie_word_embeddings": false,
|
| 57 |
+
"topk_group": 1,
|
| 58 |
+
"topk_method": "noaux_tc",
|
| 59 |
+
"transformers_version": "4.57.1",
|
| 60 |
+
"use_cache": true,
|
| 61 |
+
"v_head_dim": 128,
|
| 62 |
+
"vocab_size": 163840,
|
| 63 |
+
"quantization_config": {
|
| 64 |
+
"config_groups": {
|
| 65 |
+
"group_0": {
|
| 66 |
+
"input_activations": {
|
| 67 |
+
"dynamic": false,
|
| 68 |
+
"num_bits": 4,
|
| 69 |
+
"type": "float",
|
| 70 |
+
"group_size": 16
|
| 71 |
+
},
|
| 72 |
+
"weights": {
|
| 73 |
+
"dynamic": false,
|
| 74 |
+
"num_bits": 4,
|
| 75 |
+
"type": "float",
|
| 76 |
+
"group_size": 16
|
| 77 |
+
},
|
| 78 |
+
"targets": [
|
| 79 |
+
"Linear"
|
| 80 |
+
]
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"ignore": [
|
| 84 |
+
"lm_head",
|
| 85 |
+
"model.layers.0*",
|
| 86 |
+
"model.layers.1.mlp.shared_experts*",
|
| 87 |
+
"model.layers.1.self_attn*",
|
| 88 |
+
"model.layers.10.mlp.shared_experts*",
|
| 89 |
+
"model.layers.10.self_attn*",
|
| 90 |
+
"model.layers.11.mlp.shared_experts*",
|
| 91 |
+
"model.layers.11.self_attn*",
|
| 92 |
+
"model.layers.12.mlp.shared_experts*",
|
| 93 |
+
"model.layers.12.self_attn*",
|
| 94 |
+
"model.layers.13.mlp.shared_experts*",
|
| 95 |
+
"model.layers.13.self_attn*",
|
| 96 |
+
"model.layers.14.mlp.shared_experts*",
|
| 97 |
+
"model.layers.14.self_attn*",
|
| 98 |
+
"model.layers.15.mlp.shared_experts*",
|
| 99 |
+
"model.layers.15.self_attn*",
|
| 100 |
+
"model.layers.16.mlp.shared_experts*",
|
| 101 |
+
"model.layers.16.self_attn*",
|
| 102 |
+
"model.layers.17.mlp.shared_experts*",
|
| 103 |
+
"model.layers.17.self_attn*",
|
| 104 |
+
"model.layers.18.mlp.shared_experts*",
|
| 105 |
+
"model.layers.18.self_attn*",
|
| 106 |
+
"model.layers.19.mlp.shared_experts*",
|
| 107 |
+
"model.layers.19.self_attn*",
|
| 108 |
+
"model.layers.2.mlp.shared_experts*",
|
| 109 |
+
"model.layers.2.self_attn*",
|
| 110 |
+
"model.layers.20.mlp.shared_experts*",
|
| 111 |
+
"model.layers.20.self_attn*",
|
| 112 |
+
"model.layers.21.mlp.shared_experts*",
|
| 113 |
+
"model.layers.21.self_attn*",
|
| 114 |
+
"model.layers.22.mlp.shared_experts*",
|
| 115 |
+
"model.layers.22.self_attn*",
|
| 116 |
+
"model.layers.23.mlp.shared_experts*",
|
| 117 |
+
"model.layers.23.self_attn*",
|
| 118 |
+
"model.layers.24.mlp.shared_experts*",
|
| 119 |
+
"model.layers.24.self_attn*",
|
| 120 |
+
"model.layers.25.mlp.shared_experts*",
|
| 121 |
+
"model.layers.25.self_attn*",
|
| 122 |
+
"model.layers.26.mlp.shared_experts*",
|
| 123 |
+
"model.layers.26.self_attn*",
|
| 124 |
+
"model.layers.27.mlp.shared_experts*",
|
| 125 |
+
"model.layers.27.self_attn*",
|
| 126 |
+
"model.layers.28.mlp.shared_experts*",
|
| 127 |
+
"model.layers.28.self_attn*",
|
| 128 |
+
"model.layers.29.mlp.shared_experts*",
|
| 129 |
+
"model.layers.29.self_attn*",
|
| 130 |
+
"model.layers.3.mlp.shared_experts*",
|
| 131 |
+
"model.layers.3.self_attn*",
|
| 132 |
+
"model.layers.30.mlp.shared_experts*",
|
| 133 |
+
"model.layers.30.self_attn*",
|
| 134 |
+
"model.layers.31.mlp.shared_experts*",
|
| 135 |
+
"model.layers.31.self_attn*",
|
| 136 |
+
"model.layers.32.mlp.shared_experts*",
|
| 137 |
+
"model.layers.32.self_attn*",
|
| 138 |
+
"model.layers.33.mlp.shared_experts*",
|
| 139 |
+
"model.layers.33.self_attn*",
|
| 140 |
+
"model.layers.34.mlp.shared_experts*",
|
| 141 |
+
"model.layers.34.self_attn*",
|
| 142 |
+
"model.layers.35.mlp.shared_experts*",
|
| 143 |
+
"model.layers.35.self_attn*",
|
| 144 |
+
"model.layers.36.mlp.shared_experts*",
|
| 145 |
+
"model.layers.36.self_attn*",
|
| 146 |
+
"model.layers.37.mlp.shared_experts*",
|
| 147 |
+
"model.layers.37.self_attn*",
|
| 148 |
+
"model.layers.38.mlp.shared_experts*",
|
| 149 |
+
"model.layers.38.self_attn*",
|
| 150 |
+
"model.layers.39.mlp.shared_experts*",
|
| 151 |
+
"model.layers.39.self_attn*",
|
| 152 |
+
"model.layers.4.mlp.shared_experts*",
|
| 153 |
+
"model.layers.4.self_attn*",
|
| 154 |
+
"model.layers.40.mlp.shared_experts*",
|
| 155 |
+
"model.layers.40.self_attn*",
|
| 156 |
+
"model.layers.41.mlp.shared_experts*",
|
| 157 |
+
"model.layers.41.self_attn*",
|
| 158 |
+
"model.layers.42.mlp.shared_experts*",
|
| 159 |
+
"model.layers.42.self_attn*",
|
| 160 |
+
"model.layers.43.mlp.shared_experts*",
|
| 161 |
+
"model.layers.43.self_attn*",
|
| 162 |
+
"model.layers.44.mlp.shared_experts*",
|
| 163 |
+
"model.layers.44.self_attn*",
|
| 164 |
+
"model.layers.45.mlp.shared_experts*",
|
| 165 |
+
"model.layers.45.self_attn*",
|
| 166 |
+
"model.layers.46.mlp.shared_experts*",
|
| 167 |
+
"model.layers.46.self_attn*",
|
| 168 |
+
"model.layers.47.mlp.shared_experts*",
|
| 169 |
+
"model.layers.47.self_attn*",
|
| 170 |
+
"model.layers.48.mlp.shared_experts*",
|
| 171 |
+
"model.layers.48.self_attn*",
|
| 172 |
+
"model.layers.49.mlp.shared_experts*",
|
| 173 |
+
"model.layers.49.self_attn*",
|
| 174 |
+
"model.layers.5.mlp.shared_experts*",
|
| 175 |
+
"model.layers.5.self_attn*",
|
| 176 |
+
"model.layers.50.mlp.shared_experts*",
|
| 177 |
+
"model.layers.50.self_attn*",
|
| 178 |
+
"model.layers.51.mlp.shared_experts*",
|
| 179 |
+
"model.layers.51.self_attn*",
|
| 180 |
+
"model.layers.52.mlp.shared_experts*",
|
| 181 |
+
"model.layers.52.self_attn*",
|
| 182 |
+
"model.layers.53.mlp.shared_experts*",
|
| 183 |
+
"model.layers.53.self_attn*",
|
| 184 |
+
"model.layers.54.mlp.shared_experts*",
|
| 185 |
+
"model.layers.54.self_attn*",
|
| 186 |
+
"model.layers.55.mlp.shared_experts*",
|
| 187 |
+
"model.layers.55.self_attn*",
|
| 188 |
+
"model.layers.56.mlp.shared_experts*",
|
| 189 |
+
"model.layers.56.self_attn*",
|
| 190 |
+
"model.layers.57.mlp.shared_experts*",
|
| 191 |
+
"model.layers.57.self_attn*",
|
| 192 |
+
"model.layers.58.mlp.shared_experts*",
|
| 193 |
+
"model.layers.58.self_attn*",
|
| 194 |
+
"model.layers.59.mlp.shared_experts*",
|
| 195 |
+
"model.layers.59.self_attn*",
|
| 196 |
+
"model.layers.6.mlp.shared_experts*",
|
| 197 |
+
"model.layers.6.self_attn*",
|
| 198 |
+
"model.layers.60.mlp.shared_experts*",
|
| 199 |
+
"model.layers.60.self_attn*",
|
| 200 |
+
"model.layers.7.mlp.shared_experts*",
|
| 201 |
+
"model.layers.7.self_attn*",
|
| 202 |
+
"model.layers.8.mlp.shared_experts*",
|
| 203 |
+
"model.layers.8.self_attn*",
|
| 204 |
+
"model.layers.9.mlp.shared_experts*",
|
| 205 |
+
"model.layers.9.self_attn*"
|
| 206 |
+
],
|
| 207 |
+
"quant_algo": "NVFP4",
|
| 208 |
+
"kv_cache_scheme": {
|
| 209 |
+
"dynamic": false,
|
| 210 |
+
"num_bits": 8,
|
| 211 |
+
"type": "float"
|
| 212 |
+
},
|
| 213 |
+
"producer": {
|
| 214 |
+
"name": "modelopt",
|
| 215 |
+
"version": "0.40.0.dev66+gbe64f6b1d.d20251119"
|
| 216 |
+
},
|
| 217 |
+
"quant_method": "modelopt"
|
| 218 |
+
}
|
| 219 |
+
}
|
configuration_deepseek.py
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copy from https://huggingface.co/deepseek-ai/DeepSeek-V3/blob/main/configuration_deepseek.py
|
| 2 |
+
|
| 3 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 4 |
+
from transformers.utils import logging
|
| 5 |
+
|
| 6 |
+
logger = logging.get_logger(__name__)
|
| 7 |
+
|
| 8 |
+
DEEPSEEK_PRETRAINED_CONFIG_ARCHIVE_MAP = {}
|
| 9 |
+
class DeepseekV3Config(PretrainedConfig):
|
| 10 |
+
r"""
|
| 11 |
+
This is the configuration class to store the configuration of a [`DeepseekV3Model`]. It is used to instantiate an DeepSeek
|
| 12 |
+
model according to the specified arguments, defining the model architecture. Instantiating a configuration with the
|
| 13 |
+
defaults will yield a similar configuration to that of the DeepSeek-V3.
|
| 14 |
+
|
| 15 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 16 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
Args:
|
| 20 |
+
vocab_size (`int`, *optional*, defaults to 129280):
|
| 21 |
+
Vocabulary size of the Deep model. Defines the number of different tokens that can be represented by the
|
| 22 |
+
`inputs_ids` passed when calling [`DeepseekV3Model`]
|
| 23 |
+
hidden_size (`int`, *optional*, defaults to 4096):
|
| 24 |
+
Dimension of the hidden representations.
|
| 25 |
+
intermediate_size (`int`, *optional*, defaults to 11008):
|
| 26 |
+
Dimension of the MLP representations.
|
| 27 |
+
moe_intermediate_size (`int`, *optional*, defaults to 1407):
|
| 28 |
+
Dimension of the MoE representations.
|
| 29 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
| 30 |
+
Number of hidden layers in the Transformer decoder.
|
| 31 |
+
num_nextn_predict_layers (`int`, *optional*, defaults to 1):
|
| 32 |
+
Number of nextn predict layers in the DeepSeekV3 Model.
|
| 33 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
| 34 |
+
Number of attention heads for each attention layer in the Transformer decoder.
|
| 35 |
+
n_shared_experts (`int`, *optional*, defaults to None):
|
| 36 |
+
Number of shared experts, None means dense model.
|
| 37 |
+
n_routed_experts (`int`, *optional*, defaults to None):
|
| 38 |
+
Number of routed experts, None means dense model.
|
| 39 |
+
routed_scaling_factor (`float`, *optional*, defaults to 1.0):
|
| 40 |
+
Scaling factor or routed experts.
|
| 41 |
+
topk_method (`str`, *optional*, defaults to `gready`):
|
| 42 |
+
Topk method used in routed gate.
|
| 43 |
+
n_group (`int`, *optional*, defaults to None):
|
| 44 |
+
Number of groups for routed experts.
|
| 45 |
+
topk_group (`int`, *optional*, defaults to None):
|
| 46 |
+
Number of selected groups for each token(for each token, ensuring the selected experts is only within `topk_group` groups).
|
| 47 |
+
num_experts_per_tok (`int`, *optional*, defaults to None):
|
| 48 |
+
Number of selected experts, None means dense model.
|
| 49 |
+
moe_layer_freq (`int`, *optional*, defaults to 1):
|
| 50 |
+
The frequency of the MoE layer: one expert layer for every `moe_layer_freq - 1` dense layers.
|
| 51 |
+
first_k_dense_replace (`int`, *optional*, defaults to 0):
|
| 52 |
+
Number of dense layers in shallow layers(embed->dense->dense->...->dense->moe->moe...->lm_head).
|
| 53 |
+
\--k dense layers--/
|
| 54 |
+
norm_topk_prob (`bool`, *optional*, defaults to False):
|
| 55 |
+
Whether to normalize the weights of the routed experts.
|
| 56 |
+
scoring_func (`str`, *optional*, defaults to 'softmax'):
|
| 57 |
+
Method of computing expert weights.
|
| 58 |
+
aux_loss_alpha (`float`, *optional*, defaults to 0.001):
|
| 59 |
+
Auxiliary loss weight coefficient.
|
| 60 |
+
seq_aux = (`bool`, *optional*, defaults to True):
|
| 61 |
+
Whether to compute the auxiliary loss for each individual sample.
|
| 62 |
+
num_key_value_heads (`int`, *optional*):
|
| 63 |
+
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
|
| 64 |
+
`num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
|
| 65 |
+
`num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used. When
|
| 66 |
+
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
|
| 67 |
+
by meanpooling all the original heads within that group. For more details checkout [this
|
| 68 |
+
paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to
|
| 69 |
+
`num_attention_heads`.
|
| 70 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
|
| 71 |
+
The non-linear activation function (function or string) in the decoder.
|
| 72 |
+
max_position_embeddings (`int`, *optional*, defaults to 2048):
|
| 73 |
+
The maximum sequence length that this model might ever be used with.
|
| 74 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 75 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 76 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-06):
|
| 77 |
+
The epsilon used by the rms normalization layers.
|
| 78 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
| 79 |
+
Whether or not the model should return the last key/values attentions (not used by all models). Only
|
| 80 |
+
relevant if `config.is_decoder=True`.
|
| 81 |
+
pad_token_id (`int`, *optional*):
|
| 82 |
+
Padding token id.
|
| 83 |
+
bos_token_id (`int`, *optional*, defaults to 1):
|
| 84 |
+
Beginning of stream token id.
|
| 85 |
+
eos_token_id (`int`, *optional*, defaults to 2):
|
| 86 |
+
End of stream token id.
|
| 87 |
+
pretraining_tp (`int`, *optional*, defaults to 1):
|
| 88 |
+
Experimental feature. Tensor parallelism rank used during pretraining. Please refer to [this
|
| 89 |
+
document](https://huggingface.co/docs/transformers/parallelism) to understand more about it. This value is
|
| 90 |
+
necessary to ensure exact reproducibility of the pretraining results. Please refer to [this
|
| 91 |
+
issue](https://github.com/pytorch/pytorch/issues/76232).
|
| 92 |
+
tie_word_embeddings (`bool`, *optional*, defaults to `False`):
|
| 93 |
+
Whether to tie weight embeddings
|
| 94 |
+
rope_theta (`float`, *optional*, defaults to 10000.0):
|
| 95 |
+
The base period of the RoPE embeddings.
|
| 96 |
+
rope_scaling (`Dict`, *optional*):
|
| 97 |
+
Dictionary containing the scaling configuration for the RoPE embeddings. Currently supports two scaling
|
| 98 |
+
strategies: linear and dynamic. Their scaling factor must be a float greater than 1. The expected format is
|
| 99 |
+
`{"type": strategy name, "factor": scaling factor}`. When using this flag, don't update
|
| 100 |
+
`max_position_embeddings` to the expected new maximum.
|
| 101 |
+
attention_bias (`bool`, defaults to `False`, *optional*, defaults to `False`):
|
| 102 |
+
Whether to use a bias in the query, key, value and output projection layers during self-attention.
|
| 103 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 104 |
+
The dropout ratio for the attention probabilities.
|
| 105 |
+
|
| 106 |
+
```python
|
| 107 |
+
>>> from transformers import DeepseekV3Model, DeepseekV3Config
|
| 108 |
+
|
| 109 |
+
>>> # Initializing a Deepseek-V3 style configuration
|
| 110 |
+
>>> configuration = DeepseekV3Config()
|
| 111 |
+
|
| 112 |
+
>>> # Accessing the model configuration
|
| 113 |
+
>>> configuration = model.config
|
| 114 |
+
```"""
|
| 115 |
+
|
| 116 |
+
model_type = "deepseek_v3"
|
| 117 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
| 118 |
+
|
| 119 |
+
def __init__(
|
| 120 |
+
self,
|
| 121 |
+
vocab_size=129280,
|
| 122 |
+
hidden_size=7168,
|
| 123 |
+
intermediate_size=18432,
|
| 124 |
+
moe_intermediate_size = 2048,
|
| 125 |
+
num_hidden_layers=61,
|
| 126 |
+
num_nextn_predict_layers=1,
|
| 127 |
+
num_attention_heads=128,
|
| 128 |
+
num_key_value_heads=128,
|
| 129 |
+
n_shared_experts = 1,
|
| 130 |
+
n_routed_experts = 256,
|
| 131 |
+
ep_size = 1,
|
| 132 |
+
routed_scaling_factor = 2.5,
|
| 133 |
+
kv_lora_rank = 512,
|
| 134 |
+
q_lora_rank = 1536,
|
| 135 |
+
qk_rope_head_dim = 64,
|
| 136 |
+
v_head_dim = 128,
|
| 137 |
+
qk_nope_head_dim = 128,
|
| 138 |
+
topk_method = 'noaux_tc',
|
| 139 |
+
n_group = 8,
|
| 140 |
+
topk_group = 4,
|
| 141 |
+
num_experts_per_tok = 8,
|
| 142 |
+
moe_layer_freq = 1,
|
| 143 |
+
first_k_dense_replace = 3,
|
| 144 |
+
norm_topk_prob = True,
|
| 145 |
+
scoring_func = 'sigmoid',
|
| 146 |
+
aux_loss_alpha = 0.001,
|
| 147 |
+
seq_aux = True,
|
| 148 |
+
hidden_act="silu",
|
| 149 |
+
max_position_embeddings=4096,
|
| 150 |
+
initializer_range=0.02,
|
| 151 |
+
rms_norm_eps=1e-6,
|
| 152 |
+
use_cache=True,
|
| 153 |
+
pad_token_id=None,
|
| 154 |
+
bos_token_id=0,
|
| 155 |
+
eos_token_id=1,
|
| 156 |
+
pretraining_tp=1,
|
| 157 |
+
tie_word_embeddings=False,
|
| 158 |
+
rope_theta=10000.0,
|
| 159 |
+
rope_scaling=None,
|
| 160 |
+
attention_bias=False,
|
| 161 |
+
attention_dropout=0.0,
|
| 162 |
+
**kwargs,
|
| 163 |
+
):
|
| 164 |
+
self.vocab_size = vocab_size
|
| 165 |
+
self.max_position_embeddings = max_position_embeddings
|
| 166 |
+
self.hidden_size = hidden_size
|
| 167 |
+
self.intermediate_size = intermediate_size
|
| 168 |
+
self.moe_intermediate_size = moe_intermediate_size
|
| 169 |
+
self.num_hidden_layers = num_hidden_layers
|
| 170 |
+
self.num_nextn_predict_layers = num_nextn_predict_layers
|
| 171 |
+
self.num_attention_heads = num_attention_heads
|
| 172 |
+
self.n_shared_experts = n_shared_experts
|
| 173 |
+
self.n_routed_experts = n_routed_experts
|
| 174 |
+
self.ep_size = ep_size
|
| 175 |
+
self.routed_scaling_factor = routed_scaling_factor
|
| 176 |
+
self.kv_lora_rank = kv_lora_rank
|
| 177 |
+
self.q_lora_rank = q_lora_rank
|
| 178 |
+
self.qk_rope_head_dim = qk_rope_head_dim
|
| 179 |
+
self.v_head_dim = v_head_dim
|
| 180 |
+
self.qk_nope_head_dim = qk_nope_head_dim
|
| 181 |
+
self.topk_method = topk_method
|
| 182 |
+
self.n_group = n_group
|
| 183 |
+
self.topk_group = topk_group
|
| 184 |
+
self.num_experts_per_tok = num_experts_per_tok
|
| 185 |
+
self.moe_layer_freq = moe_layer_freq
|
| 186 |
+
self.first_k_dense_replace = first_k_dense_replace
|
| 187 |
+
self.norm_topk_prob = norm_topk_prob
|
| 188 |
+
self.scoring_func = scoring_func
|
| 189 |
+
self.aux_loss_alpha = aux_loss_alpha
|
| 190 |
+
self.seq_aux = seq_aux
|
| 191 |
+
# for backward compatibility
|
| 192 |
+
if num_key_value_heads is None:
|
| 193 |
+
num_key_value_heads = num_attention_heads
|
| 194 |
+
|
| 195 |
+
self.num_key_value_heads = num_key_value_heads
|
| 196 |
+
self.hidden_act = hidden_act
|
| 197 |
+
self.initializer_range = initializer_range
|
| 198 |
+
self.rms_norm_eps = rms_norm_eps
|
| 199 |
+
self.pretraining_tp = pretraining_tp
|
| 200 |
+
self.use_cache = use_cache
|
| 201 |
+
self.rope_theta = rope_theta
|
| 202 |
+
self.rope_scaling = rope_scaling
|
| 203 |
+
self.attention_bias = attention_bias
|
| 204 |
+
self.attention_dropout = attention_dropout
|
| 205 |
+
|
| 206 |
+
super().__init__(
|
| 207 |
+
pad_token_id=pad_token_id,
|
| 208 |
+
bos_token_id=bos_token_id,
|
| 209 |
+
eos_token_id=eos_token_id,
|
| 210 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 211 |
+
**kwargs,
|
| 212 |
+
)
|
generation_config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eos_token_id": 163586,
|
| 3 |
+
"max_length": 262144,
|
| 4 |
+
"transformers_version": "4.57.1"
|
| 5 |
+
}
|
hf_quant_config.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"producer": {
|
| 3 |
+
"name": "modelopt",
|
| 4 |
+
"version": "0.40.0.dev66+gbe64f6b1d.d20251119"
|
| 5 |
+
},
|
| 6 |
+
"quantization": {
|
| 7 |
+
"quant_algo": "NVFP4",
|
| 8 |
+
"kv_cache_quant_algo": "FP8",
|
| 9 |
+
"group_size": 16,
|
| 10 |
+
"exclude_modules": [
|
| 11 |
+
"lm_head",
|
| 12 |
+
"model.layers.0*",
|
| 13 |
+
"model.layers.1.mlp.shared_experts*",
|
| 14 |
+
"model.layers.1.self_attn*",
|
| 15 |
+
"model.layers.10.mlp.shared_experts*",
|
| 16 |
+
"model.layers.10.self_attn*",
|
| 17 |
+
"model.layers.11.mlp.shared_experts*",
|
| 18 |
+
"model.layers.11.self_attn*",
|
| 19 |
+
"model.layers.12.mlp.shared_experts*",
|
| 20 |
+
"model.layers.12.self_attn*",
|
| 21 |
+
"model.layers.13.mlp.shared_experts*",
|
| 22 |
+
"model.layers.13.self_attn*",
|
| 23 |
+
"model.layers.14.mlp.shared_experts*",
|
| 24 |
+
"model.layers.14.self_attn*",
|
| 25 |
+
"model.layers.15.mlp.shared_experts*",
|
| 26 |
+
"model.layers.15.self_attn*",
|
| 27 |
+
"model.layers.16.mlp.shared_experts*",
|
| 28 |
+
"model.layers.16.self_attn*",
|
| 29 |
+
"model.layers.17.mlp.shared_experts*",
|
| 30 |
+
"model.layers.17.self_attn*",
|
| 31 |
+
"model.layers.18.mlp.shared_experts*",
|
| 32 |
+
"model.layers.18.self_attn*",
|
| 33 |
+
"model.layers.19.mlp.shared_experts*",
|
| 34 |
+
"model.layers.19.self_attn*",
|
| 35 |
+
"model.layers.2.mlp.shared_experts*",
|
| 36 |
+
"model.layers.2.self_attn*",
|
| 37 |
+
"model.layers.20.mlp.shared_experts*",
|
| 38 |
+
"model.layers.20.self_attn*",
|
| 39 |
+
"model.layers.21.mlp.shared_experts*",
|
| 40 |
+
"model.layers.21.self_attn*",
|
| 41 |
+
"model.layers.22.mlp.shared_experts*",
|
| 42 |
+
"model.layers.22.self_attn*",
|
| 43 |
+
"model.layers.23.mlp.shared_experts*",
|
| 44 |
+
"model.layers.23.self_attn*",
|
| 45 |
+
"model.layers.24.mlp.shared_experts*",
|
| 46 |
+
"model.layers.24.self_attn*",
|
| 47 |
+
"model.layers.25.mlp.shared_experts*",
|
| 48 |
+
"model.layers.25.self_attn*",
|
| 49 |
+
"model.layers.26.mlp.shared_experts*",
|
| 50 |
+
"model.layers.26.self_attn*",
|
| 51 |
+
"model.layers.27.mlp.shared_experts*",
|
| 52 |
+
"model.layers.27.self_attn*",
|
| 53 |
+
"model.layers.28.mlp.shared_experts*",
|
| 54 |
+
"model.layers.28.self_attn*",
|
| 55 |
+
"model.layers.29.mlp.shared_experts*",
|
| 56 |
+
"model.layers.29.self_attn*",
|
| 57 |
+
"model.layers.3.mlp.shared_experts*",
|
| 58 |
+
"model.layers.3.self_attn*",
|
| 59 |
+
"model.layers.30.mlp.shared_experts*",
|
| 60 |
+
"model.layers.30.self_attn*",
|
| 61 |
+
"model.layers.31.mlp.shared_experts*",
|
| 62 |
+
"model.layers.31.self_attn*",
|
| 63 |
+
"model.layers.32.mlp.shared_experts*",
|
| 64 |
+
"model.layers.32.self_attn*",
|
| 65 |
+
"model.layers.33.mlp.shared_experts*",
|
| 66 |
+
"model.layers.33.self_attn*",
|
| 67 |
+
"model.layers.34.mlp.shared_experts*",
|
| 68 |
+
"model.layers.34.self_attn*",
|
| 69 |
+
"model.layers.35.mlp.shared_experts*",
|
| 70 |
+
"model.layers.35.self_attn*",
|
| 71 |
+
"model.layers.36.mlp.shared_experts*",
|
| 72 |
+
"model.layers.36.self_attn*",
|
| 73 |
+
"model.layers.37.mlp.shared_experts*",
|
| 74 |
+
"model.layers.37.self_attn*",
|
| 75 |
+
"model.layers.38.mlp.shared_experts*",
|
| 76 |
+
"model.layers.38.self_attn*",
|
| 77 |
+
"model.layers.39.mlp.shared_experts*",
|
| 78 |
+
"model.layers.39.self_attn*",
|
| 79 |
+
"model.layers.4.mlp.shared_experts*",
|
| 80 |
+
"model.layers.4.self_attn*",
|
| 81 |
+
"model.layers.40.mlp.shared_experts*",
|
| 82 |
+
"model.layers.40.self_attn*",
|
| 83 |
+
"model.layers.41.mlp.shared_experts*",
|
| 84 |
+
"model.layers.41.self_attn*",
|
| 85 |
+
"model.layers.42.mlp.shared_experts*",
|
| 86 |
+
"model.layers.42.self_attn*",
|
| 87 |
+
"model.layers.43.mlp.shared_experts*",
|
| 88 |
+
"model.layers.43.self_attn*",
|
| 89 |
+
"model.layers.44.mlp.shared_experts*",
|
| 90 |
+
"model.layers.44.self_attn*",
|
| 91 |
+
"model.layers.45.mlp.shared_experts*",
|
| 92 |
+
"model.layers.45.self_attn*",
|
| 93 |
+
"model.layers.46.mlp.shared_experts*",
|
| 94 |
+
"model.layers.46.self_attn*",
|
| 95 |
+
"model.layers.47.mlp.shared_experts*",
|
| 96 |
+
"model.layers.47.self_attn*",
|
| 97 |
+
"model.layers.48.mlp.shared_experts*",
|
| 98 |
+
"model.layers.48.self_attn*",
|
| 99 |
+
"model.layers.49.mlp.shared_experts*",
|
| 100 |
+
"model.layers.49.self_attn*",
|
| 101 |
+
"model.layers.5.mlp.shared_experts*",
|
| 102 |
+
"model.layers.5.self_attn*",
|
| 103 |
+
"model.layers.50.mlp.shared_experts*",
|
| 104 |
+
"model.layers.50.self_attn*",
|
| 105 |
+
"model.layers.51.mlp.shared_experts*",
|
| 106 |
+
"model.layers.51.self_attn*",
|
| 107 |
+
"model.layers.52.mlp.shared_experts*",
|
| 108 |
+
"model.layers.52.self_attn*",
|
| 109 |
+
"model.layers.53.mlp.shared_experts*",
|
| 110 |
+
"model.layers.53.self_attn*",
|
| 111 |
+
"model.layers.54.mlp.shared_experts*",
|
| 112 |
+
"model.layers.54.self_attn*",
|
| 113 |
+
"model.layers.55.mlp.shared_experts*",
|
| 114 |
+
"model.layers.55.self_attn*",
|
| 115 |
+
"model.layers.56.mlp.shared_experts*",
|
| 116 |
+
"model.layers.56.self_attn*",
|
| 117 |
+
"model.layers.57.mlp.shared_experts*",
|
| 118 |
+
"model.layers.57.self_attn*",
|
| 119 |
+
"model.layers.58.mlp.shared_experts*",
|
| 120 |
+
"model.layers.58.self_attn*",
|
| 121 |
+
"model.layers.59.mlp.shared_experts*",
|
| 122 |
+
"model.layers.59.self_attn*",
|
| 123 |
+
"model.layers.6.mlp.shared_experts*",
|
| 124 |
+
"model.layers.6.self_attn*",
|
| 125 |
+
"model.layers.60.mlp.shared_experts*",
|
| 126 |
+
"model.layers.60.self_attn*",
|
| 127 |
+
"model.layers.7.mlp.shared_experts*",
|
| 128 |
+
"model.layers.7.self_attn*",
|
| 129 |
+
"model.layers.8.mlp.shared_experts*",
|
| 130 |
+
"model.layers.8.self_attn*",
|
| 131 |
+
"model.layers.9.mlp.shared_experts*",
|
| 132 |
+
"model.layers.9.self_attn*"
|
| 133 |
+
]
|
| 134 |
+
}
|
| 135 |
+
}
|
model-00001-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0065c2ded569519c0b800245c7ac5dabbee794c660c19fb0434c246f8c89af39
|
| 3 |
+
size 4999471752
|
model-00002-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c898b8b06b51a18c9eac7d3d34cbdc419f15be07a8c8d09d3ffe5c5c4af5c5b3
|
| 3 |
+
size 4996099728
|
model-00003-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1789d63d20f95e791730a3164491cc9c9a9d88cf319839c69a57a6caad7c4961
|
| 3 |
+
size 4994675824
|
model-00004-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17c566d943a52889b51ad80ab3b51450b004d2821d57b0d75c1a76597c94ae68
|
| 3 |
+
size 4996099808
|
model-00005-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e620c071a2ff20ddbb0fb5102c788a0a9319386ef69088f5f3689cbdc5f8784
|
| 3 |
+
size 4994675744
|
model-00006-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1848b2b37a91dbe73f6517737367c767e6c744ba6ce5fbdd7400da88a295386
|
| 3 |
+
size 4996099896
|
model-00007-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1709bd5d9a85e059dbdf9e853292bab3dbae83620dbf959f80f7792829ccc49d
|
| 3 |
+
size 4994675648
|
model-00008-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68ae1ec90815c73326255692c749336d8e2445cd59b0a686314bb156656e5277
|
| 3 |
+
size 4996099992
|
model-00009-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34d982ef0577772766bdef2850ab7897aef49847e64f44d75510b4da89a518a8
|
| 3 |
+
size 4994675560
|
model-00010-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:594cb42695e282b92a6617a0725be7419fc29b5feed74669548928f3bc059b06
|
| 3 |
+
size 4996100072
|
model-00011-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69930f460407d09827005794ef32f1dbc3b410397113b6c0405fb7b564221127
|
| 3 |
+
size 4994675480
|
model-00012-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:260a8b9d974591b59ff64677d1c96249bf3c596f7ed6997b6cb1950b14be7990
|
| 3 |
+
size 4996100160
|
model-00013-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba0fb566f566874f46e820c4b02c46c3e3b8aa6429f3ef57de97190a992e43b6
|
| 3 |
+
size 4994675416
|
model-00014-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75879f08917a21bf874be5c896ff21bbc8239650ba71cf185eba154a283b9141
|
| 3 |
+
size 4996100224
|
model-00015-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49c21ba4702a91ef74105d8af0b55f50987787839d2b11680a6caa05424cca1d
|
| 3 |
+
size 4994675416
|
model-00016-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef51064876412b2482e4cbecc2109f75cb25eba16f25501c0813d0a95005dcdd
|
| 3 |
+
size 4996100216
|
model-00017-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db4e7964f19818e294e2ea1ed6e445a7751120f9daf48ff41a33253a4616d51d
|
| 3 |
+
size 4994675424
|
model-00018-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f211a299d7e5b2ea3d327954d6d1e6cd5012bf88a51b08dbb7965250275e70c
|
| 3 |
+
size 4996100216
|
model-00019-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04d907c7ad5312354dfd2d477c936638b62881723efd32249108bafaf77feaad
|
| 3 |
+
size 4994676936
|
model-00020-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40375f900fac3e70c84e69639e0a1fe479a8c6fa218231bba663cf5a94fdbfe6
|
| 3 |
+
size 4996102640
|
model-00021-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ba303a440792ab37a51151e485887608b90567390a00026cfd47e3282645839
|
| 3 |
+
size 4994677704
|
model-00022-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8c89f011829c7d575599e1ce55016d897cb8cb856ae4fcdc835980dfad9d64d
|
| 3 |
+
size 4996102632
|
model-00023-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de2ef499a7a739075c70781ca5cbfc162b7670290fcf1326b574a6332aac12e9
|
| 3 |
+
size 4994677712
|
model-00024-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b83ce76babcce707e80be70f9d2b9a2da8062427e53150ef206663b061764fa5
|
| 3 |
+
size 4996102632
|
model-00025-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:caa89edd59ed5045f912860890c6b7db34c2e48d0ff20dd366aa64899b80ef9d
|
| 3 |
+
size 4994677704
|
model-00026-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:935b66202811d8c575209f45ee726f46ec8758c5a252305e49835896bb958a77
|
| 3 |
+
size 4996102640
|
model-00027-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:312bac8c5f3e45a31ed8c11bbbd2715099e60ae5a477928ead04aff1d24d3def
|
| 3 |
+
size 4994677704
|
model-00028-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3679dc57662dbf5f4d5e2874c4fffe2474642e810de7630c0baf4152a0ab6341
|
| 3 |
+
size 4996102632
|
model-00029-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b2ef7b6edfb64c5ef3b831831a2efe5a1ae52ffdd9c5c1e45e2f539a2a0d388
|
| 3 |
+
size 4994677712
|
model-00030-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71a2043916fce2cf824b2e4551fb5833ed95b3ec323f62ae9a98c921ddb1876b
|
| 3 |
+
size 4996102632
|
model-00031-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:312da86b41f1070e56f6e233a5572db67c8e509781e1307dd39fe93cc2a201d9
|
| 3 |
+
size 4994677704
|
model-00032-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf310f065b50c64a51f4938113aa5c831ff9a15ea52a77f1ae7be6809285510d
|
| 3 |
+
size 4996102640
|
model-00033-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ceeeddb974a738246a07949d1155b4882adec914a252196473ce326b9f68b8f
|
| 3 |
+
size 4994677704
|
model-00034-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28b4d2c3ec16ffa2ad884728fdd57dbed149ca5354920ac365b604716045125c
|
| 3 |
+
size 4996102632
|
model-00035-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:349e755fd0f37ae43af44a36f116ce523c4db512e290f2e84c46153864c25b7f
|
| 3 |
+
size 4994677712
|
model-00036-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb2f8944925eadd3ae5b6053f9446cdc63d6d87f047818967700eecb0dc36a50
|
| 3 |
+
size 4976834600
|
model-00037-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26ff24de45eb025b8602c08fc74fda6be3ee3f73d293ae239e4c2e3136e13e54
|
| 3 |
+
size 4997429720
|
model-00038-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cad91ed25976754a7d159a8f5c32715023215e5d3e722b84bc5ea3cd00b0c5c0
|
| 3 |
+
size 4984592456
|
model-00039-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8cc7524fe27ba7b8ca433514875c444af83005f30d8e568d91f9935e2be722c2
|
| 3 |
+
size 4997930104
|
model-00040-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2820f62e17e5dd6ed35271c60c982f72ac89982eeed8eef71dfde65002d9584
|
| 3 |
+
size 4994678960
|
model-00041-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19e9f8c97a65a0569802ac3b70e0e6a51e6733afc7b1a6e1bf349ea22e669af5
|
| 3 |
+
size 4996101384
|
model-00042-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a50ea606d235edd493f59a5bf321027394c85961503ad1e95982661deb52a4fe
|
| 3 |
+
size 4994678784
|
model-00043-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:591c7db751c65f6f0ac16f647f853ac2a3c465b4acae4a2252aacf349a581fc8
|
| 3 |
+
size 4996101552
|
model-00044-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a8dc5a5befdc2b24c2789d6b9f26144a121bed72d664245419f86fa9be014a1
|
| 3 |
+
size 4994678704
|
model-00045-of-00119.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2901a319bb4ae7755b03cde6c3a196ffc04cedd02d8a25dc53cb10ba337ae762
|
| 3 |
+
size 4996101640
|