Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- chat_template.jinja +86 -0
- config.json +108 -0
- configuration_glm_scm.py +110 -0
- generation_config.json +14 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +759 -0
- modeling_glm_scm.py +651 -0
- tokenizer.json +3 -0
- tokenizer_config.json +321 -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
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[gMASK]<sop>
|
| 2 |
+
{%- if tools -%}
|
| 3 |
+
<|system|>
|
| 4 |
+
# Tools
|
| 5 |
+
|
| 6 |
+
You may call one or more functions to assist with the user query.
|
| 7 |
+
|
| 8 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 9 |
+
<tools>
|
| 10 |
+
{% for tool in tools %}
|
| 11 |
+
{{ tool | tojson(ensure_ascii=False) }}
|
| 12 |
+
{% endfor %}
|
| 13 |
+
</tools>
|
| 14 |
+
|
| 15 |
+
For each function call, output the function name and arguments within the following XML format:
|
| 16 |
+
<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}
|
| 17 |
+
{%- macro visible_text(content) -%}
|
| 18 |
+
{%- if content is string -%}
|
| 19 |
+
{{- content }}
|
| 20 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 21 |
+
{%- for item in content -%}
|
| 22 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 23 |
+
{{- item.text }}
|
| 24 |
+
{%- elif item is string -%}
|
| 25 |
+
{{- item }}
|
| 26 |
+
{%- endif -%}
|
| 27 |
+
{%- endfor -%}
|
| 28 |
+
{%- else -%}
|
| 29 |
+
{{- content }}
|
| 30 |
+
{%- endif -%}
|
| 31 |
+
{%- endmacro -%}
|
| 32 |
+
{%- set ns = namespace(last_user_index=-1) %}
|
| 33 |
+
{%- for m in messages %}
|
| 34 |
+
{%- if m.role == 'user' %}
|
| 35 |
+
{% set ns.last_user_index = loop.index0 -%}
|
| 36 |
+
{%- endif %}
|
| 37 |
+
{%- endfor %}
|
| 38 |
+
{% for m in messages %}
|
| 39 |
+
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 40 |
+
{%- elif m.role == 'assistant' -%}
|
| 41 |
+
<|assistant|>
|
| 42 |
+
{%- set reasoning_content = '' %}
|
| 43 |
+
{%- set content = visible_text(m.content) %}
|
| 44 |
+
{%- if m.reasoning_content is string %}
|
| 45 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 46 |
+
{%- else %}
|
| 47 |
+
{%- if '</think>' in content %}
|
| 48 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 49 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endif %}
|
| 52 |
+
{%- if ((clear_thinking is defined and not clear_thinking) or loop.index0 > ns.last_user_index) and reasoning_content -%}
|
| 53 |
+
{{ '<think>' + reasoning_content.strip() + '</think>'}}
|
| 54 |
+
{%- else -%}
|
| 55 |
+
{{ '</think>' }}
|
| 56 |
+
{%- endif -%}
|
| 57 |
+
{%- if content.strip() -%}
|
| 58 |
+
{{ content.strip() }}
|
| 59 |
+
{%- endif -%}
|
| 60 |
+
{% if m.tool_calls %}
|
| 61 |
+
{% for tc in m.tool_calls %}
|
| 62 |
+
{%- if tc.function %}
|
| 63 |
+
{%- set tc = tc.function %}
|
| 64 |
+
{%- endif %}
|
| 65 |
+
{{- '<tool_call>' + tc.name -}}
|
| 66 |
+
{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}
|
| 67 |
+
{% endif %}
|
| 68 |
+
{%- elif m.role == 'tool' -%}
|
| 69 |
+
{%- if m.content is string -%}
|
| 70 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 71 |
+
{{- '<|observation|>' }}
|
| 72 |
+
{%- endif %}
|
| 73 |
+
{{- '<tool_response>' }}
|
| 74 |
+
{{- m.content }}
|
| 75 |
+
{{- '</tool_response>' }}
|
| 76 |
+
{%- else -%}
|
| 77 |
+
<|observation|>{% for tr in m.content %}
|
| 78 |
+
<tool_response>{{ tr.output if tr.output is defined else tr }}</tool_response>{% endfor -%}
|
| 79 |
+
{% endif -%}
|
| 80 |
+
{%- elif m.role == 'system' -%}
|
| 81 |
+
<|system|>{{ visible_text(m.content) }}
|
| 82 |
+
{%- endif -%}
|
| 83 |
+
{%- endfor -%}
|
| 84 |
+
{%- if add_generation_prompt -%}
|
| 85 |
+
<|assistant|>{{- '</think>' if (enable_thinking is defined and not enable_thinking) else '<think>' -}}
|
| 86 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Glm4MoeLiteSCMForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "configuration_glm_scm.Glm4MoeLiteSCMConfig",
|
| 9 |
+
"AutoModel": "modeling_glm_scm.Glm4MoeLiteSCMModel",
|
| 10 |
+
"AutoModelForCausalLM": "modeling_glm_scm.Glm4MoeLiteSCMForCausalLM"
|
| 11 |
+
},
|
| 12 |
+
"bos_token_id": 0,
|
| 13 |
+
"dtype": "bfloat16",
|
| 14 |
+
"eos_token_id": [
|
| 15 |
+
154820,
|
| 16 |
+
154827,
|
| 17 |
+
154829
|
| 18 |
+
],
|
| 19 |
+
"first_k_dense_replace": 1,
|
| 20 |
+
"head_dim": 64,
|
| 21 |
+
"hidden_act": "silu",
|
| 22 |
+
"hidden_size": 2048,
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"intermediate_size": 10240,
|
| 25 |
+
"kv_lora_rank": 512,
|
| 26 |
+
"max_position_embeddings": 202752,
|
| 27 |
+
"mlp_layer_types": [
|
| 28 |
+
"dense",
|
| 29 |
+
"sparse",
|
| 30 |
+
"sparse",
|
| 31 |
+
"sparse",
|
| 32 |
+
"sparse",
|
| 33 |
+
"sparse",
|
| 34 |
+
"sparse",
|
| 35 |
+
"sparse",
|
| 36 |
+
"sparse",
|
| 37 |
+
"sparse",
|
| 38 |
+
"sparse",
|
| 39 |
+
"sparse",
|
| 40 |
+
"sparse",
|
| 41 |
+
"sparse",
|
| 42 |
+
"sparse",
|
| 43 |
+
"sparse",
|
| 44 |
+
"sparse",
|
| 45 |
+
"sparse",
|
| 46 |
+
"sparse",
|
| 47 |
+
"sparse",
|
| 48 |
+
"sparse",
|
| 49 |
+
"sparse",
|
| 50 |
+
"sparse",
|
| 51 |
+
"sparse",
|
| 52 |
+
"sparse",
|
| 53 |
+
"sparse",
|
| 54 |
+
"sparse",
|
| 55 |
+
"sparse",
|
| 56 |
+
"sparse",
|
| 57 |
+
"sparse",
|
| 58 |
+
"sparse",
|
| 59 |
+
"sparse",
|
| 60 |
+
"sparse",
|
| 61 |
+
"sparse",
|
| 62 |
+
"sparse",
|
| 63 |
+
"sparse",
|
| 64 |
+
"sparse",
|
| 65 |
+
"sparse",
|
| 66 |
+
"sparse",
|
| 67 |
+
"sparse",
|
| 68 |
+
"sparse",
|
| 69 |
+
"sparse",
|
| 70 |
+
"sparse",
|
| 71 |
+
"sparse",
|
| 72 |
+
"sparse",
|
| 73 |
+
"sparse",
|
| 74 |
+
"sparse"
|
| 75 |
+
],
|
| 76 |
+
"model_type": "glm4_moe_lite",
|
| 77 |
+
"moe_intermediate_size": 1536,
|
| 78 |
+
"n_group": 1,
|
| 79 |
+
"n_routed_experts": 64,
|
| 80 |
+
"n_shared_experts": 1,
|
| 81 |
+
"norm_topk_prob": true,
|
| 82 |
+
"num_attention_heads": 20,
|
| 83 |
+
"num_experts_per_tok": 4,
|
| 84 |
+
"num_hidden_layers": 47,
|
| 85 |
+
"num_key_value_heads": 20,
|
| 86 |
+
"num_nextn_predict_layers": 1,
|
| 87 |
+
"pad_token_id": 154820,
|
| 88 |
+
"q_lora_rank": 768,
|
| 89 |
+
"qk_head_dim": 256,
|
| 90 |
+
"qk_nope_head_dim": 192,
|
| 91 |
+
"qk_rope_head_dim": 64,
|
| 92 |
+
"rms_norm_eps": 1e-05,
|
| 93 |
+
"rope_interleave": true,
|
| 94 |
+
"rope_parameters": {
|
| 95 |
+
"rope_theta": 10000.0,
|
| 96 |
+
"rope_type": "default"
|
| 97 |
+
},
|
| 98 |
+
"rope_theta": 1000000,
|
| 99 |
+
"routed_scaling_factor": 1.8,
|
| 100 |
+
"scoring_func": "sigmoid",
|
| 101 |
+
"tie_word_embeddings": false,
|
| 102 |
+
"topk_group": 1,
|
| 103 |
+
"topk_method": "noaux_tc",
|
| 104 |
+
"transformers_version": "5.0.0",
|
| 105 |
+
"use_cache": true,
|
| 106 |
+
"v_head_dim": 256,
|
| 107 |
+
"vocab_size": 154880
|
| 108 |
+
}
|
configuration_glm_scm.py
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Configuration for GLM-4.7-Flash ScatterMoE (SCM) variant
|
| 2 |
+
# Based on Glm4MoeLiteConfig from transformers
|
| 3 |
+
|
| 4 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 5 |
+
from transformers.utils import logging
|
| 6 |
+
|
| 7 |
+
logger = logging.get_logger(__name__)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
class Glm4MoeLiteSCMConfig(PretrainedConfig):
|
| 11 |
+
model_type = "glm4_moe_lite"
|
| 12 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
| 13 |
+
|
| 14 |
+
def __init__(
|
| 15 |
+
self,
|
| 16 |
+
vocab_size=154880,
|
| 17 |
+
hidden_size=2048,
|
| 18 |
+
intermediate_size=10240,
|
| 19 |
+
moe_intermediate_size=1536,
|
| 20 |
+
num_hidden_layers=47,
|
| 21 |
+
num_attention_heads=20,
|
| 22 |
+
num_key_value_heads=20,
|
| 23 |
+
n_shared_experts=1,
|
| 24 |
+
n_routed_experts=64,
|
| 25 |
+
routed_scaling_factor=1.8,
|
| 26 |
+
kv_lora_rank=512,
|
| 27 |
+
q_lora_rank=768,
|
| 28 |
+
qk_rope_head_dim=64,
|
| 29 |
+
v_head_dim=256,
|
| 30 |
+
qk_nope_head_dim=192,
|
| 31 |
+
n_group=1,
|
| 32 |
+
topk_group=1,
|
| 33 |
+
num_experts_per_tok=4,
|
| 34 |
+
norm_topk_prob=True,
|
| 35 |
+
topk_method="noaux_tc",
|
| 36 |
+
first_k_dense_replace=1,
|
| 37 |
+
num_nextn_predict_layers=1,
|
| 38 |
+
hidden_act="silu",
|
| 39 |
+
max_position_embeddings=202752,
|
| 40 |
+
initializer_range=0.02,
|
| 41 |
+
rms_norm_eps=1e-5,
|
| 42 |
+
use_cache=True,
|
| 43 |
+
pad_token_id=None,
|
| 44 |
+
bos_token_id=0,
|
| 45 |
+
eos_token_id=1,
|
| 46 |
+
tie_word_embeddings=False,
|
| 47 |
+
rope_theta=1000000,
|
| 48 |
+
rope_scaling=None,
|
| 49 |
+
rope_interleave=True,
|
| 50 |
+
attention_bias=False,
|
| 51 |
+
attention_dropout=0.0,
|
| 52 |
+
scoring_func="sigmoid",
|
| 53 |
+
mlp_layer_types=None,
|
| 54 |
+
**kwargs,
|
| 55 |
+
):
|
| 56 |
+
self.vocab_size = vocab_size
|
| 57 |
+
self.max_position_embeddings = max_position_embeddings
|
| 58 |
+
self.hidden_size = hidden_size
|
| 59 |
+
self.intermediate_size = intermediate_size
|
| 60 |
+
self.moe_intermediate_size = moe_intermediate_size
|
| 61 |
+
self.num_hidden_layers = num_hidden_layers
|
| 62 |
+
self.num_attention_heads = num_attention_heads
|
| 63 |
+
self.num_key_value_heads = num_key_value_heads
|
| 64 |
+
self.n_shared_experts = n_shared_experts
|
| 65 |
+
self.n_routed_experts = n_routed_experts
|
| 66 |
+
self.routed_scaling_factor = routed_scaling_factor
|
| 67 |
+
self.kv_lora_rank = kv_lora_rank
|
| 68 |
+
self.q_lora_rank = q_lora_rank
|
| 69 |
+
self.qk_rope_head_dim = qk_rope_head_dim
|
| 70 |
+
self.v_head_dim = v_head_dim
|
| 71 |
+
self.qk_nope_head_dim = qk_nope_head_dim
|
| 72 |
+
self.qk_head_dim = qk_nope_head_dim + qk_rope_head_dim
|
| 73 |
+
self.head_dim = qk_rope_head_dim # Used for RoPE computation
|
| 74 |
+
self.n_group = n_group
|
| 75 |
+
self.topk_group = topk_group
|
| 76 |
+
self.num_experts_per_tok = num_experts_per_tok
|
| 77 |
+
self.norm_topk_prob = norm_topk_prob
|
| 78 |
+
self.topk_method = topk_method
|
| 79 |
+
self.first_k_dense_replace = first_k_dense_replace
|
| 80 |
+
self.num_nextn_predict_layers = num_nextn_predict_layers
|
| 81 |
+
self.hidden_act = hidden_act
|
| 82 |
+
self.initializer_range = initializer_range
|
| 83 |
+
self.rms_norm_eps = rms_norm_eps
|
| 84 |
+
self.use_cache = use_cache
|
| 85 |
+
self.rope_theta = rope_theta
|
| 86 |
+
self.rope_scaling = rope_scaling
|
| 87 |
+
self.rope_interleave = rope_interleave
|
| 88 |
+
self.attention_bias = attention_bias
|
| 89 |
+
self.attention_dropout = attention_dropout
|
| 90 |
+
self.scoring_func = scoring_func
|
| 91 |
+
|
| 92 |
+
# MLP layer types: first layer is dense, rest are sparse (MoE)
|
| 93 |
+
if mlp_layer_types is not None:
|
| 94 |
+
self.mlp_layer_types = mlp_layer_types
|
| 95 |
+
else:
|
| 96 |
+
self.mlp_layer_types = (
|
| 97 |
+
["dense"] * first_k_dense_replace
|
| 98 |
+
+ ["sparse"] * (num_hidden_layers - first_k_dense_replace)
|
| 99 |
+
)
|
| 100 |
+
|
| 101 |
+
super().__init__(
|
| 102 |
+
pad_token_id=pad_token_id,
|
| 103 |
+
bos_token_id=bos_token_id,
|
| 104 |
+
eos_token_id=eos_token_id,
|
| 105 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 106 |
+
**kwargs,
|
| 107 |
+
)
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
__all__ = ["Glm4MoeLiteSCMConfig"]
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
154820,
|
| 6 |
+
154827,
|
| 7 |
+
154829
|
| 8 |
+
],
|
| 9 |
+
"output_attentions": false,
|
| 10 |
+
"output_hidden_states": false,
|
| 11 |
+
"pad_token_id": 154820,
|
| 12 |
+
"transformers_version": "5.0.0",
|
| 13 |
+
"use_cache": true
|
| 14 |
+
}
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68f662181d6d33cb19b05d929b056d77b569cb68e802fdaeb0b1041b484a8e6b
|
| 3 |
+
size 49722148632
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c00c9624be6b5b7fb17864350302f91bf54db6ae93e0a85add59583c67ab500
|
| 3 |
+
size 10164736704
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,759 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_parameters": 29943390976,
|
| 4 |
+
"total_size": 59886793728
|
| 5 |
+
},
|
| 6 |
+
"weight_map": {
|
| 7 |
+
"lm_head.weight": "model-00001-of-00002.safetensors",
|
| 8 |
+
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
| 9 |
+
"model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 10 |
+
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 11 |
+
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 12 |
+
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 13 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 14 |
+
"model.layers.0.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 15 |
+
"model.layers.0.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 16 |
+
"model.layers.0.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 17 |
+
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 18 |
+
"model.layers.0.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 19 |
+
"model.layers.0.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 20 |
+
"model.layers.0.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 21 |
+
"model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 22 |
+
"model.layers.1.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 23 |
+
"model.layers.1.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 24 |
+
"model.layers.1.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 25 |
+
"model.layers.1.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 26 |
+
"model.layers.1.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 27 |
+
"model.layers.1.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 28 |
+
"model.layers.1.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 29 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 30 |
+
"model.layers.1.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 31 |
+
"model.layers.1.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 32 |
+
"model.layers.1.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 33 |
+
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 34 |
+
"model.layers.1.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 35 |
+
"model.layers.1.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 36 |
+
"model.layers.1.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 37 |
+
"model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 38 |
+
"model.layers.10.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 39 |
+
"model.layers.10.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 40 |
+
"model.layers.10.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 41 |
+
"model.layers.10.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 42 |
+
"model.layers.10.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 43 |
+
"model.layers.10.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 44 |
+
"model.layers.10.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 45 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 46 |
+
"model.layers.10.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 47 |
+
"model.layers.10.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 48 |
+
"model.layers.10.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 49 |
+
"model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 50 |
+
"model.layers.10.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 51 |
+
"model.layers.10.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 52 |
+
"model.layers.10.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 53 |
+
"model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 54 |
+
"model.layers.11.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 55 |
+
"model.layers.11.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 56 |
+
"model.layers.11.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 57 |
+
"model.layers.11.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 58 |
+
"model.layers.11.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 59 |
+
"model.layers.11.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 60 |
+
"model.layers.11.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 61 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 62 |
+
"model.layers.11.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 63 |
+
"model.layers.11.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 64 |
+
"model.layers.11.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 65 |
+
"model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 66 |
+
"model.layers.11.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 67 |
+
"model.layers.11.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 68 |
+
"model.layers.11.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 69 |
+
"model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 70 |
+
"model.layers.12.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 71 |
+
"model.layers.12.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 72 |
+
"model.layers.12.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 73 |
+
"model.layers.12.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 74 |
+
"model.layers.12.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 75 |
+
"model.layers.12.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 76 |
+
"model.layers.12.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 77 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 78 |
+
"model.layers.12.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 79 |
+
"model.layers.12.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 80 |
+
"model.layers.12.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 81 |
+
"model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 82 |
+
"model.layers.12.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 83 |
+
"model.layers.12.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 84 |
+
"model.layers.12.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 85 |
+
"model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 86 |
+
"model.layers.13.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 87 |
+
"model.layers.13.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 88 |
+
"model.layers.13.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 89 |
+
"model.layers.13.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 90 |
+
"model.layers.13.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 91 |
+
"model.layers.13.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 92 |
+
"model.layers.13.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 93 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 94 |
+
"model.layers.13.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 95 |
+
"model.layers.13.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 96 |
+
"model.layers.13.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 97 |
+
"model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 98 |
+
"model.layers.13.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 99 |
+
"model.layers.13.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 100 |
+
"model.layers.13.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 101 |
+
"model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 102 |
+
"model.layers.14.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 103 |
+
"model.layers.14.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 104 |
+
"model.layers.14.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 105 |
+
"model.layers.14.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 106 |
+
"model.layers.14.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 107 |
+
"model.layers.14.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 108 |
+
"model.layers.14.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 109 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 110 |
+
"model.layers.14.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 111 |
+
"model.layers.14.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 112 |
+
"model.layers.14.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 113 |
+
"model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 114 |
+
"model.layers.14.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 115 |
+
"model.layers.14.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 116 |
+
"model.layers.14.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 117 |
+
"model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 118 |
+
"model.layers.15.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 119 |
+
"model.layers.15.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 120 |
+
"model.layers.15.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 121 |
+
"model.layers.15.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 122 |
+
"model.layers.15.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 123 |
+
"model.layers.15.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 124 |
+
"model.layers.15.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 125 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 126 |
+
"model.layers.15.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 127 |
+
"model.layers.15.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 128 |
+
"model.layers.15.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 129 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 130 |
+
"model.layers.15.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 131 |
+
"model.layers.15.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 132 |
+
"model.layers.15.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 133 |
+
"model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 134 |
+
"model.layers.16.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 135 |
+
"model.layers.16.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 136 |
+
"model.layers.16.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 137 |
+
"model.layers.16.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 138 |
+
"model.layers.16.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 139 |
+
"model.layers.16.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 140 |
+
"model.layers.16.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 141 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 142 |
+
"model.layers.16.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 143 |
+
"model.layers.16.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 144 |
+
"model.layers.16.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 145 |
+
"model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 146 |
+
"model.layers.16.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 147 |
+
"model.layers.16.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 148 |
+
"model.layers.16.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 149 |
+
"model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 150 |
+
"model.layers.17.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 151 |
+
"model.layers.17.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 152 |
+
"model.layers.17.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 153 |
+
"model.layers.17.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 154 |
+
"model.layers.17.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 155 |
+
"model.layers.17.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 156 |
+
"model.layers.17.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 157 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 158 |
+
"model.layers.17.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 159 |
+
"model.layers.17.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 160 |
+
"model.layers.17.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 161 |
+
"model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 162 |
+
"model.layers.17.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 163 |
+
"model.layers.17.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 164 |
+
"model.layers.17.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 165 |
+
"model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 166 |
+
"model.layers.18.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 167 |
+
"model.layers.18.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 168 |
+
"model.layers.18.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 169 |
+
"model.layers.18.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 170 |
+
"model.layers.18.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 171 |
+
"model.layers.18.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 172 |
+
"model.layers.18.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 173 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 174 |
+
"model.layers.18.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 175 |
+
"model.layers.18.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 176 |
+
"model.layers.18.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 177 |
+
"model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 178 |
+
"model.layers.18.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 179 |
+
"model.layers.18.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 180 |
+
"model.layers.18.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 181 |
+
"model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 182 |
+
"model.layers.19.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 183 |
+
"model.layers.19.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 184 |
+
"model.layers.19.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 185 |
+
"model.layers.19.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 186 |
+
"model.layers.19.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 187 |
+
"model.layers.19.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 188 |
+
"model.layers.19.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 189 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 190 |
+
"model.layers.19.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 191 |
+
"model.layers.19.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 192 |
+
"model.layers.19.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 193 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 194 |
+
"model.layers.19.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 195 |
+
"model.layers.19.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 196 |
+
"model.layers.19.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 197 |
+
"model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 198 |
+
"model.layers.2.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 199 |
+
"model.layers.2.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 200 |
+
"model.layers.2.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 201 |
+
"model.layers.2.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 202 |
+
"model.layers.2.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 203 |
+
"model.layers.2.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 204 |
+
"model.layers.2.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 205 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 206 |
+
"model.layers.2.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 207 |
+
"model.layers.2.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 208 |
+
"model.layers.2.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 209 |
+
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 210 |
+
"model.layers.2.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 211 |
+
"model.layers.2.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 212 |
+
"model.layers.2.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 213 |
+
"model.layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 214 |
+
"model.layers.20.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 215 |
+
"model.layers.20.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 216 |
+
"model.layers.20.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 217 |
+
"model.layers.20.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 218 |
+
"model.layers.20.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 219 |
+
"model.layers.20.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 220 |
+
"model.layers.20.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 221 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 222 |
+
"model.layers.20.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 223 |
+
"model.layers.20.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 224 |
+
"model.layers.20.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 225 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 226 |
+
"model.layers.20.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 227 |
+
"model.layers.20.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 228 |
+
"model.layers.20.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 229 |
+
"model.layers.21.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 230 |
+
"model.layers.21.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 231 |
+
"model.layers.21.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 232 |
+
"model.layers.21.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 233 |
+
"model.layers.21.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 234 |
+
"model.layers.21.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 235 |
+
"model.layers.21.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 236 |
+
"model.layers.21.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 237 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 238 |
+
"model.layers.21.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 239 |
+
"model.layers.21.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 240 |
+
"model.layers.21.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 241 |
+
"model.layers.21.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 242 |
+
"model.layers.21.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 243 |
+
"model.layers.21.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 244 |
+
"model.layers.21.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 245 |
+
"model.layers.22.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 246 |
+
"model.layers.22.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 247 |
+
"model.layers.22.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 248 |
+
"model.layers.22.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 249 |
+
"model.layers.22.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 250 |
+
"model.layers.22.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 251 |
+
"model.layers.22.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 252 |
+
"model.layers.22.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 253 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 254 |
+
"model.layers.22.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 255 |
+
"model.layers.22.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 256 |
+
"model.layers.22.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 257 |
+
"model.layers.22.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 258 |
+
"model.layers.22.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 259 |
+
"model.layers.22.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 260 |
+
"model.layers.22.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 261 |
+
"model.layers.23.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 262 |
+
"model.layers.23.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 263 |
+
"model.layers.23.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 264 |
+
"model.layers.23.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 265 |
+
"model.layers.23.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 266 |
+
"model.layers.23.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 267 |
+
"model.layers.23.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 268 |
+
"model.layers.23.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 269 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 270 |
+
"model.layers.23.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 271 |
+
"model.layers.23.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 272 |
+
"model.layers.23.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 273 |
+
"model.layers.23.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 274 |
+
"model.layers.23.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 275 |
+
"model.layers.23.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 276 |
+
"model.layers.23.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 277 |
+
"model.layers.24.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 278 |
+
"model.layers.24.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 279 |
+
"model.layers.24.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 280 |
+
"model.layers.24.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 281 |
+
"model.layers.24.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 282 |
+
"model.layers.24.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 283 |
+
"model.layers.24.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 284 |
+
"model.layers.24.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 285 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 286 |
+
"model.layers.24.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 287 |
+
"model.layers.24.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 288 |
+
"model.layers.24.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 289 |
+
"model.layers.24.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 290 |
+
"model.layers.24.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 291 |
+
"model.layers.24.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 292 |
+
"model.layers.24.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 293 |
+
"model.layers.25.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 294 |
+
"model.layers.25.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 295 |
+
"model.layers.25.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 296 |
+
"model.layers.25.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 297 |
+
"model.layers.25.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 298 |
+
"model.layers.25.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 299 |
+
"model.layers.25.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 300 |
+
"model.layers.25.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 301 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 302 |
+
"model.layers.25.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 303 |
+
"model.layers.25.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 304 |
+
"model.layers.25.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 305 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 306 |
+
"model.layers.25.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 307 |
+
"model.layers.25.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 308 |
+
"model.layers.25.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 309 |
+
"model.layers.26.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 310 |
+
"model.layers.26.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 311 |
+
"model.layers.26.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 312 |
+
"model.layers.26.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 313 |
+
"model.layers.26.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 314 |
+
"model.layers.26.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 315 |
+
"model.layers.26.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 316 |
+
"model.layers.26.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 317 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 318 |
+
"model.layers.26.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 319 |
+
"model.layers.26.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 320 |
+
"model.layers.26.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 321 |
+
"model.layers.26.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 322 |
+
"model.layers.26.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 323 |
+
"model.layers.26.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 324 |
+
"model.layers.26.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 325 |
+
"model.layers.27.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 326 |
+
"model.layers.27.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 327 |
+
"model.layers.27.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 328 |
+
"model.layers.27.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 329 |
+
"model.layers.27.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 330 |
+
"model.layers.27.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 331 |
+
"model.layers.27.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 332 |
+
"model.layers.27.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 333 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 334 |
+
"model.layers.27.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 335 |
+
"model.layers.27.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 336 |
+
"model.layers.27.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 337 |
+
"model.layers.27.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 338 |
+
"model.layers.27.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 339 |
+
"model.layers.27.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 340 |
+
"model.layers.27.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 341 |
+
"model.layers.28.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 342 |
+
"model.layers.28.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 343 |
+
"model.layers.28.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 344 |
+
"model.layers.28.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 345 |
+
"model.layers.28.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 346 |
+
"model.layers.28.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 347 |
+
"model.layers.28.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 348 |
+
"model.layers.28.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 349 |
+
"model.layers.28.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 350 |
+
"model.layers.28.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 351 |
+
"model.layers.28.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 352 |
+
"model.layers.28.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 353 |
+
"model.layers.28.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 354 |
+
"model.layers.28.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 355 |
+
"model.layers.28.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 356 |
+
"model.layers.28.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 357 |
+
"model.layers.29.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 358 |
+
"model.layers.29.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 359 |
+
"model.layers.29.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 360 |
+
"model.layers.29.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 361 |
+
"model.layers.29.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 362 |
+
"model.layers.29.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 363 |
+
"model.layers.29.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 364 |
+
"model.layers.29.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 365 |
+
"model.layers.29.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 366 |
+
"model.layers.29.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 367 |
+
"model.layers.29.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 368 |
+
"model.layers.29.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 369 |
+
"model.layers.29.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 370 |
+
"model.layers.29.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 371 |
+
"model.layers.29.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 372 |
+
"model.layers.29.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 373 |
+
"model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 374 |
+
"model.layers.3.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 375 |
+
"model.layers.3.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 376 |
+
"model.layers.3.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 377 |
+
"model.layers.3.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 378 |
+
"model.layers.3.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 379 |
+
"model.layers.3.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 380 |
+
"model.layers.3.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 381 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 382 |
+
"model.layers.3.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 383 |
+
"model.layers.3.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 384 |
+
"model.layers.3.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 385 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 386 |
+
"model.layers.3.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 387 |
+
"model.layers.3.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 388 |
+
"model.layers.3.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 389 |
+
"model.layers.30.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 390 |
+
"model.layers.30.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 391 |
+
"model.layers.30.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 392 |
+
"model.layers.30.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 393 |
+
"model.layers.30.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 394 |
+
"model.layers.30.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 395 |
+
"model.layers.30.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 396 |
+
"model.layers.30.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 397 |
+
"model.layers.30.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 398 |
+
"model.layers.30.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 399 |
+
"model.layers.30.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 400 |
+
"model.layers.30.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 401 |
+
"model.layers.30.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 402 |
+
"model.layers.30.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 403 |
+
"model.layers.30.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 404 |
+
"model.layers.30.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 405 |
+
"model.layers.31.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 406 |
+
"model.layers.31.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 407 |
+
"model.layers.31.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 408 |
+
"model.layers.31.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 409 |
+
"model.layers.31.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 410 |
+
"model.layers.31.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 411 |
+
"model.layers.31.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 412 |
+
"model.layers.31.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 413 |
+
"model.layers.31.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 414 |
+
"model.layers.31.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 415 |
+
"model.layers.31.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 416 |
+
"model.layers.31.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 417 |
+
"model.layers.31.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 418 |
+
"model.layers.31.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 419 |
+
"model.layers.31.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 420 |
+
"model.layers.31.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 421 |
+
"model.layers.32.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 422 |
+
"model.layers.32.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 423 |
+
"model.layers.32.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 424 |
+
"model.layers.32.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 425 |
+
"model.layers.32.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 426 |
+
"model.layers.32.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 427 |
+
"model.layers.32.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 428 |
+
"model.layers.32.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 429 |
+
"model.layers.32.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 430 |
+
"model.layers.32.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 431 |
+
"model.layers.32.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 432 |
+
"model.layers.32.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 433 |
+
"model.layers.32.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 434 |
+
"model.layers.32.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 435 |
+
"model.layers.32.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 436 |
+
"model.layers.32.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 437 |
+
"model.layers.33.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 438 |
+
"model.layers.33.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 439 |
+
"model.layers.33.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 440 |
+
"model.layers.33.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 441 |
+
"model.layers.33.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 442 |
+
"model.layers.33.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 443 |
+
"model.layers.33.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 444 |
+
"model.layers.33.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 445 |
+
"model.layers.33.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 446 |
+
"model.layers.33.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 447 |
+
"model.layers.33.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 448 |
+
"model.layers.33.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 449 |
+
"model.layers.33.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 450 |
+
"model.layers.33.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 451 |
+
"model.layers.33.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 452 |
+
"model.layers.33.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 453 |
+
"model.layers.34.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 454 |
+
"model.layers.34.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 455 |
+
"model.layers.34.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 456 |
+
"model.layers.34.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 457 |
+
"model.layers.34.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 458 |
+
"model.layers.34.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 459 |
+
"model.layers.34.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 460 |
+
"model.layers.34.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 461 |
+
"model.layers.34.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 462 |
+
"model.layers.34.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 463 |
+
"model.layers.34.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 464 |
+
"model.layers.34.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 465 |
+
"model.layers.34.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 466 |
+
"model.layers.34.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 467 |
+
"model.layers.34.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 468 |
+
"model.layers.34.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 469 |
+
"model.layers.35.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 470 |
+
"model.layers.35.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 471 |
+
"model.layers.35.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 472 |
+
"model.layers.35.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 473 |
+
"model.layers.35.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 474 |
+
"model.layers.35.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 475 |
+
"model.layers.35.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 476 |
+
"model.layers.35.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 477 |
+
"model.layers.35.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 478 |
+
"model.layers.35.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 479 |
+
"model.layers.35.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 480 |
+
"model.layers.35.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 481 |
+
"model.layers.35.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 482 |
+
"model.layers.35.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 483 |
+
"model.layers.35.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 484 |
+
"model.layers.35.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 485 |
+
"model.layers.36.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 486 |
+
"model.layers.36.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 487 |
+
"model.layers.36.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 488 |
+
"model.layers.36.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 489 |
+
"model.layers.36.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 490 |
+
"model.layers.36.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 491 |
+
"model.layers.36.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 492 |
+
"model.layers.36.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 493 |
+
"model.layers.36.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 494 |
+
"model.layers.36.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 495 |
+
"model.layers.36.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 496 |
+
"model.layers.36.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 497 |
+
"model.layers.36.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 498 |
+
"model.layers.36.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 499 |
+
"model.layers.36.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 500 |
+
"model.layers.36.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 501 |
+
"model.layers.37.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 502 |
+
"model.layers.37.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 503 |
+
"model.layers.37.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 504 |
+
"model.layers.37.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 505 |
+
"model.layers.37.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 506 |
+
"model.layers.37.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 507 |
+
"model.layers.37.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 508 |
+
"model.layers.37.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 509 |
+
"model.layers.37.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 510 |
+
"model.layers.37.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 511 |
+
"model.layers.37.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 512 |
+
"model.layers.37.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 513 |
+
"model.layers.37.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 514 |
+
"model.layers.37.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 515 |
+
"model.layers.37.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 516 |
+
"model.layers.37.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 517 |
+
"model.layers.38.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 518 |
+
"model.layers.38.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 519 |
+
"model.layers.38.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 520 |
+
"model.layers.38.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 521 |
+
"model.layers.38.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 522 |
+
"model.layers.38.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 523 |
+
"model.layers.38.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 524 |
+
"model.layers.38.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 525 |
+
"model.layers.38.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 526 |
+
"model.layers.38.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 527 |
+
"model.layers.38.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 528 |
+
"model.layers.38.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 529 |
+
"model.layers.38.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 530 |
+
"model.layers.38.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 531 |
+
"model.layers.38.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 532 |
+
"model.layers.38.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 533 |
+
"model.layers.39.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 534 |
+
"model.layers.39.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 535 |
+
"model.layers.39.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 536 |
+
"model.layers.39.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 537 |
+
"model.layers.39.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 538 |
+
"model.layers.39.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 539 |
+
"model.layers.39.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 540 |
+
"model.layers.39.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 541 |
+
"model.layers.39.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 542 |
+
"model.layers.39.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 543 |
+
"model.layers.39.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 544 |
+
"model.layers.39.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 545 |
+
"model.layers.39.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 546 |
+
"model.layers.39.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 547 |
+
"model.layers.39.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 548 |
+
"model.layers.39.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 549 |
+
"model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 550 |
+
"model.layers.4.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 551 |
+
"model.layers.4.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 552 |
+
"model.layers.4.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 553 |
+
"model.layers.4.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 554 |
+
"model.layers.4.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 555 |
+
"model.layers.4.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 556 |
+
"model.layers.4.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 557 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 558 |
+
"model.layers.4.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 559 |
+
"model.layers.4.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 560 |
+
"model.layers.4.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 561 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 562 |
+
"model.layers.4.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 563 |
+
"model.layers.4.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 564 |
+
"model.layers.4.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 565 |
+
"model.layers.40.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 566 |
+
"model.layers.40.mlp.gate.e_score_correction_bias": "model-00002-of-00002.safetensors",
|
| 567 |
+
"model.layers.40.mlp.gate.weight": "model-00002-of-00002.safetensors",
|
| 568 |
+
"model.layers.40.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 569 |
+
"model.layers.40.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 570 |
+
"model.layers.40.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 571 |
+
"model.layers.40.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 572 |
+
"model.layers.40.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 573 |
+
"model.layers.40.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 574 |
+
"model.layers.40.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 575 |
+
"model.layers.40.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 576 |
+
"model.layers.40.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 577 |
+
"model.layers.40.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 578 |
+
"model.layers.40.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 579 |
+
"model.layers.40.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 580 |
+
"model.layers.40.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 581 |
+
"model.layers.41.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 582 |
+
"model.layers.41.mlp.gate.e_score_correction_bias": "model-00002-of-00002.safetensors",
|
| 583 |
+
"model.layers.41.mlp.gate.weight": "model-00002-of-00002.safetensors",
|
| 584 |
+
"model.layers.41.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 585 |
+
"model.layers.41.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 586 |
+
"model.layers.41.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 587 |
+
"model.layers.41.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 588 |
+
"model.layers.41.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 589 |
+
"model.layers.41.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 590 |
+
"model.layers.41.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 591 |
+
"model.layers.41.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 592 |
+
"model.layers.41.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 593 |
+
"model.layers.41.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 594 |
+
"model.layers.41.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 595 |
+
"model.layers.41.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 596 |
+
"model.layers.41.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 597 |
+
"model.layers.42.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 598 |
+
"model.layers.42.mlp.gate.e_score_correction_bias": "model-00002-of-00002.safetensors",
|
| 599 |
+
"model.layers.42.mlp.gate.weight": "model-00002-of-00002.safetensors",
|
| 600 |
+
"model.layers.42.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 601 |
+
"model.layers.42.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 602 |
+
"model.layers.42.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 603 |
+
"model.layers.42.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 604 |
+
"model.layers.42.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 605 |
+
"model.layers.42.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 606 |
+
"model.layers.42.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 607 |
+
"model.layers.42.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 608 |
+
"model.layers.42.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 609 |
+
"model.layers.42.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 610 |
+
"model.layers.42.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 611 |
+
"model.layers.42.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 612 |
+
"model.layers.42.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 613 |
+
"model.layers.43.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 614 |
+
"model.layers.43.mlp.gate.e_score_correction_bias": "model-00002-of-00002.safetensors",
|
| 615 |
+
"model.layers.43.mlp.gate.weight": "model-00002-of-00002.safetensors",
|
| 616 |
+
"model.layers.43.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 617 |
+
"model.layers.43.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 618 |
+
"model.layers.43.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 619 |
+
"model.layers.43.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 620 |
+
"model.layers.43.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 621 |
+
"model.layers.43.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 622 |
+
"model.layers.43.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 623 |
+
"model.layers.43.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 624 |
+
"model.layers.43.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 625 |
+
"model.layers.43.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 626 |
+
"model.layers.43.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 627 |
+
"model.layers.43.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 628 |
+
"model.layers.43.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 629 |
+
"model.layers.44.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 630 |
+
"model.layers.44.mlp.gate.e_score_correction_bias": "model-00002-of-00002.safetensors",
|
| 631 |
+
"model.layers.44.mlp.gate.weight": "model-00002-of-00002.safetensors",
|
| 632 |
+
"model.layers.44.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 633 |
+
"model.layers.44.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 634 |
+
"model.layers.44.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 635 |
+
"model.layers.44.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 636 |
+
"model.layers.44.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 637 |
+
"model.layers.44.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 638 |
+
"model.layers.44.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 639 |
+
"model.layers.44.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 640 |
+
"model.layers.44.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 641 |
+
"model.layers.44.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 642 |
+
"model.layers.44.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 643 |
+
"model.layers.44.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 644 |
+
"model.layers.44.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 645 |
+
"model.layers.45.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 646 |
+
"model.layers.45.mlp.gate.e_score_correction_bias": "model-00002-of-00002.safetensors",
|
| 647 |
+
"model.layers.45.mlp.gate.weight": "model-00002-of-00002.safetensors",
|
| 648 |
+
"model.layers.45.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 649 |
+
"model.layers.45.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 650 |
+
"model.layers.45.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 651 |
+
"model.layers.45.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 652 |
+
"model.layers.45.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 653 |
+
"model.layers.45.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 654 |
+
"model.layers.45.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 655 |
+
"model.layers.45.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 656 |
+
"model.layers.45.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 657 |
+
"model.layers.45.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 658 |
+
"model.layers.45.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 659 |
+
"model.layers.45.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 660 |
+
"model.layers.45.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 661 |
+
"model.layers.46.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 662 |
+
"model.layers.46.mlp.gate.e_score_correction_bias": "model-00002-of-00002.safetensors",
|
| 663 |
+
"model.layers.46.mlp.gate.weight": "model-00002-of-00002.safetensors",
|
| 664 |
+
"model.layers.46.mlp.moe_mlp.experts.weight": "model-00002-of-00002.safetensors",
|
| 665 |
+
"model.layers.46.mlp.moe_mlp.output_experts.weight": "model-00002-of-00002.safetensors",
|
| 666 |
+
"model.layers.46.mlp.shared_experts.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 667 |
+
"model.layers.46.mlp.shared_experts.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 668 |
+
"model.layers.46.mlp.shared_experts.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 669 |
+
"model.layers.46.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 670 |
+
"model.layers.46.self_attn.kv_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 671 |
+
"model.layers.46.self_attn.kv_a_proj_with_mqa.weight": "model-00002-of-00002.safetensors",
|
| 672 |
+
"model.layers.46.self_attn.kv_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 673 |
+
"model.layers.46.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 674 |
+
"model.layers.46.self_attn.q_a_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 675 |
+
"model.layers.46.self_attn.q_a_proj.weight": "model-00002-of-00002.safetensors",
|
| 676 |
+
"model.layers.46.self_attn.q_b_proj.weight": "model-00002-of-00002.safetensors",
|
| 677 |
+
"model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 678 |
+
"model.layers.5.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 679 |
+
"model.layers.5.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 680 |
+
"model.layers.5.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 681 |
+
"model.layers.5.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 682 |
+
"model.layers.5.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 683 |
+
"model.layers.5.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 684 |
+
"model.layers.5.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 685 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 686 |
+
"model.layers.5.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 687 |
+
"model.layers.5.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 688 |
+
"model.layers.5.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 689 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 690 |
+
"model.layers.5.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 691 |
+
"model.layers.5.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 692 |
+
"model.layers.5.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 693 |
+
"model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 694 |
+
"model.layers.6.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 695 |
+
"model.layers.6.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 696 |
+
"model.layers.6.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 697 |
+
"model.layers.6.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 698 |
+
"model.layers.6.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 699 |
+
"model.layers.6.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 700 |
+
"model.layers.6.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 701 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 702 |
+
"model.layers.6.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 703 |
+
"model.layers.6.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 704 |
+
"model.layers.6.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 705 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 706 |
+
"model.layers.6.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 707 |
+
"model.layers.6.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 708 |
+
"model.layers.6.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 709 |
+
"model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 710 |
+
"model.layers.7.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 711 |
+
"model.layers.7.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 712 |
+
"model.layers.7.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 713 |
+
"model.layers.7.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 714 |
+
"model.layers.7.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 715 |
+
"model.layers.7.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 716 |
+
"model.layers.7.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 717 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 718 |
+
"model.layers.7.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 719 |
+
"model.layers.7.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 720 |
+
"model.layers.7.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 721 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 722 |
+
"model.layers.7.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 723 |
+
"model.layers.7.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 724 |
+
"model.layers.7.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 725 |
+
"model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 726 |
+
"model.layers.8.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 727 |
+
"model.layers.8.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 728 |
+
"model.layers.8.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 729 |
+
"model.layers.8.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 730 |
+
"model.layers.8.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 731 |
+
"model.layers.8.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 732 |
+
"model.layers.8.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 733 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 734 |
+
"model.layers.8.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 735 |
+
"model.layers.8.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 736 |
+
"model.layers.8.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 737 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 738 |
+
"model.layers.8.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 739 |
+
"model.layers.8.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 740 |
+
"model.layers.8.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 741 |
+
"model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 742 |
+
"model.layers.9.mlp.gate.e_score_correction_bias": "model-00001-of-00002.safetensors",
|
| 743 |
+
"model.layers.9.mlp.gate.weight": "model-00001-of-00002.safetensors",
|
| 744 |
+
"model.layers.9.mlp.moe_mlp.experts.weight": "model-00001-of-00002.safetensors",
|
| 745 |
+
"model.layers.9.mlp.moe_mlp.output_experts.weight": "model-00001-of-00002.safetensors",
|
| 746 |
+
"model.layers.9.mlp.shared_experts.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 747 |
+
"model.layers.9.mlp.shared_experts.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 748 |
+
"model.layers.9.mlp.shared_experts.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 749 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 750 |
+
"model.layers.9.self_attn.kv_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 751 |
+
"model.layers.9.self_attn.kv_a_proj_with_mqa.weight": "model-00001-of-00002.safetensors",
|
| 752 |
+
"model.layers.9.self_attn.kv_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 753 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 754 |
+
"model.layers.9.self_attn.q_a_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 755 |
+
"model.layers.9.self_attn.q_a_proj.weight": "model-00001-of-00002.safetensors",
|
| 756 |
+
"model.layers.9.self_attn.q_b_proj.weight": "model-00001-of-00002.safetensors",
|
| 757 |
+
"model.norm.weight": "model-00002-of-00002.safetensors"
|
| 758 |
+
}
|
| 759 |
+
}
|
modeling_glm_scm.py
ADDED
|
@@ -0,0 +1,651 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# ScatterMoE (SCM) variant of GLM-4.7-Flash (Glm4MoeLite architecture)
|
| 3 |
+
# Based on transformers/models/glm4_moe_lite/modeling_glm4_moe_lite.py
|
| 4 |
+
# with fused expert kernels via scattermoe
|
| 5 |
+
#
|
| 6 |
+
# Copyright 2025 the HuggingFace Team. All rights reserved.
|
| 7 |
+
# Licensed under the Apache License, Version 2.0
|
| 8 |
+
|
| 9 |
+
import math
|
| 10 |
+
from typing import Optional, Tuple, Union, List
|
| 11 |
+
|
| 12 |
+
import torch
|
| 13 |
+
import torch.nn as nn
|
| 14 |
+
import torch.nn.functional as F
|
| 15 |
+
|
| 16 |
+
from transformers.activations import ACT2FN
|
| 17 |
+
from transformers.cache_utils import Cache, DynamicCache
|
| 18 |
+
from transformers.generation import GenerationMixin
|
| 19 |
+
from transformers.modeling_outputs import (
|
| 20 |
+
BaseModelOutputWithPast,
|
| 21 |
+
CausalLMOutputWithPast,
|
| 22 |
+
)
|
| 23 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 24 |
+
from transformers.utils import logging
|
| 25 |
+
|
| 26 |
+
import scattermoe
|
| 27 |
+
|
| 28 |
+
try:
|
| 29 |
+
from .configuration_glm_scm import Glm4MoeLiteSCMConfig
|
| 30 |
+
except ImportError:
|
| 31 |
+
from configuration_glm_scm import Glm4MoeLiteSCMConfig
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
logger = logging.get_logger(__name__)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class Glm4MoeLiteSCMRMSNorm(nn.Module):
|
| 38 |
+
def __init__(self, hidden_size, eps=1e-6):
|
| 39 |
+
super().__init__()
|
| 40 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 41 |
+
self.variance_epsilon = eps
|
| 42 |
+
|
| 43 |
+
def forward(self, hidden_states):
|
| 44 |
+
input_dtype = hidden_states.dtype
|
| 45 |
+
hidden_states = hidden_states.to(torch.float32)
|
| 46 |
+
variance = hidden_states.pow(2).mean(-1, keepdim=True)
|
| 47 |
+
hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
|
| 48 |
+
return self.weight * hidden_states.to(input_dtype)
|
| 49 |
+
|
| 50 |
+
def extra_repr(self):
|
| 51 |
+
return f"{tuple(self.weight.shape)}, eps={self.variance_epsilon}"
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
class Glm4MoeLiteSCMRotaryEmbedding(nn.Module):
|
| 55 |
+
def __init__(self, config: Glm4MoeLiteSCMConfig, device=None):
|
| 56 |
+
super().__init__()
|
| 57 |
+
self.config = config
|
| 58 |
+
self.max_seq_len_cached = config.max_position_embeddings
|
| 59 |
+
self.original_max_seq_len = config.max_position_embeddings
|
| 60 |
+
|
| 61 |
+
# Compute inverse frequencies
|
| 62 |
+
base = config.rope_theta
|
| 63 |
+
head_dim = config.head_dim # qk_rope_head_dim
|
| 64 |
+
dim = head_dim # partial_rotary_factor = 1.0
|
| 65 |
+
inv_freq = 1.0 / (base ** (torch.arange(0, dim, 2, dtype=torch.int64).to(device=device, dtype=torch.float) / dim))
|
| 66 |
+
self.register_buffer("inv_freq", inv_freq, persistent=False)
|
| 67 |
+
self.register_buffer("original_inv_freq", inv_freq.clone(), persistent=False)
|
| 68 |
+
self.attention_scaling = 1.0
|
| 69 |
+
|
| 70 |
+
@torch.no_grad()
|
| 71 |
+
def forward(self, x, position_ids=None):
|
| 72 |
+
if position_ids is None:
|
| 73 |
+
# Fallback
|
| 74 |
+
seq_len = x.shape[1] if x.dim() > 2 else x.shape[0]
|
| 75 |
+
position_ids = torch.arange(seq_len, device=x.device).unsqueeze(0)
|
| 76 |
+
|
| 77 |
+
inv_freq_expanded = self.inv_freq[None, :, None].float().expand(position_ids.shape[0], -1, 1).to(x.device)
|
| 78 |
+
position_ids_expanded = position_ids[:, None, :].float()
|
| 79 |
+
|
| 80 |
+
device_type = x.device.type if isinstance(x.device.type, str) and x.device.type != "mps" else "cpu"
|
| 81 |
+
with torch.autocast(device_type=device_type, enabled=False):
|
| 82 |
+
freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2)
|
| 83 |
+
emb = torch.cat((freqs, freqs), dim=-1)
|
| 84 |
+
cos = emb.cos() * self.attention_scaling
|
| 85 |
+
sin = emb.sin() * self.attention_scaling
|
| 86 |
+
|
| 87 |
+
return cos.to(dtype=x.dtype), sin.to(dtype=x.dtype)
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
def rotate_half(x):
|
| 91 |
+
x1 = x[..., : x.shape[-1] // 2]
|
| 92 |
+
x2 = x[..., x.shape[-1] // 2 :]
|
| 93 |
+
return torch.cat((-x2, x1), dim=-1)
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def apply_rotary_pos_emb(q, k, cos, sin, unsqueeze_dim=1):
|
| 97 |
+
cos = cos.unsqueeze(unsqueeze_dim)
|
| 98 |
+
sin = sin.unsqueeze(unsqueeze_dim)
|
| 99 |
+
q_embed = (q * cos) + (rotate_half(q) * sin)
|
| 100 |
+
k_embed = (k * cos) + (rotate_half(k) * sin)
|
| 101 |
+
return q_embed, k_embed
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
def apply_rotary_pos_emb_interleave(q, k, cos, sin, unsqueeze_dim=1):
|
| 105 |
+
"""Interleaved RoPE: reorder dimensions before applying standard rotation."""
|
| 106 |
+
cos = cos.unsqueeze(unsqueeze_dim)
|
| 107 |
+
sin = sin.unsqueeze(unsqueeze_dim)
|
| 108 |
+
|
| 109 |
+
b, h, s, d = q.shape
|
| 110 |
+
q = q.view(b, h, s, d // 2, 2).transpose(4, 3).reshape(b, h, s, d)
|
| 111 |
+
b, h, s, d = k.shape
|
| 112 |
+
k = k.view(b, h, s, d // 2, 2).transpose(4, 3).reshape(b, h, s, d)
|
| 113 |
+
|
| 114 |
+
q_embed = (q * cos) + (rotate_half(q) * sin)
|
| 115 |
+
k_embed = (k * cos) + (rotate_half(k) * sin)
|
| 116 |
+
return q_embed, k_embed
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def repeat_kv(hidden_states: torch.Tensor, n_rep: int) -> torch.Tensor:
|
| 120 |
+
batch, num_key_value_heads, slen, head_dim = hidden_states.shape
|
| 121 |
+
if n_rep == 1:
|
| 122 |
+
return hidden_states
|
| 123 |
+
hidden_states = hidden_states[:, :, None, :, :].expand(batch, num_key_value_heads, n_rep, slen, head_dim)
|
| 124 |
+
return hidden_states.reshape(batch, num_key_value_heads * n_rep, slen, head_dim)
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
def yarn_get_mscale(scale=1, mscale=1):
|
| 128 |
+
if scale <= 1:
|
| 129 |
+
return 1.0
|
| 130 |
+
return 0.1 * mscale * math.log(scale) + 1.0
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
class Glm4MoeLiteSCMAttention(nn.Module):
|
| 134 |
+
"""Multi-head Latent Attention (MLA) with LoRA-compressed KV cache."""
|
| 135 |
+
|
| 136 |
+
def __init__(self, config: Glm4MoeLiteSCMConfig, layer_idx: int):
|
| 137 |
+
super().__init__()
|
| 138 |
+
self.config = config
|
| 139 |
+
self.layer_idx = layer_idx
|
| 140 |
+
self.num_key_value_groups = config.num_attention_heads // config.num_key_value_heads
|
| 141 |
+
self.attention_dropout = config.attention_dropout
|
| 142 |
+
self.num_heads = config.num_attention_heads
|
| 143 |
+
|
| 144 |
+
self.q_lora_rank = config.q_lora_rank
|
| 145 |
+
self.qk_rope_head_dim = config.qk_rope_head_dim
|
| 146 |
+
self.kv_lora_rank = config.kv_lora_rank
|
| 147 |
+
self.v_head_dim = config.v_head_dim
|
| 148 |
+
self.qk_nope_head_dim = config.qk_nope_head_dim
|
| 149 |
+
self.qk_head_dim = config.qk_head_dim
|
| 150 |
+
|
| 151 |
+
self.is_causal = True
|
| 152 |
+
|
| 153 |
+
if self.q_lora_rank is None:
|
| 154 |
+
self.q_proj = nn.Linear(config.hidden_size, self.num_heads * self.qk_head_dim, bias=False)
|
| 155 |
+
else:
|
| 156 |
+
self.q_a_proj = nn.Linear(config.hidden_size, config.q_lora_rank, bias=config.attention_bias)
|
| 157 |
+
self.q_a_layernorm = Glm4MoeLiteSCMRMSNorm(config.q_lora_rank)
|
| 158 |
+
self.q_b_proj = nn.Linear(config.q_lora_rank, self.num_heads * self.qk_head_dim, bias=False)
|
| 159 |
+
|
| 160 |
+
self.kv_a_proj_with_mqa = nn.Linear(
|
| 161 |
+
config.hidden_size, self.kv_lora_rank + self.qk_rope_head_dim, bias=config.attention_bias,
|
| 162 |
+
)
|
| 163 |
+
self.kv_a_layernorm = Glm4MoeLiteSCMRMSNorm(self.kv_lora_rank)
|
| 164 |
+
self.kv_b_proj = nn.Linear(
|
| 165 |
+
self.kv_lora_rank, self.num_heads * (self.qk_nope_head_dim + self.v_head_dim), bias=False,
|
| 166 |
+
)
|
| 167 |
+
self.o_proj = nn.Linear(self.num_heads * self.v_head_dim, config.hidden_size, bias=config.attention_bias)
|
| 168 |
+
|
| 169 |
+
self.scaling = self.qk_head_dim ** (-0.5)
|
| 170 |
+
if config.rope_scaling is not None and isinstance(config.rope_scaling, dict) and "factor" in config.rope_scaling:
|
| 171 |
+
mscale_all_dim = config.rope_scaling.get("mscale_all_dim", 0)
|
| 172 |
+
scaling_factor = config.rope_scaling["factor"]
|
| 173 |
+
if mscale_all_dim:
|
| 174 |
+
mscale = yarn_get_mscale(scaling_factor, mscale_all_dim)
|
| 175 |
+
self.scaling = self.scaling * mscale * mscale
|
| 176 |
+
|
| 177 |
+
def forward(
|
| 178 |
+
self,
|
| 179 |
+
hidden_states: torch.Tensor,
|
| 180 |
+
position_embeddings: Tuple[torch.Tensor, torch.Tensor],
|
| 181 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 182 |
+
past_key_values: Optional[Cache] = None,
|
| 183 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 184 |
+
**kwargs,
|
| 185 |
+
) -> Tuple[torch.Tensor, Optional[torch.Tensor]]:
|
| 186 |
+
batch_size, seq_length = hidden_states.shape[:-1]
|
| 187 |
+
query_shape = (batch_size, seq_length, -1, self.qk_head_dim)
|
| 188 |
+
key_shape = (batch_size, seq_length, -1, self.qk_nope_head_dim + self.v_head_dim)
|
| 189 |
+
|
| 190 |
+
if self.q_lora_rank is None:
|
| 191 |
+
q_states = self.q_proj(hidden_states)
|
| 192 |
+
else:
|
| 193 |
+
q_states = self.q_b_proj(self.q_a_layernorm(self.q_a_proj(hidden_states)))
|
| 194 |
+
q_states = q_states.view(query_shape).transpose(1, 2)
|
| 195 |
+
q_pass, q_rot = torch.split(q_states, [self.qk_nope_head_dim, self.qk_rope_head_dim], dim=-1)
|
| 196 |
+
|
| 197 |
+
compressed_kv = self.kv_a_proj_with_mqa(hidden_states)
|
| 198 |
+
k_pass, k_rot = torch.split(compressed_kv, [self.kv_lora_rank, self.qk_rope_head_dim], dim=-1)
|
| 199 |
+
|
| 200 |
+
k_pass = self.kv_b_proj(self.kv_a_layernorm(k_pass)).view(key_shape).transpose(1, 2)
|
| 201 |
+
k_pass, value_states = torch.split(k_pass, [self.qk_nope_head_dim, self.v_head_dim], dim=-1)
|
| 202 |
+
|
| 203 |
+
k_rot = k_rot.view(batch_size, 1, seq_length, self.qk_rope_head_dim)
|
| 204 |
+
|
| 205 |
+
cos, sin = position_embeddings
|
| 206 |
+
if getattr(self.config, "rope_interleave", True):
|
| 207 |
+
q_rot, k_rot = apply_rotary_pos_emb_interleave(q_rot, k_rot, cos, sin)
|
| 208 |
+
else:
|
| 209 |
+
q_rot, k_rot = apply_rotary_pos_emb(q_rot, k_rot, cos, sin)
|
| 210 |
+
k_rot = k_rot.expand(*k_pass.shape[:-1], -1)
|
| 211 |
+
|
| 212 |
+
query_states = torch.cat((q_pass, q_rot), dim=-1)
|
| 213 |
+
key_states = torch.cat((k_pass, k_rot), dim=-1)
|
| 214 |
+
|
| 215 |
+
if past_key_values is not None:
|
| 216 |
+
cache_kwargs = {"sin": sin, "cos": cos, "cache_position": cache_position}
|
| 217 |
+
key_states, value_states = past_key_values.update(key_states, value_states, self.layer_idx, cache_kwargs)
|
| 218 |
+
|
| 219 |
+
# Eager attention
|
| 220 |
+
key_states_rep = repeat_kv(key_states, self.num_key_value_groups)
|
| 221 |
+
value_states_rep = repeat_kv(value_states, self.num_key_value_groups)
|
| 222 |
+
|
| 223 |
+
attn_weights = torch.matmul(query_states, key_states_rep.transpose(2, 3)) * self.scaling
|
| 224 |
+
if attention_mask is not None:
|
| 225 |
+
causal_mask = attention_mask[:, :, :, :key_states_rep.shape[-2]]
|
| 226 |
+
attn_weights = attn_weights + causal_mask
|
| 227 |
+
|
| 228 |
+
attn_weights = nn.functional.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query_states.dtype)
|
| 229 |
+
attn_weights = nn.functional.dropout(attn_weights, p=0.0 if not self.training else self.attention_dropout, training=self.training)
|
| 230 |
+
attn_output = torch.matmul(attn_weights, value_states_rep)
|
| 231 |
+
attn_output = attn_output.transpose(1, 2).contiguous()
|
| 232 |
+
|
| 233 |
+
attn_output = attn_output.reshape(batch_size, seq_length, -1).contiguous()
|
| 234 |
+
attn_output = self.o_proj(attn_output)
|
| 235 |
+
return attn_output, attn_weights
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
class Glm4MoeLiteSCMMLP(nn.Module):
|
| 239 |
+
def __init__(self, config, intermediate_size=None):
|
| 240 |
+
super().__init__()
|
| 241 |
+
self.config = config
|
| 242 |
+
self.hidden_size = config.hidden_size
|
| 243 |
+
self.intermediate_size = config.intermediate_size if intermediate_size is None else intermediate_size
|
| 244 |
+
self.gate_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 245 |
+
self.up_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 246 |
+
self.down_proj = nn.Linear(self.intermediate_size, self.hidden_size, bias=False)
|
| 247 |
+
self.act_fn = ACT2FN[config.hidden_act]
|
| 248 |
+
|
| 249 |
+
def forward(self, x):
|
| 250 |
+
return self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
class Glm4MoeLiteSCMTopkRouter(nn.Module):
|
| 254 |
+
def __init__(self, config: Glm4MoeLiteSCMConfig):
|
| 255 |
+
super().__init__()
|
| 256 |
+
self.config = config
|
| 257 |
+
self.top_k = config.num_experts_per_tok
|
| 258 |
+
self.n_routed_experts = config.n_routed_experts
|
| 259 |
+
self.routed_scaling_factor = config.routed_scaling_factor
|
| 260 |
+
self.n_group = config.n_group
|
| 261 |
+
self.topk_group = config.topk_group
|
| 262 |
+
self.norm_topk_prob = config.norm_topk_prob
|
| 263 |
+
|
| 264 |
+
self.weight = nn.Parameter(torch.empty((self.n_routed_experts, config.hidden_size)))
|
| 265 |
+
self.register_buffer("e_score_correction_bias", torch.zeros((self.n_routed_experts), dtype=torch.float32))
|
| 266 |
+
|
| 267 |
+
def forward(self, hidden_states):
|
| 268 |
+
hidden_states = hidden_states.view(-1, self.config.hidden_size)
|
| 269 |
+
router_logits = F.linear(hidden_states.type(torch.float32), self.weight.type(torch.float32))
|
| 270 |
+
return router_logits
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
class Glm4MoeLiteSCMMoE(nn.Module):
|
| 274 |
+
"""ScatterMoE variant: fused expert computation via Triton kernels."""
|
| 275 |
+
|
| 276 |
+
def __init__(self, config):
|
| 277 |
+
super().__init__()
|
| 278 |
+
self.config = config
|
| 279 |
+
self.gate = Glm4MoeLiteSCMTopkRouter(config)
|
| 280 |
+
|
| 281 |
+
# ScatterMoE fused experts
|
| 282 |
+
self.moe_mlp = scattermoe.mlp.GLUMLP(
|
| 283 |
+
input_size=config.hidden_size,
|
| 284 |
+
hidden_size=config.moe_intermediate_size,
|
| 285 |
+
num_experts=config.n_routed_experts,
|
| 286 |
+
top_k=config.num_experts_per_tok,
|
| 287 |
+
activation=ACT2FN[config.hidden_act],
|
| 288 |
+
)
|
| 289 |
+
|
| 290 |
+
self.shared_experts = Glm4MoeLiteSCMMLP(
|
| 291 |
+
config=config, intermediate_size=config.moe_intermediate_size * config.n_shared_experts,
|
| 292 |
+
)
|
| 293 |
+
|
| 294 |
+
self.n_routed_experts = config.n_routed_experts
|
| 295 |
+
self.n_group = config.n_group
|
| 296 |
+
self.topk_group = config.topk_group
|
| 297 |
+
self.norm_topk_prob = config.norm_topk_prob
|
| 298 |
+
self.routed_scaling_factor = config.routed_scaling_factor
|
| 299 |
+
self.top_k = config.num_experts_per_tok
|
| 300 |
+
|
| 301 |
+
def route_tokens_to_experts(self, router_logits):
|
| 302 |
+
router_logits = router_logits.sigmoid()
|
| 303 |
+
router_logits_for_choice = router_logits + self.gate.e_score_correction_bias
|
| 304 |
+
group_scores = (
|
| 305 |
+
router_logits_for_choice.view(-1, self.n_group, self.n_routed_experts // self.n_group)
|
| 306 |
+
.topk(2, dim=-1)[0]
|
| 307 |
+
.sum(dim=-1)
|
| 308 |
+
)
|
| 309 |
+
group_idx = torch.topk(group_scores, k=self.topk_group, dim=-1, sorted=False)[1]
|
| 310 |
+
group_mask = torch.zeros_like(group_scores)
|
| 311 |
+
group_mask.scatter_(1, group_idx, 1)
|
| 312 |
+
score_mask = (
|
| 313 |
+
group_mask.unsqueeze(-1)
|
| 314 |
+
.expand(-1, self.n_group, self.n_routed_experts // self.n_group)
|
| 315 |
+
.reshape(-1, self.n_routed_experts)
|
| 316 |
+
)
|
| 317 |
+
scores_for_choice = router_logits_for_choice.masked_fill(~score_mask.bool(), 0.0)
|
| 318 |
+
topk_indices = torch.topk(scores_for_choice, k=self.top_k, dim=-1, sorted=False)[1]
|
| 319 |
+
topk_weights = router_logits.gather(1, topk_indices)
|
| 320 |
+
if self.norm_topk_prob:
|
| 321 |
+
denominator = topk_weights.sum(dim=-1, keepdim=True) + 1e-20
|
| 322 |
+
topk_weights /= denominator
|
| 323 |
+
topk_weights = topk_weights * self.routed_scaling_factor
|
| 324 |
+
return topk_indices, topk_weights
|
| 325 |
+
|
| 326 |
+
def forward(self, hidden_states):
|
| 327 |
+
residuals = hidden_states
|
| 328 |
+
orig_shape = hidden_states.shape
|
| 329 |
+
router_logits = self.gate(hidden_states)
|
| 330 |
+
topk_indices, topk_weights = self.route_tokens_to_experts(router_logits)
|
| 331 |
+
hidden_states = hidden_states.view(-1, hidden_states.shape[-1])
|
| 332 |
+
|
| 333 |
+
# ScatterMoE forward: fused expert computation via Triton kernels
|
| 334 |
+
hidden_states = self.moe_mlp(hidden_states, topk_weights.to(hidden_states.dtype), topk_indices)
|
| 335 |
+
hidden_states = hidden_states.view(*orig_shape)
|
| 336 |
+
|
| 337 |
+
hidden_states = hidden_states + self.shared_experts(residuals)
|
| 338 |
+
return hidden_states
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
class Glm4MoeLiteSCMDecoderLayer(nn.Module):
|
| 342 |
+
def __init__(self, config: Glm4MoeLiteSCMConfig, layer_idx: int):
|
| 343 |
+
super().__init__()
|
| 344 |
+
self.hidden_size = config.hidden_size
|
| 345 |
+
self.self_attn = Glm4MoeLiteSCMAttention(config, layer_idx)
|
| 346 |
+
|
| 347 |
+
if config.mlp_layer_types[layer_idx] == "sparse":
|
| 348 |
+
self.mlp = Glm4MoeLiteSCMMoE(config)
|
| 349 |
+
else:
|
| 350 |
+
self.mlp = Glm4MoeLiteSCMMLP(config)
|
| 351 |
+
|
| 352 |
+
self.input_layernorm = Glm4MoeLiteSCMRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 353 |
+
self.post_attention_layernorm = Glm4MoeLiteSCMRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 354 |
+
|
| 355 |
+
def forward(
|
| 356 |
+
self,
|
| 357 |
+
hidden_states: torch.Tensor,
|
| 358 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 359 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 360 |
+
past_key_values: Optional[Cache] = None,
|
| 361 |
+
use_cache: Optional[bool] = False,
|
| 362 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 363 |
+
position_embeddings: Optional[Tuple[torch.Tensor, torch.Tensor]] = None,
|
| 364 |
+
**kwargs,
|
| 365 |
+
) -> torch.Tensor:
|
| 366 |
+
residual = hidden_states
|
| 367 |
+
hidden_states = self.input_layernorm(hidden_states)
|
| 368 |
+
hidden_states, _ = self.self_attn(
|
| 369 |
+
hidden_states=hidden_states,
|
| 370 |
+
attention_mask=attention_mask,
|
| 371 |
+
position_ids=position_ids,
|
| 372 |
+
past_key_values=past_key_values,
|
| 373 |
+
use_cache=use_cache,
|
| 374 |
+
cache_position=cache_position,
|
| 375 |
+
position_embeddings=position_embeddings,
|
| 376 |
+
**kwargs,
|
| 377 |
+
)
|
| 378 |
+
hidden_states = residual + hidden_states
|
| 379 |
+
|
| 380 |
+
residual = hidden_states
|
| 381 |
+
hidden_states = self.post_attention_layernorm(hidden_states)
|
| 382 |
+
hidden_states = self.mlp(hidden_states)
|
| 383 |
+
hidden_states = residual + hidden_states
|
| 384 |
+
return hidden_states
|
| 385 |
+
|
| 386 |
+
|
| 387 |
+
class Glm4MoeLiteSCMPreTrainedModel(PreTrainedModel):
|
| 388 |
+
config_class = Glm4MoeLiteSCMConfig
|
| 389 |
+
base_model_prefix = "model"
|
| 390 |
+
supports_gradient_checkpointing = True
|
| 391 |
+
_no_split_modules = ["Glm4MoeLiteSCMDecoderLayer"]
|
| 392 |
+
_skip_keys_device_placement = ["past_key_values"]
|
| 393 |
+
_supports_flash_attn = True
|
| 394 |
+
_supports_sdpa = True
|
| 395 |
+
_supports_cache_class = True
|
| 396 |
+
_keep_in_fp32_modules = ["e_score_correction_bias"]
|
| 397 |
+
|
| 398 |
+
def _init_weights(self, module):
|
| 399 |
+
std = self.config.initializer_range
|
| 400 |
+
if isinstance(module, nn.Linear):
|
| 401 |
+
module.weight.data.normal_(mean=0.0, std=std)
|
| 402 |
+
if module.bias is not None:
|
| 403 |
+
module.bias.data.zero_()
|
| 404 |
+
elif isinstance(module, nn.Embedding):
|
| 405 |
+
module.weight.data.normal_(mean=0.0, std=std)
|
| 406 |
+
if module.padding_idx is not None:
|
| 407 |
+
module.weight.data[module.padding_idx].zero_()
|
| 408 |
+
elif isinstance(module, Glm4MoeLiteSCMTopkRouter):
|
| 409 |
+
module.weight.data.normal_(mean=0.0, std=std)
|
| 410 |
+
module.e_score_correction_bias.zero_()
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
class Glm4MoeLiteSCMModel(Glm4MoeLiteSCMPreTrainedModel):
|
| 414 |
+
_keys_to_ignore_on_load_unexpected = [r"model\.layers\.47.*"]
|
| 415 |
+
|
| 416 |
+
def __init__(self, config: Glm4MoeLiteSCMConfig):
|
| 417 |
+
super().__init__(config)
|
| 418 |
+
self.padding_idx = config.pad_token_id
|
| 419 |
+
self.vocab_size = config.vocab_size
|
| 420 |
+
|
| 421 |
+
self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
|
| 422 |
+
self.layers = nn.ModuleList(
|
| 423 |
+
[Glm4MoeLiteSCMDecoderLayer(config, layer_idx) for layer_idx in range(config.num_hidden_layers)]
|
| 424 |
+
)
|
| 425 |
+
self.norm = Glm4MoeLiteSCMRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 426 |
+
self.rotary_emb = Glm4MoeLiteSCMRotaryEmbedding(config=config)
|
| 427 |
+
self.gradient_checkpointing = False
|
| 428 |
+
self.post_init()
|
| 429 |
+
|
| 430 |
+
def get_input_embeddings(self):
|
| 431 |
+
return self.embed_tokens
|
| 432 |
+
|
| 433 |
+
def set_input_embeddings(self, value):
|
| 434 |
+
self.embed_tokens = value
|
| 435 |
+
|
| 436 |
+
def _prepare_4d_causal_attention_mask(self, attention_mask, input_shape, inputs_embeds, past_key_values_length):
|
| 437 |
+
"""Create 4D causal mask."""
|
| 438 |
+
batch_size, seq_length = input_shape
|
| 439 |
+
dtype = inputs_embeds.dtype
|
| 440 |
+
device = inputs_embeds.device
|
| 441 |
+
|
| 442 |
+
# Create causal mask
|
| 443 |
+
if seq_length > 1:
|
| 444 |
+
causal_mask = torch.full((seq_length, seq_length), torch.finfo(dtype).min, device=device, dtype=dtype)
|
| 445 |
+
causal_mask = torch.triu(causal_mask, diagonal=1)
|
| 446 |
+
if past_key_values_length > 0:
|
| 447 |
+
causal_mask = torch.cat([
|
| 448 |
+
torch.zeros(seq_length, past_key_values_length, device=device, dtype=dtype),
|
| 449 |
+
causal_mask,
|
| 450 |
+
], dim=-1)
|
| 451 |
+
else:
|
| 452 |
+
total_length = past_key_values_length + seq_length
|
| 453 |
+
causal_mask = torch.zeros(1, total_length, device=device, dtype=dtype)
|
| 454 |
+
|
| 455 |
+
causal_mask = causal_mask[None, None, :, :].expand(batch_size, 1, -1, -1)
|
| 456 |
+
|
| 457 |
+
if attention_mask is not None:
|
| 458 |
+
# Expand attention mask
|
| 459 |
+
expanded_mask = attention_mask[:, None, None, :].to(dtype)
|
| 460 |
+
expanded_mask = (1.0 - expanded_mask) * torch.finfo(dtype).min
|
| 461 |
+
total_length = past_key_values_length + seq_length
|
| 462 |
+
if expanded_mask.shape[-1] < total_length:
|
| 463 |
+
expanded_mask = F.pad(expanded_mask, (total_length - expanded_mask.shape[-1], 0))
|
| 464 |
+
causal_mask = causal_mask + expanded_mask
|
| 465 |
+
|
| 466 |
+
return causal_mask
|
| 467 |
+
|
| 468 |
+
def forward(
|
| 469 |
+
self,
|
| 470 |
+
input_ids: Optional[torch.LongTensor] = None,
|
| 471 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 472 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 473 |
+
past_key_values: Optional[Cache] = None,
|
| 474 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 475 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 476 |
+
use_cache: Optional[bool] = None,
|
| 477 |
+
output_attentions: Optional[bool] = None,
|
| 478 |
+
output_hidden_states: Optional[bool] = None,
|
| 479 |
+
return_dict: Optional[bool] = None,
|
| 480 |
+
**kwargs,
|
| 481 |
+
) -> Union[Tuple, BaseModelOutputWithPast]:
|
| 482 |
+
output_hidden_states = output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 483 |
+
use_cache = use_cache if use_cache is not None else self.config.use_cache
|
| 484 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 485 |
+
|
| 486 |
+
if (input_ids is None) ^ (inputs_embeds is not None):
|
| 487 |
+
raise ValueError("You must specify exactly one of input_ids or inputs_embeds")
|
| 488 |
+
|
| 489 |
+
if inputs_embeds is None:
|
| 490 |
+
inputs_embeds = self.embed_tokens(input_ids)
|
| 491 |
+
|
| 492 |
+
batch_size, seq_length = inputs_embeds.shape[:2]
|
| 493 |
+
|
| 494 |
+
if use_cache and past_key_values is None:
|
| 495 |
+
past_key_values = DynamicCache()
|
| 496 |
+
|
| 497 |
+
past_key_values_length = 0
|
| 498 |
+
if past_key_values is not None:
|
| 499 |
+
past_key_values_length = past_key_values.get_seq_length()
|
| 500 |
+
|
| 501 |
+
if cache_position is None:
|
| 502 |
+
cache_position = torch.arange(
|
| 503 |
+
past_key_values_length, past_key_values_length + seq_length, device=inputs_embeds.device,
|
| 504 |
+
)
|
| 505 |
+
if position_ids is None:
|
| 506 |
+
position_ids = cache_position.unsqueeze(0)
|
| 507 |
+
|
| 508 |
+
# Create causal mask
|
| 509 |
+
causal_mask = self._prepare_4d_causal_attention_mask(
|
| 510 |
+
attention_mask, (batch_size, seq_length), inputs_embeds, past_key_values_length,
|
| 511 |
+
)
|
| 512 |
+
|
| 513 |
+
hidden_states = inputs_embeds
|
| 514 |
+
position_embeddings = self.rotary_emb(hidden_states, position_ids=position_ids)
|
| 515 |
+
|
| 516 |
+
all_hidden_states = () if output_hidden_states else None
|
| 517 |
+
|
| 518 |
+
for decoder_layer in self.layers[:self.config.num_hidden_layers]:
|
| 519 |
+
if output_hidden_states:
|
| 520 |
+
all_hidden_states += (hidden_states,)
|
| 521 |
+
|
| 522 |
+
if self.gradient_checkpointing and self.training:
|
| 523 |
+
hidden_states = torch.utils.checkpoint.checkpoint(
|
| 524 |
+
decoder_layer.__call__,
|
| 525 |
+
hidden_states,
|
| 526 |
+
causal_mask,
|
| 527 |
+
position_ids,
|
| 528 |
+
past_key_values,
|
| 529 |
+
use_cache,
|
| 530 |
+
cache_position,
|
| 531 |
+
position_embeddings,
|
| 532 |
+
use_reentrant=False,
|
| 533 |
+
)
|
| 534 |
+
else:
|
| 535 |
+
hidden_states = decoder_layer(
|
| 536 |
+
hidden_states,
|
| 537 |
+
attention_mask=causal_mask,
|
| 538 |
+
position_embeddings=position_embeddings,
|
| 539 |
+
position_ids=position_ids,
|
| 540 |
+
past_key_values=past_key_values,
|
| 541 |
+
use_cache=use_cache,
|
| 542 |
+
cache_position=cache_position,
|
| 543 |
+
**kwargs,
|
| 544 |
+
)
|
| 545 |
+
|
| 546 |
+
hidden_states = self.norm(hidden_states)
|
| 547 |
+
|
| 548 |
+
if output_hidden_states:
|
| 549 |
+
all_hidden_states += (hidden_states,)
|
| 550 |
+
|
| 551 |
+
if not return_dict:
|
| 552 |
+
return tuple(v for v in [hidden_states, past_key_values, all_hidden_states] if v is not None)
|
| 553 |
+
return BaseModelOutputWithPast(
|
| 554 |
+
last_hidden_state=hidden_states,
|
| 555 |
+
past_key_values=past_key_values,
|
| 556 |
+
hidden_states=all_hidden_states,
|
| 557 |
+
)
|
| 558 |
+
|
| 559 |
+
|
| 560 |
+
class Glm4MoeLiteSCMForCausalLM(Glm4MoeLiteSCMPreTrainedModel, GenerationMixin):
|
| 561 |
+
_tied_weights_keys = {"lm_head.weight": "model.embed_tokens.weight"}
|
| 562 |
+
|
| 563 |
+
def __init__(self, config):
|
| 564 |
+
super().__init__(config)
|
| 565 |
+
self.model = Glm4MoeLiteSCMModel(config)
|
| 566 |
+
self.vocab_size = config.vocab_size
|
| 567 |
+
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
|
| 568 |
+
self.post_init()
|
| 569 |
+
|
| 570 |
+
def get_input_embeddings(self):
|
| 571 |
+
return self.model.embed_tokens
|
| 572 |
+
|
| 573 |
+
def set_input_embeddings(self, value):
|
| 574 |
+
self.model.embed_tokens = value
|
| 575 |
+
|
| 576 |
+
def get_output_embeddings(self):
|
| 577 |
+
return self.lm_head
|
| 578 |
+
|
| 579 |
+
def set_output_embeddings(self, new_embeddings):
|
| 580 |
+
self.lm_head = new_embeddings
|
| 581 |
+
|
| 582 |
+
def set_decoder(self, decoder):
|
| 583 |
+
self.model = decoder
|
| 584 |
+
|
| 585 |
+
def get_decoder(self):
|
| 586 |
+
return self.model
|
| 587 |
+
|
| 588 |
+
def forward(
|
| 589 |
+
self,
|
| 590 |
+
input_ids: Optional[torch.LongTensor] = None,
|
| 591 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 592 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 593 |
+
past_key_values: Optional[Cache] = None,
|
| 594 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 595 |
+
labels: Optional[torch.LongTensor] = None,
|
| 596 |
+
use_cache: Optional[bool] = None,
|
| 597 |
+
cache_position: Optional[torch.LongTensor] = None,
|
| 598 |
+
output_attentions: Optional[bool] = None,
|
| 599 |
+
output_hidden_states: Optional[bool] = None,
|
| 600 |
+
return_dict: Optional[bool] = None,
|
| 601 |
+
logits_to_keep: Union[int, torch.Tensor] = 0,
|
| 602 |
+
**kwargs,
|
| 603 |
+
) -> Union[Tuple, CausalLMOutputWithPast]:
|
| 604 |
+
output_hidden_states = output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 605 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 606 |
+
|
| 607 |
+
outputs = self.model(
|
| 608 |
+
input_ids=input_ids,
|
| 609 |
+
attention_mask=attention_mask,
|
| 610 |
+
position_ids=position_ids,
|
| 611 |
+
past_key_values=past_key_values,
|
| 612 |
+
inputs_embeds=inputs_embeds,
|
| 613 |
+
use_cache=use_cache,
|
| 614 |
+
cache_position=cache_position,
|
| 615 |
+
output_attentions=output_attentions,
|
| 616 |
+
output_hidden_states=output_hidden_states,
|
| 617 |
+
return_dict=return_dict,
|
| 618 |
+
**kwargs,
|
| 619 |
+
)
|
| 620 |
+
|
| 621 |
+
hidden_states = outputs[0]
|
| 622 |
+
slice_indices = slice(-logits_to_keep, None) if isinstance(logits_to_keep, int) else logits_to_keep
|
| 623 |
+
logits = self.lm_head(hidden_states[:, slice_indices, :])
|
| 624 |
+
|
| 625 |
+
loss = None
|
| 626 |
+
if labels is not None:
|
| 627 |
+
shift_logits = logits[..., :-1, :].contiguous()
|
| 628 |
+
shift_labels = labels[..., 1:].contiguous()
|
| 629 |
+
loss_fct = nn.CrossEntropyLoss()
|
| 630 |
+
shift_logits = shift_logits.view(-1, self.config.vocab_size)
|
| 631 |
+
shift_labels = shift_labels.view(-1)
|
| 632 |
+
shift_labels = shift_labels.to(shift_logits.device)
|
| 633 |
+
loss = loss_fct(shift_logits, shift_labels)
|
| 634 |
+
|
| 635 |
+
if not return_dict:
|
| 636 |
+
output = (logits,) + outputs[1:]
|
| 637 |
+
return (loss,) + output if loss is not None else output
|
| 638 |
+
|
| 639 |
+
return CausalLMOutputWithPast(
|
| 640 |
+
loss=loss,
|
| 641 |
+
logits=logits,
|
| 642 |
+
past_key_values=outputs.past_key_values,
|
| 643 |
+
hidden_states=outputs.hidden_states,
|
| 644 |
+
)
|
| 645 |
+
|
| 646 |
+
|
| 647 |
+
__all__ = [
|
| 648 |
+
"Glm4MoeLiteSCMForCausalLM",
|
| 649 |
+
"Glm4MoeLiteSCMModel",
|
| 650 |
+
"Glm4MoeLiteSCMPreTrainedModel",
|
| 651 |
+
]
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19e773648cb4e65de8660ea6365e10acca112d42a854923df93db4a6f333a82d
|
| 3 |
+
size 20217442
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"154820": {
|
| 4 |
+
"content": "<|endoftext|>",
|
| 5 |
+
"single_word": false,
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"154821": {
|
| 12 |
+
"content": "[MASK]",
|
| 13 |
+
"single_word": false,
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"154822": {
|
| 20 |
+
"content": "[gMASK]",
|
| 21 |
+
"single_word": false,
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"154823": {
|
| 28 |
+
"content": "[sMASK]",
|
| 29 |
+
"single_word": false,
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"154824": {
|
| 36 |
+
"content": "<sop>",
|
| 37 |
+
"single_word": false,
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"special": true
|
| 42 |
+
},
|
| 43 |
+
"154825": {
|
| 44 |
+
"content": "<eop>",
|
| 45 |
+
"single_word": false,
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"rstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"special": true
|
| 50 |
+
},
|
| 51 |
+
"154826": {
|
| 52 |
+
"content": "<|system|>",
|
| 53 |
+
"single_word": false,
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"rstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"special": true
|
| 58 |
+
},
|
| 59 |
+
"154827": {
|
| 60 |
+
"content": "<|user|>",
|
| 61 |
+
"single_word": false,
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"rstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"special": true
|
| 66 |
+
},
|
| 67 |
+
"154828": {
|
| 68 |
+
"content": "<|assistant|>",
|
| 69 |
+
"single_word": false,
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"rstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"special": true
|
| 74 |
+
},
|
| 75 |
+
"154829": {
|
| 76 |
+
"content": "<|observation|>",
|
| 77 |
+
"single_word": false,
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"rstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"special": true
|
| 82 |
+
},
|
| 83 |
+
"154830": {
|
| 84 |
+
"content": "<|begin_of_image|>",
|
| 85 |
+
"single_word": false,
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"rstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"special": true
|
| 90 |
+
},
|
| 91 |
+
"154831": {
|
| 92 |
+
"content": "<|end_of_image|>",
|
| 93 |
+
"single_word": false,
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"rstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"special": true
|
| 98 |
+
},
|
| 99 |
+
"154832": {
|
| 100 |
+
"content": "<|begin_of_video|>",
|
| 101 |
+
"single_word": false,
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"rstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"special": true
|
| 106 |
+
},
|
| 107 |
+
"154833": {
|
| 108 |
+
"content": "<|end_of_video|>",
|
| 109 |
+
"single_word": false,
|
| 110 |
+
"lstrip": false,
|
| 111 |
+
"rstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"special": true
|
| 114 |
+
},
|
| 115 |
+
"154834": {
|
| 116 |
+
"content": "<|begin_of_audio|>",
|
| 117 |
+
"single_word": false,
|
| 118 |
+
"lstrip": false,
|
| 119 |
+
"rstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"special": true
|
| 122 |
+
},
|
| 123 |
+
"154835": {
|
| 124 |
+
"content": "<|end_of_audio|>",
|
| 125 |
+
"single_word": false,
|
| 126 |
+
"lstrip": false,
|
| 127 |
+
"rstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"special": true
|
| 130 |
+
},
|
| 131 |
+
"154836": {
|
| 132 |
+
"content": "<|begin_of_transcription|>",
|
| 133 |
+
"single_word": false,
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"rstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"special": true
|
| 138 |
+
},
|
| 139 |
+
"154837": {
|
| 140 |
+
"content": "<|end_of_transcription|>",
|
| 141 |
+
"single_word": false,
|
| 142 |
+
"lstrip": false,
|
| 143 |
+
"rstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"special": true
|
| 146 |
+
},
|
| 147 |
+
"154838": {
|
| 148 |
+
"content": "<|code_prefix|>",
|
| 149 |
+
"single_word": false,
|
| 150 |
+
"lstrip": false,
|
| 151 |
+
"rstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"special": false
|
| 154 |
+
},
|
| 155 |
+
"154839": {
|
| 156 |
+
"content": "<|code_middle|>",
|
| 157 |
+
"single_word": false,
|
| 158 |
+
"lstrip": false,
|
| 159 |
+
"rstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"special": false
|
| 162 |
+
},
|
| 163 |
+
"154840": {
|
| 164 |
+
"content": "<|code_suffix|>",
|
| 165 |
+
"single_word": false,
|
| 166 |
+
"lstrip": false,
|
| 167 |
+
"rstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"special": false
|
| 170 |
+
},
|
| 171 |
+
"154841": {
|
| 172 |
+
"content": "<think>",
|
| 173 |
+
"single_word": false,
|
| 174 |
+
"lstrip": false,
|
| 175 |
+
"rstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"special": false
|
| 178 |
+
},
|
| 179 |
+
"154842": {
|
| 180 |
+
"content": "</think>",
|
| 181 |
+
"single_word": false,
|
| 182 |
+
"lstrip": false,
|
| 183 |
+
"rstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"special": false
|
| 186 |
+
},
|
| 187 |
+
"154843": {
|
| 188 |
+
"content": "<tool_call>",
|
| 189 |
+
"single_word": false,
|
| 190 |
+
"lstrip": false,
|
| 191 |
+
"rstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"special": false
|
| 194 |
+
},
|
| 195 |
+
"154844": {
|
| 196 |
+
"content": "</tool_call>",
|
| 197 |
+
"single_word": false,
|
| 198 |
+
"lstrip": false,
|
| 199 |
+
"rstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"special": false
|
| 202 |
+
},
|
| 203 |
+
"154845": {
|
| 204 |
+
"content": "<tool_response>",
|
| 205 |
+
"single_word": false,
|
| 206 |
+
"lstrip": false,
|
| 207 |
+
"rstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"special": false
|
| 210 |
+
},
|
| 211 |
+
"154846": {
|
| 212 |
+
"content": "</tool_response>",
|
| 213 |
+
"single_word": false,
|
| 214 |
+
"lstrip": false,
|
| 215 |
+
"rstrip": false,
|
| 216 |
+
"normalized": false,
|
| 217 |
+
"special": false
|
| 218 |
+
},
|
| 219 |
+
"154847": {
|
| 220 |
+
"content": "<arg_key>",
|
| 221 |
+
"single_word": false,
|
| 222 |
+
"lstrip": false,
|
| 223 |
+
"rstrip": false,
|
| 224 |
+
"normalized": false,
|
| 225 |
+
"special": false
|
| 226 |
+
},
|
| 227 |
+
"154848": {
|
| 228 |
+
"content": "</arg_key>",
|
| 229 |
+
"single_word": false,
|
| 230 |
+
"lstrip": false,
|
| 231 |
+
"rstrip": false,
|
| 232 |
+
"normalized": false,
|
| 233 |
+
"special": false
|
| 234 |
+
},
|
| 235 |
+
"154849": {
|
| 236 |
+
"content": "<arg_value>",
|
| 237 |
+
"single_word": false,
|
| 238 |
+
"lstrip": false,
|
| 239 |
+
"rstrip": false,
|
| 240 |
+
"normalized": false,
|
| 241 |
+
"special": false
|
| 242 |
+
},
|
| 243 |
+
"154850": {
|
| 244 |
+
"content": "</arg_value>",
|
| 245 |
+
"single_word": false,
|
| 246 |
+
"lstrip": false,
|
| 247 |
+
"rstrip": false,
|
| 248 |
+
"normalized": false,
|
| 249 |
+
"special": false
|
| 250 |
+
},
|
| 251 |
+
"154851": {
|
| 252 |
+
"content": "/nothink",
|
| 253 |
+
"single_word": false,
|
| 254 |
+
"lstrip": false,
|
| 255 |
+
"rstrip": false,
|
| 256 |
+
"normalized": false,
|
| 257 |
+
"special": false
|
| 258 |
+
},
|
| 259 |
+
"154852": {
|
| 260 |
+
"content": "<|begin_of_box|>",
|
| 261 |
+
"single_word": false,
|
| 262 |
+
"lstrip": false,
|
| 263 |
+
"rstrip": false,
|
| 264 |
+
"normalized": false,
|
| 265 |
+
"special": false
|
| 266 |
+
},
|
| 267 |
+
"154853": {
|
| 268 |
+
"content": "<|end_of_box|>",
|
| 269 |
+
"single_word": false,
|
| 270 |
+
"lstrip": false,
|
| 271 |
+
"rstrip": false,
|
| 272 |
+
"normalized": false,
|
| 273 |
+
"special": false
|
| 274 |
+
},
|
| 275 |
+
"154854": {
|
| 276 |
+
"content": "<|image|>",
|
| 277 |
+
"single_word": false,
|
| 278 |
+
"lstrip": false,
|
| 279 |
+
"rstrip": false,
|
| 280 |
+
"normalized": false,
|
| 281 |
+
"special": false
|
| 282 |
+
},
|
| 283 |
+
"154855": {
|
| 284 |
+
"content": "<|video|>",
|
| 285 |
+
"single_word": false,
|
| 286 |
+
"lstrip": false,
|
| 287 |
+
"rstrip": false,
|
| 288 |
+
"normalized": false,
|
| 289 |
+
"special": false
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
"additional_special_tokens": [
|
| 293 |
+
"<|endoftext|>",
|
| 294 |
+
"[MASK]",
|
| 295 |
+
"[gMASK]",
|
| 296 |
+
"[sMASK]",
|
| 297 |
+
"<sop>",
|
| 298 |
+
"<eop>",
|
| 299 |
+
"<|system|>",
|
| 300 |
+
"<|user|>",
|
| 301 |
+
"<|assistant|>",
|
| 302 |
+
"<|observation|>",
|
| 303 |
+
"<|begin_of_image|>",
|
| 304 |
+
"<|end_of_image|>",
|
| 305 |
+
"<|begin_of_video|>",
|
| 306 |
+
"<|end_of_video|>",
|
| 307 |
+
"<|begin_of_audio|>",
|
| 308 |
+
"<|end_of_audio|>",
|
| 309 |
+
"<|begin_of_transcription|>",
|
| 310 |
+
"<|end_of_transcription|>"
|
| 311 |
+
],
|
| 312 |
+
"clean_up_tokenization_spaces": false,
|
| 313 |
+
"do_lower_case": false,
|
| 314 |
+
"eos_token": "<|endoftext|>",
|
| 315 |
+
"extra_special_tokens": {},
|
| 316 |
+
"model_max_length": 128000,
|
| 317 |
+
"pad_token": "<|endoftext|>",
|
| 318 |
+
"padding_side": "left",
|
| 319 |
+
"remove_space": false,
|
| 320 |
+
"tokenizer_class": "PreTrainedTokenizer"
|
| 321 |
+
}
|