Add files using upload-large-folder tool
Browse files- config.json +7 -15
- configuration_laguna.py +27 -26
- model-00001-of-00045.safetensors +2 -2
- model-00002-of-00045.safetensors +2 -2
- model-00003-of-00045.safetensors +2 -2
- model.safetensors.index.json +142 -142
- modeling_laguna.py +150 -113
- tokenizer.json +2 -2
config.json
CHANGED
|
@@ -2,6 +2,10 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"LagunaForCausalLM"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"model_type": "laguna",
|
| 6 |
"vocab_size": 100352,
|
| 7 |
"hidden_size": 4096,
|
|
@@ -38,7 +42,8 @@
|
|
| 38 |
"original_max_position_embeddings": 4096,
|
| 39 |
"beta_slow": 1.0,
|
| 40 |
"beta_fast": 64.0,
|
| 41 |
-
"attention_factor": 1.0
|
|
|
|
| 42 |
}
|
| 43 |
},
|
| 44 |
"moe_apply_router_weight_on_input": false,
|
|
@@ -510,18 +515,5 @@
|
|
| 510 |
"sparsity_config": {},
|
| 511 |
"transform_config": {},
|
| 512 |
"version": "0.11.0"
|
| 513 |
-
},
|
| 514 |
-
"auto_map": {
|
| 515 |
-
"AutoConfig": "configuration_laguna.LagunaConfig",
|
| 516 |
-
"AutoModelForCausalLM": "modeling_laguna.LagunaForCausalLM"
|
| 517 |
-
},
|
| 518 |
-
"rope_theta": 500000.0,
|
| 519 |
-
"rope_scaling": {
|
| 520 |
-
"rope_type": "yarn",
|
| 521 |
-
"factor": 32.0,
|
| 522 |
-
"original_max_position_embeddings": 4096,
|
| 523 |
-
"beta_slow": 1.0,
|
| 524 |
-
"beta_fast": 64.0,
|
| 525 |
-
"attention_factor": 1.0
|
| 526 |
}
|
| 527 |
-
}
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"LagunaForCausalLM"
|
| 4 |
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoConfig": "configuration_laguna.LagunaConfig",
|
| 7 |
+
"AutoModelForCausalLM": "modeling_laguna.LagunaForCausalLM"
|
| 8 |
+
},
|
| 9 |
"model_type": "laguna",
|
| 10 |
"vocab_size": 100352,
|
| 11 |
"hidden_size": 4096,
|
|
|
|
| 42 |
"original_max_position_embeddings": 4096,
|
| 43 |
"beta_slow": 1.0,
|
| 44 |
"beta_fast": 64.0,
|
| 45 |
+
"attention_factor": 1.0,
|
| 46 |
+
"partial_rotary_factor": 1.0
|
| 47 |
}
|
| 48 |
},
|
| 49 |
"moe_apply_router_weight_on_input": false,
|
|
|
|
| 515 |
"sparsity_config": {},
|
| 516 |
"transform_config": {},
|
| 517 |
"version": "0.11.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 518 |
}
|
| 519 |
+
}
|
configuration_laguna.py
CHANGED
|
@@ -12,17 +12,11 @@
|
|
| 12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
# See the License for the specific language governing permissions and
|
| 14 |
# limitations under the License.
|
| 15 |
-
|
| 16 |
-
|
| 17 |
|
| 18 |
-
This uses rope_theta + rope_scaling (legacy format) instead of
|
| 19 |
-
rope_parameters (v5 format).
|
| 20 |
-
"""
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
class LagunaConfig(PretrainedConfig):
|
| 26 |
r"""
|
| 27 |
Configuration class for Laguna model.
|
| 28 |
|
|
@@ -43,6 +37,20 @@ class LagunaConfig(PretrainedConfig):
|
|
| 43 |
gating (`bool`, *optional*, defaults to `True`):
|
| 44 |
Whether to use softplus output gating on attention. When True, a g_proj linear
|
| 45 |
layer is added and attn_output = attn_output * softplus(g_proj(x)).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
vocab_size (`int`, *optional*, defaults to 100352):
|
| 47 |
Vocabulary size of the Laguna model.
|
| 48 |
hidden_size (`int`, *optional*, defaults to 2048):
|
|
@@ -59,19 +67,6 @@ class LagunaConfig(PretrainedConfig):
|
|
| 59 |
Maximum sequence length.
|
| 60 |
rms_norm_eps (`float`, *optional*, defaults to 1e-6):
|
| 61 |
Epsilon for RMSNorm layers.
|
| 62 |
-
rope_theta (`float`, *optional*, defaults to 500000.0):
|
| 63 |
-
Base frequency for RoPE embeddings.
|
| 64 |
-
rope_scaling (`dict`, *optional*):
|
| 65 |
-
RoPE scaling configuration (e.g. YaRN, linear).
|
| 66 |
-
sliding_window (`int`, *optional*):
|
| 67 |
-
Sliding window attention size. Used by layers whose type in ``layer_types``
|
| 68 |
-
is ``"sliding_attention"``. When ``None``, all layers use full attention.
|
| 69 |
-
layer_types (`list[str]`, *optional*):
|
| 70 |
-
Per-layer attention type. Each element should be ``"sliding_attention"`` or
|
| 71 |
-
``"global_attention"``. Length must equal ``num_hidden_layers``. When ``None``,
|
| 72 |
-
all layers default to global attention.
|
| 73 |
-
swa_attention_sink_enabled (`bool`, *optional*, defaults to `False`):
|
| 74 |
-
Whether to enable learnable attention sinks on sliding-window attention layers.
|
| 75 |
num_experts (`int`, *optional*, defaults to 256):
|
| 76 |
Number of routed experts.
|
| 77 |
num_experts_per_tok (`int`, *optional*, defaults to 16):
|
|
@@ -88,6 +83,8 @@ class LagunaConfig(PretrainedConfig):
|
|
| 88 |
Layer indices that use dense MLP instead of MoE.
|
| 89 |
router_aux_loss_coef (`float`, *optional*, defaults to 0.001):
|
| 90 |
Auxiliary loss coefficient for load balancing.
|
|
|
|
|
|
|
| 91 |
"""
|
| 92 |
|
| 93 |
model_type = "laguna"
|
|
@@ -126,12 +123,12 @@ class LagunaConfig(PretrainedConfig):
|
|
| 126 |
rms_norm_eps: float = 1e-6,
|
| 127 |
use_cache: bool = True,
|
| 128 |
tie_word_embeddings: bool = False,
|
| 129 |
-
|
| 130 |
-
rope_scaling: dict | None = None,
|
| 131 |
attention_dropout: float = 0.0,
|
| 132 |
sliding_window: int | None = None,
|
| 133 |
layer_types: list[str] | None = None,
|
| 134 |
swa_attention_sink_enabled: bool = False,
|
|
|
|
| 135 |
num_experts: int = 256,
|
| 136 |
num_experts_per_tok: int = 16,
|
| 137 |
moe_intermediate_size: int = 1024,
|
|
@@ -147,6 +144,10 @@ class LagunaConfig(PretrainedConfig):
|
|
| 147 |
if mlp_only_layers is None:
|
| 148 |
mlp_only_layers = [0]
|
| 149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
self.vocab_size = vocab_size
|
| 151 |
self.hidden_size = hidden_size
|
| 152 |
self.intermediate_size = intermediate_size
|
|
@@ -162,13 +163,13 @@ class LagunaConfig(PretrainedConfig):
|
|
| 162 |
self.initializer_range = initializer_range
|
| 163 |
self.rms_norm_eps = rms_norm_eps
|
| 164 |
self.use_cache = use_cache
|
| 165 |
-
self.
|
| 166 |
-
self.rope_scaling = rope_scaling
|
| 167 |
self.attention_dropout = attention_dropout
|
| 168 |
# Sliding window attention arguments
|
| 169 |
self.sliding_window = sliding_window
|
| 170 |
self.layer_types = layer_types
|
| 171 |
self.swa_attention_sink_enabled = swa_attention_sink_enabled
|
|
|
|
| 172 |
# MoE arguments
|
| 173 |
self.num_experts = num_experts
|
| 174 |
self.num_experts_per_tok = num_experts_per_tok
|
|
|
|
| 12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
# See the License for the specific language governing permissions and
|
| 14 |
# limitations under the License.
|
| 15 |
+
from transformers.configuration_utils import PreTrainedConfig
|
| 16 |
+
from transformers.modeling_rope_utils import RopeParameters
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
class LagunaConfig(PreTrainedConfig):
|
|
|
|
|
|
|
|
|
|
| 20 |
r"""
|
| 21 |
Configuration class for Laguna model.
|
| 22 |
|
|
|
|
| 37 |
gating (`bool`, *optional*, defaults to `True`):
|
| 38 |
Whether to use softplus output gating on attention. When True, a g_proj linear
|
| 39 |
layer is added and attn_output = attn_output * softplus(g_proj(x)).
|
| 40 |
+
sliding_window (`int`, *optional*):
|
| 41 |
+
Sliding window attention size. Used by layers whose type in ``layer_types``
|
| 42 |
+
is ``"sliding_attention"``. When ``None``, all layers use full attention.
|
| 43 |
+
layer_types (`list[str]`, *optional*):
|
| 44 |
+
Per-layer attention type. Each element should be ``"sliding_attention"`` or
|
| 45 |
+
``"global_attention"``. Length must equal ``num_hidden_layers``. When ``None``,
|
| 46 |
+
all layers default to global attention.
|
| 47 |
+
swa_attention_sink_enabled (`bool`, *optional*, defaults to `False`):
|
| 48 |
+
Whether to enable learnable attention sinks on sliding-window attention layers.
|
| 49 |
+
When enabled, a per-head bias parameter is added that allows the model to attend
|
| 50 |
+
to position 0 even when it falls outside the sliding window.
|
| 51 |
+
swa_rope_parameters (`RopeParameters`, *optional*):
|
| 52 |
+
Separate RoPE configuration for sliding-window attention layers. When ``None``,
|
| 53 |
+
SWA layers use the same RoPE as global attention layers.
|
| 54 |
vocab_size (`int`, *optional*, defaults to 100352):
|
| 55 |
Vocabulary size of the Laguna model.
|
| 56 |
hidden_size (`int`, *optional*, defaults to 2048):
|
|
|
|
| 67 |
Maximum sequence length.
|
| 68 |
rms_norm_eps (`float`, *optional*, defaults to 1e-6):
|
| 69 |
Epsilon for RMSNorm layers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
num_experts (`int`, *optional*, defaults to 256):
|
| 71 |
Number of routed experts.
|
| 72 |
num_experts_per_tok (`int`, *optional*, defaults to 16):
|
|
|
|
| 83 |
Layer indices that use dense MLP instead of MoE.
|
| 84 |
router_aux_loss_coef (`float`, *optional*, defaults to 0.001):
|
| 85 |
Auxiliary loss coefficient for load balancing.
|
| 86 |
+
rope_parameters (`RopeParameters`, *optional*):
|
| 87 |
+
RoPE configuration. Defaults to rope_theta=500000.0.
|
| 88 |
"""
|
| 89 |
|
| 90 |
model_type = "laguna"
|
|
|
|
| 123 |
rms_norm_eps: float = 1e-6,
|
| 124 |
use_cache: bool = True,
|
| 125 |
tie_word_embeddings: bool = False,
|
| 126 |
+
rope_parameters: RopeParameters | dict[str, RopeParameters] | None = None,
|
|
|
|
| 127 |
attention_dropout: float = 0.0,
|
| 128 |
sliding_window: int | None = None,
|
| 129 |
layer_types: list[str] | None = None,
|
| 130 |
swa_attention_sink_enabled: bool = False,
|
| 131 |
+
swa_rope_parameters: RopeParameters | None = None,
|
| 132 |
num_experts: int = 256,
|
| 133 |
num_experts_per_tok: int = 16,
|
| 134 |
moe_intermediate_size: int = 1024,
|
|
|
|
| 144 |
if mlp_only_layers is None:
|
| 145 |
mlp_only_layers = [0]
|
| 146 |
|
| 147 |
+
# Default rope_parameters with Laguna's theta
|
| 148 |
+
if rope_parameters is None:
|
| 149 |
+
rope_parameters = {"rope_type": "default", "rope_theta": 500000.0}
|
| 150 |
+
|
| 151 |
self.vocab_size = vocab_size
|
| 152 |
self.hidden_size = hidden_size
|
| 153 |
self.intermediate_size = intermediate_size
|
|
|
|
| 163 |
self.initializer_range = initializer_range
|
| 164 |
self.rms_norm_eps = rms_norm_eps
|
| 165 |
self.use_cache = use_cache
|
| 166 |
+
self.rope_parameters = rope_parameters
|
|
|
|
| 167 |
self.attention_dropout = attention_dropout
|
| 168 |
# Sliding window attention arguments
|
| 169 |
self.sliding_window = sliding_window
|
| 170 |
self.layer_types = layer_types
|
| 171 |
self.swa_attention_sink_enabled = swa_attention_sink_enabled
|
| 172 |
+
self.swa_rope_parameters = swa_rope_parameters
|
| 173 |
# MoE arguments
|
| 174 |
self.num_experts = num_experts
|
| 175 |
self.num_experts_per_tok = num_experts_per_tok
|
model-00001-of-00045.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b290b33be8f24274158893c4581c92652ddab16ca649163964fb4015e90d2944
|
| 3 |
+
size 5118025988
|
model-00002-of-00045.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51497babd4107a6ce13ac33bd22397221b5c40da8f2c58dc6a940597c45a4c48
|
| 3 |
+
size 5076119676
|
model-00003-of-00045.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a7f85878afb3156b64de58640d08672aa6ffcc40294a878dd2e9d821fb9b297
|
| 3 |
+
size 5119814648
|
model.safetensors.index.json
CHANGED
|
@@ -4,7 +4,9 @@
|
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"model.layers.0.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 7 |
"model.layers.0.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 8 |
"model.layers.0.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 9 |
"model.layers.0.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 10 |
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -23,7 +25,9 @@
|
|
| 23 |
"model.layers.0.mlp.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 24 |
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00045.safetensors",
|
| 25 |
"model.layers.1.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 26 |
"model.layers.1.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 27 |
"model.layers.1.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 28 |
"model.layers.1.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 29 |
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -42,7 +46,9 @@
|
|
| 42 |
"model.layers.1.mlp.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 43 |
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00045.safetensors",
|
| 44 |
"model.layers.10.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 45 |
"model.layers.10.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 46 |
"model.layers.10.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 47 |
"model.layers.10.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 48 |
"model.layers.10.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -63,7 +69,9 @@
|
|
| 63 |
"model.layers.10.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 64 |
"model.layers.10.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 65 |
"model.layers.11.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 66 |
"model.layers.11.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 67 |
"model.layers.11.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 68 |
"model.layers.11.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 69 |
"model.layers.11.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -84,7 +92,9 @@
|
|
| 84 |
"model.layers.11.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 85 |
"model.layers.11.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 86 |
"model.layers.12.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 87 |
"model.layers.12.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 88 |
"model.layers.12.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 89 |
"model.layers.12.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 90 |
"model.layers.12.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -105,7 +115,9 @@
|
|
| 105 |
"model.layers.12.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 106 |
"model.layers.12.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 107 |
"model.layers.13.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 108 |
"model.layers.13.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 109 |
"model.layers.13.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 110 |
"model.layers.13.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 111 |
"model.layers.13.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -126,7 +138,9 @@
|
|
| 126 |
"model.layers.13.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 127 |
"model.layers.13.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 128 |
"model.layers.14.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 129 |
"model.layers.14.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 130 |
"model.layers.14.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 131 |
"model.layers.14.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 132 |
"model.layers.14.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -147,7 +161,9 @@
|
|
| 147 |
"model.layers.14.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 148 |
"model.layers.14.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 149 |
"model.layers.15.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 150 |
"model.layers.15.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 151 |
"model.layers.15.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 152 |
"model.layers.15.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 153 |
"model.layers.15.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -168,7 +184,9 @@
|
|
| 168 |
"model.layers.15.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 169 |
"model.layers.15.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 170 |
"model.layers.16.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 171 |
"model.layers.16.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 172 |
"model.layers.16.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 173 |
"model.layers.16.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 174 |
"model.layers.16.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -189,7 +207,9 @@
|
|
| 189 |
"model.layers.16.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 190 |
"model.layers.16.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 191 |
"model.layers.17.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 192 |
"model.layers.17.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 193 |
"model.layers.17.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 194 |
"model.layers.17.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 195 |
"model.layers.17.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -210,7 +230,9 @@
|
|
| 210 |
"model.layers.17.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 211 |
"model.layers.17.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 212 |
"model.layers.18.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 213 |
"model.layers.18.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 214 |
"model.layers.18.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 215 |
"model.layers.18.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 216 |
"model.layers.18.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -231,7 +253,9 @@
|
|
| 231 |
"model.layers.18.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 232 |
"model.layers.18.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 233 |
"model.layers.19.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 234 |
"model.layers.19.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 235 |
"model.layers.19.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 236 |
"model.layers.19.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 237 |
"model.layers.19.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -252,7 +276,9 @@
|
|
| 252 |
"model.layers.19.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 253 |
"model.layers.19.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 254 |
"model.layers.2.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 255 |
"model.layers.2.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 256 |
"model.layers.2.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 257 |
"model.layers.2.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 258 |
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -271,7 +297,9 @@
|
|
| 271 |
"model.layers.2.mlp.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 272 |
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00045.safetensors",
|
| 273 |
"model.layers.20.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 274 |
"model.layers.20.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 275 |
"model.layers.20.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 276 |
"model.layers.20.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 277 |
"model.layers.20.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -292,7 +320,9 @@
|
|
| 292 |
"model.layers.20.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 293 |
"model.layers.20.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 294 |
"model.layers.21.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 295 |
"model.layers.21.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 296 |
"model.layers.21.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 297 |
"model.layers.21.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 298 |
"model.layers.21.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -313,7 +343,9 @@
|
|
| 313 |
"model.layers.21.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 314 |
"model.layers.21.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 315 |
"model.layers.22.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 316 |
"model.layers.22.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 317 |
"model.layers.22.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 318 |
"model.layers.22.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 319 |
"model.layers.22.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -334,7 +366,9 @@
|
|
| 334 |
"model.layers.22.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 335 |
"model.layers.22.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 336 |
"model.layers.23.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 337 |
"model.layers.23.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 338 |
"model.layers.23.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 339 |
"model.layers.23.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 340 |
"model.layers.23.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -355,7 +389,9 @@
|
|
| 355 |
"model.layers.23.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 356 |
"model.layers.23.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 357 |
"model.layers.24.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 358 |
"model.layers.24.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 359 |
"model.layers.24.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 360 |
"model.layers.24.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 361 |
"model.layers.24.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -376,7 +412,9 @@
|
|
| 376 |
"model.layers.24.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 377 |
"model.layers.24.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 378 |
"model.layers.25.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 379 |
"model.layers.25.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 380 |
"model.layers.25.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 381 |
"model.layers.25.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 382 |
"model.layers.25.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -397,7 +435,9 @@
|
|
| 397 |
"model.layers.25.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 398 |
"model.layers.25.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 399 |
"model.layers.26.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 400 |
"model.layers.26.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 401 |
"model.layers.26.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 402 |
"model.layers.26.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 403 |
"model.layers.26.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -418,7 +458,9 @@
|
|
| 418 |
"model.layers.26.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 419 |
"model.layers.26.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 420 |
"model.layers.27.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 421 |
"model.layers.27.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 422 |
"model.layers.27.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 423 |
"model.layers.27.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 424 |
"model.layers.27.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -439,7 +481,9 @@
|
|
| 439 |
"model.layers.27.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 440 |
"model.layers.27.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 441 |
"model.layers.28.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 442 |
"model.layers.28.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 443 |
"model.layers.28.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 444 |
"model.layers.28.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 445 |
"model.layers.28.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -460,7 +504,9 @@
|
|
| 460 |
"model.layers.28.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 461 |
"model.layers.28.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 462 |
"model.layers.29.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 463 |
"model.layers.29.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 464 |
"model.layers.29.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 465 |
"model.layers.29.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 466 |
"model.layers.29.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -481,7 +527,9 @@
|
|
| 481 |
"model.layers.29.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 482 |
"model.layers.29.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 483 |
"model.layers.3.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 484 |
"model.layers.3.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 485 |
"model.layers.3.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 486 |
"model.layers.3.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 487 |
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -502,7 +550,9 @@
|
|
| 502 |
"model.layers.3.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 503 |
"model.layers.3.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 504 |
"model.layers.30.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 505 |
"model.layers.30.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 506 |
"model.layers.30.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 507 |
"model.layers.30.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 508 |
"model.layers.30.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -523,7 +573,9 @@
|
|
| 523 |
"model.layers.30.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 524 |
"model.layers.30.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 525 |
"model.layers.31.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 526 |
"model.layers.31.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 527 |
"model.layers.31.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 528 |
"model.layers.31.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 529 |
"model.layers.31.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -544,7 +596,9 @@
|
|
| 544 |
"model.layers.31.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 545 |
"model.layers.31.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 546 |
"model.layers.32.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 547 |
"model.layers.32.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 548 |
"model.layers.32.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 549 |
"model.layers.32.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 550 |
"model.layers.32.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -565,7 +619,9 @@
|
|
| 565 |
"model.layers.32.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 566 |
"model.layers.32.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 567 |
"model.layers.33.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 568 |
"model.layers.33.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 569 |
"model.layers.33.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 570 |
"model.layers.33.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 571 |
"model.layers.33.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -586,7 +642,9 @@
|
|
| 586 |
"model.layers.33.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 587 |
"model.layers.33.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 588 |
"model.layers.34.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 589 |
"model.layers.34.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 590 |
"model.layers.34.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 591 |
"model.layers.34.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 592 |
"model.layers.34.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
@@ -607,7 +665,9 @@
|
|
| 607 |
"model.layers.34.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 608 |
"model.layers.34.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 609 |
"model.layers.35.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 610 |
"model.layers.35.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 611 |
"model.layers.35.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 612 |
"model.layers.35.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 613 |
"model.layers.35.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -628,7 +688,9 @@
|
|
| 628 |
"model.layers.35.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 629 |
"model.layers.35.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 630 |
"model.layers.36.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 631 |
"model.layers.36.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 632 |
"model.layers.36.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 633 |
"model.layers.36.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 634 |
"model.layers.36.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -649,7 +711,9 @@
|
|
| 649 |
"model.layers.36.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 650 |
"model.layers.36.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 651 |
"model.layers.37.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 652 |
"model.layers.37.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 653 |
"model.layers.37.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 654 |
"model.layers.37.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 655 |
"model.layers.37.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -670,7 +734,9 @@
|
|
| 670 |
"model.layers.37.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 671 |
"model.layers.37.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 672 |
"model.layers.38.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 673 |
"model.layers.38.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 674 |
"model.layers.38.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 675 |
"model.layers.38.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 676 |
"model.layers.38.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -691,7 +757,9 @@
|
|
| 691 |
"model.layers.38.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 692 |
"model.layers.38.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 693 |
"model.layers.39.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 694 |
"model.layers.39.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 695 |
"model.layers.39.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 696 |
"model.layers.39.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 697 |
"model.layers.39.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -712,7 +780,9 @@
|
|
| 712 |
"model.layers.39.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 713 |
"model.layers.39.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 714 |
"model.layers.4.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 715 |
"model.layers.4.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 716 |
"model.layers.4.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 717 |
"model.layers.4.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 718 |
"model.layers.4.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -733,7 +803,9 @@
|
|
| 733 |
"model.layers.4.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 734 |
"model.layers.4.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 735 |
"model.layers.40.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 736 |
"model.layers.40.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 737 |
"model.layers.40.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 738 |
"model.layers.40.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 739 |
"model.layers.40.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -754,7 +826,9 @@
|
|
| 754 |
"model.layers.40.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 755 |
"model.layers.40.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 756 |
"model.layers.41.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 757 |
"model.layers.41.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 758 |
"model.layers.41.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 759 |
"model.layers.41.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 760 |
"model.layers.41.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -775,7 +849,9 @@
|
|
| 775 |
"model.layers.41.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 776 |
"model.layers.41.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 777 |
"model.layers.42.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 778 |
"model.layers.42.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 779 |
"model.layers.42.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 780 |
"model.layers.42.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 781 |
"model.layers.42.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -796,7 +872,9 @@
|
|
| 796 |
"model.layers.42.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 797 |
"model.layers.42.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 798 |
"model.layers.43.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 799 |
"model.layers.43.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 800 |
"model.layers.43.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 801 |
"model.layers.43.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 802 |
"model.layers.43.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -817,7 +895,9 @@
|
|
| 817 |
"model.layers.43.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 818 |
"model.layers.43.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 819 |
"model.layers.44.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 820 |
"model.layers.44.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 821 |
"model.layers.44.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 822 |
"model.layers.44.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 823 |
"model.layers.44.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -838,7 +918,9 @@
|
|
| 838 |
"model.layers.44.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 839 |
"model.layers.44.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 840 |
"model.layers.45.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 841 |
"model.layers.45.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 842 |
"model.layers.45.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 843 |
"model.layers.45.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 844 |
"model.layers.45.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -859,7 +941,9 @@
|
|
| 859 |
"model.layers.45.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 860 |
"model.layers.45.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 861 |
"model.layers.46.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 862 |
"model.layers.46.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 863 |
"model.layers.46.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 864 |
"model.layers.46.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 865 |
"model.layers.46.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -880,7 +964,9 @@
|
|
| 880 |
"model.layers.46.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 881 |
"model.layers.46.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 882 |
"model.layers.47.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 883 |
"model.layers.47.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 884 |
"model.layers.47.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 885 |
"model.layers.47.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 886 |
"model.layers.47.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -901,7 +987,9 @@
|
|
| 901 |
"model.layers.47.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 902 |
"model.layers.47.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 903 |
"model.layers.48.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 904 |
"model.layers.48.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 905 |
"model.layers.48.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 906 |
"model.layers.48.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 907 |
"model.layers.48.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -922,7 +1010,9 @@
|
|
| 922 |
"model.layers.48.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 923 |
"model.layers.48.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 924 |
"model.layers.49.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 925 |
"model.layers.49.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 926 |
"model.layers.49.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 927 |
"model.layers.49.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 928 |
"model.layers.49.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -943,7 +1033,9 @@
|
|
| 943 |
"model.layers.49.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 944 |
"model.layers.49.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 945 |
"model.layers.5.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 946 |
"model.layers.5.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 947 |
"model.layers.5.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 948 |
"model.layers.5.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 949 |
"model.layers.5.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -964,7 +1056,9 @@
|
|
| 964 |
"model.layers.5.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 965 |
"model.layers.5.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 966 |
"model.layers.50.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 967 |
"model.layers.50.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 968 |
"model.layers.50.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 969 |
"model.layers.50.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 970 |
"model.layers.50.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -985,7 +1079,9 @@
|
|
| 985 |
"model.layers.50.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 986 |
"model.layers.50.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 987 |
"model.layers.51.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 988 |
"model.layers.51.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 989 |
"model.layers.51.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 990 |
"model.layers.51.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 991 |
"model.layers.51.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1006,7 +1102,9 @@
|
|
| 1006 |
"model.layers.51.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1007 |
"model.layers.51.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1008 |
"model.layers.52.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1009 |
"model.layers.52.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1010 |
"model.layers.52.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1011 |
"model.layers.52.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1012 |
"model.layers.52.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1027,7 +1125,9 @@
|
|
| 1027 |
"model.layers.52.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1028 |
"model.layers.52.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1029 |
"model.layers.53.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1030 |
"model.layers.53.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1031 |
"model.layers.53.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1032 |
"model.layers.53.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1033 |
"model.layers.53.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1048,7 +1148,9 @@
|
|
| 1048 |
"model.layers.53.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1049 |
"model.layers.53.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1050 |
"model.layers.54.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1051 |
"model.layers.54.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1052 |
"model.layers.54.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1053 |
"model.layers.54.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1054 |
"model.layers.54.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1069,7 +1171,9 @@
|
|
| 1069 |
"model.layers.54.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1070 |
"model.layers.54.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1071 |
"model.layers.55.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1072 |
"model.layers.55.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1073 |
"model.layers.55.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1074 |
"model.layers.55.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1075 |
"model.layers.55.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1090,7 +1194,9 @@
|
|
| 1090 |
"model.layers.55.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1091 |
"model.layers.55.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1092 |
"model.layers.56.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1093 |
"model.layers.56.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1094 |
"model.layers.56.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1095 |
"model.layers.56.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1096 |
"model.layers.56.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1111,7 +1217,9 @@
|
|
| 1111 |
"model.layers.56.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1112 |
"model.layers.56.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1113 |
"model.layers.57.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1114 |
"model.layers.57.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1115 |
"model.layers.57.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1116 |
"model.layers.57.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1117 |
"model.layers.57.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1132,7 +1240,9 @@
|
|
| 1132 |
"model.layers.57.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1133 |
"model.layers.57.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1134 |
"model.layers.58.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1135 |
"model.layers.58.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1136 |
"model.layers.58.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1137 |
"model.layers.58.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1138 |
"model.layers.58.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1153,7 +1263,9 @@
|
|
| 1153 |
"model.layers.58.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1154 |
"model.layers.58.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1155 |
"model.layers.59.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1156 |
"model.layers.59.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1157 |
"model.layers.59.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1158 |
"model.layers.59.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1159 |
"model.layers.59.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1174,7 +1286,9 @@
|
|
| 1174 |
"model.layers.59.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1175 |
"model.layers.59.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1176 |
"model.layers.6.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1177 |
"model.layers.6.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1178 |
"model.layers.6.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1179 |
"model.layers.6.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1180 |
"model.layers.6.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1195,7 +1309,9 @@
|
|
| 1195 |
"model.layers.6.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1196 |
"model.layers.6.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1197 |
"model.layers.60.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1198 |
"model.layers.60.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1199 |
"model.layers.60.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1200 |
"model.layers.60.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1201 |
"model.layers.60.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1216,7 +1332,9 @@
|
|
| 1216 |
"model.layers.60.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1217 |
"model.layers.60.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1218 |
"model.layers.61.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1219 |
"model.layers.61.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1220 |
"model.layers.61.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1221 |
"model.layers.61.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1222 |
"model.layers.61.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1237,7 +1355,9 @@
|
|
| 1237 |
"model.layers.61.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1238 |
"model.layers.61.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1239 |
"model.layers.62.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1240 |
"model.layers.62.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1241 |
"model.layers.62.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1242 |
"model.layers.62.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1243 |
"model.layers.62.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1258,7 +1378,9 @@
|
|
| 1258 |
"model.layers.62.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1259 |
"model.layers.62.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1260 |
"model.layers.63.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1261 |
"model.layers.63.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1262 |
"model.layers.63.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1263 |
"model.layers.63.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1264 |
"model.layers.63.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1279,7 +1401,9 @@
|
|
| 1279 |
"model.layers.63.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1280 |
"model.layers.63.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1281 |
"model.layers.64.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1282 |
"model.layers.64.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1283 |
"model.layers.64.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1284 |
"model.layers.64.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1285 |
"model.layers.64.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
@@ -1300,7 +1424,9 @@
|
|
| 1300 |
"model.layers.64.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1301 |
"model.layers.64.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1302 |
"model.layers.65.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1303 |
"model.layers.65.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1304 |
"model.layers.65.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1305 |
"model.layers.65.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1306 |
"model.layers.65.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -1321,7 +1447,9 @@
|
|
| 1321 |
"model.layers.65.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1322 |
"model.layers.65.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1323 |
"model.layers.66.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1324 |
"model.layers.66.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1325 |
"model.layers.66.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1326 |
"model.layers.66.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1327 |
"model.layers.66.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -1342,7 +1470,9 @@
|
|
| 1342 |
"model.layers.66.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1343 |
"model.layers.66.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1344 |
"model.layers.67.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1345 |
"model.layers.67.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1346 |
"model.layers.67.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1347 |
"model.layers.67.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1348 |
"model.layers.67.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -1363,7 +1493,9 @@
|
|
| 1363 |
"model.layers.67.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1364 |
"model.layers.67.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1365 |
"model.layers.68.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1366 |
"model.layers.68.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1367 |
"model.layers.68.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1368 |
"model.layers.68.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1369 |
"model.layers.68.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -1384,7 +1516,9 @@
|
|
| 1384 |
"model.layers.68.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1385 |
"model.layers.68.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1386 |
"model.layers.69.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1387 |
"model.layers.69.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1388 |
"model.layers.69.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1389 |
"model.layers.69.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1390 |
"model.layers.69.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -1405,7 +1539,9 @@
|
|
| 1405 |
"model.layers.69.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1406 |
"model.layers.69.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1407 |
"model.layers.7.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1408 |
"model.layers.7.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1409 |
"model.layers.7.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1410 |
"model.layers.7.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1411 |
"model.layers.7.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -1426,7 +1562,9 @@
|
|
| 1426 |
"model.layers.7.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1427 |
"model.layers.7.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1428 |
"model.layers.8.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1429 |
"model.layers.8.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1430 |
"model.layers.8.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1431 |
"model.layers.8.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1432 |
"model.layers.8.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -1447,7 +1585,9 @@
|
|
| 1447 |
"model.layers.8.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1448 |
"model.layers.8.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1449 |
"model.layers.9.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1450 |
"model.layers.9.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1451 |
"model.layers.9.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1452 |
"model.layers.9.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1453 |
"model.layers.9.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
@@ -104381,146 +104521,6 @@
|
|
| 104381 |
"model.layers.69.mlp.experts.255.down_proj.weight": "model-00045-of-00045.safetensors",
|
| 104382 |
"model.layers.69.mlp.experts.255.gate_proj.weight_scale": "model-00045-of-00045.safetensors",
|
| 104383 |
"model.layers.69.mlp.experts.255.up_proj.weight_scale": "model-00045-of-00045.safetensors",
|
| 104384 |
-
"model.layers.69.mlp.experts.255.down_proj.weight_scale": "model-00045-of-00045.safetensors"
|
| 104385 |
-
"model.layers.0.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104386 |
-
"model.layers.0.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104387 |
-
"model.layers.1.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104388 |
-
"model.layers.1.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104389 |
-
"model.layers.10.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104390 |
-
"model.layers.10.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104391 |
-
"model.layers.11.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104392 |
-
"model.layers.11.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104393 |
-
"model.layers.12.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104394 |
-
"model.layers.12.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104395 |
-
"model.layers.13.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104396 |
-
"model.layers.13.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104397 |
-
"model.layers.14.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104398 |
-
"model.layers.14.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104399 |
-
"model.layers.15.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104400 |
-
"model.layers.15.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104401 |
-
"model.layers.16.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104402 |
-
"model.layers.16.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104403 |
-
"model.layers.17.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104404 |
-
"model.layers.17.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104405 |
-
"model.layers.18.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104406 |
-
"model.layers.18.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104407 |
-
"model.layers.19.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104408 |
-
"model.layers.19.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104409 |
-
"model.layers.2.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104410 |
-
"model.layers.2.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104411 |
-
"model.layers.20.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104412 |
-
"model.layers.20.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104413 |
-
"model.layers.21.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104414 |
-
"model.layers.21.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104415 |
-
"model.layers.22.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104416 |
-
"model.layers.22.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104417 |
-
"model.layers.23.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104418 |
-
"model.layers.23.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104419 |
-
"model.layers.24.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104420 |
-
"model.layers.24.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104421 |
-
"model.layers.25.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104422 |
-
"model.layers.25.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104423 |
-
"model.layers.26.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104424 |
-
"model.layers.26.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104425 |
-
"model.layers.27.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104426 |
-
"model.layers.27.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104427 |
-
"model.layers.28.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104428 |
-
"model.layers.28.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104429 |
-
"model.layers.29.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104430 |
-
"model.layers.29.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104431 |
-
"model.layers.3.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104432 |
-
"model.layers.3.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104433 |
-
"model.layers.30.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104434 |
-
"model.layers.30.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104435 |
-
"model.layers.31.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104436 |
-
"model.layers.31.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104437 |
-
"model.layers.32.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104438 |
-
"model.layers.32.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104439 |
-
"model.layers.33.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104440 |
-
"model.layers.33.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104441 |
-
"model.layers.34.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104442 |
-
"model.layers.34.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104443 |
-
"model.layers.35.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104444 |
-
"model.layers.35.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104445 |
-
"model.layers.36.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104446 |
-
"model.layers.36.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104447 |
-
"model.layers.37.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104448 |
-
"model.layers.37.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104449 |
-
"model.layers.38.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104450 |
-
"model.layers.38.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104451 |
-
"model.layers.39.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104452 |
-
"model.layers.39.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104453 |
-
"model.layers.4.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104454 |
-
"model.layers.4.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104455 |
-
"model.layers.40.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104456 |
-
"model.layers.40.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104457 |
-
"model.layers.41.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104458 |
-
"model.layers.41.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104459 |
-
"model.layers.42.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104460 |
-
"model.layers.42.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104461 |
-
"model.layers.43.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104462 |
-
"model.layers.43.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104463 |
-
"model.layers.44.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104464 |
-
"model.layers.44.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104465 |
-
"model.layers.45.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104466 |
-
"model.layers.45.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104467 |
-
"model.layers.46.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104468 |
-
"model.layers.46.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104469 |
-
"model.layers.47.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104470 |
-
"model.layers.47.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104471 |
-
"model.layers.48.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104472 |
-
"model.layers.48.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104473 |
-
"model.layers.49.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104474 |
-
"model.layers.49.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104475 |
-
"model.layers.5.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104476 |
-
"model.layers.5.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104477 |
-
"model.layers.50.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104478 |
-
"model.layers.50.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104479 |
-
"model.layers.51.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104480 |
-
"model.layers.51.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104481 |
-
"model.layers.52.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104482 |
-
"model.layers.52.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104483 |
-
"model.layers.53.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104484 |
-
"model.layers.53.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104485 |
-
"model.layers.54.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104486 |
-
"model.layers.54.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104487 |
-
"model.layers.55.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104488 |
-
"model.layers.55.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104489 |
-
"model.layers.56.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104490 |
-
"model.layers.56.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104491 |
-
"model.layers.57.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104492 |
-
"model.layers.57.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104493 |
-
"model.layers.58.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104494 |
-
"model.layers.58.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104495 |
-
"model.layers.59.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104496 |
-
"model.layers.59.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104497 |
-
"model.layers.6.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104498 |
-
"model.layers.6.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104499 |
-
"model.layers.60.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104500 |
-
"model.layers.60.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104501 |
-
"model.layers.61.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104502 |
-
"model.layers.61.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104503 |
-
"model.layers.62.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104504 |
-
"model.layers.62.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104505 |
-
"model.layers.63.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104506 |
-
"model.layers.63.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104507 |
-
"model.layers.64.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104508 |
-
"model.layers.64.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104509 |
-
"model.layers.65.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104510 |
-
"model.layers.65.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104511 |
-
"model.layers.66.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104512 |
-
"model.layers.66.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104513 |
-
"model.layers.67.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104514 |
-
"model.layers.67.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104515 |
-
"model.layers.68.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104516 |
-
"model.layers.68.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104517 |
-
"model.layers.69.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104518 |
-
"model.layers.69.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104519 |
-
"model.layers.7.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104520 |
-
"model.layers.7.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104521 |
-
"model.layers.8.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104522 |
-
"model.layers.8.self_attn.v_scale": "model-kv_scales.safetensors",
|
| 104523 |
-
"model.layers.9.self_attn.k_scale": "model-kv_scales.safetensors",
|
| 104524 |
-
"model.layers.9.self_attn.v_scale": "model-kv_scales.safetensors"
|
| 104525 |
}
|
| 104526 |
-
}
|
|
|
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"model.layers.0.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 7 |
+
"model.layers.0.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 8 |
"model.layers.0.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 9 |
+
"model.layers.0.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 10 |
"model.layers.0.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 11 |
"model.layers.0.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 12 |
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 25 |
"model.layers.0.mlp.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 26 |
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00045.safetensors",
|
| 27 |
"model.layers.1.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 28 |
+
"model.layers.1.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 29 |
"model.layers.1.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 30 |
+
"model.layers.1.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 31 |
"model.layers.1.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 32 |
"model.layers.1.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 33 |
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 46 |
"model.layers.1.mlp.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 47 |
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00045.safetensors",
|
| 48 |
"model.layers.10.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 49 |
+
"model.layers.10.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 50 |
"model.layers.10.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 51 |
+
"model.layers.10.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 52 |
"model.layers.10.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 53 |
"model.layers.10.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 54 |
"model.layers.10.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 69 |
"model.layers.10.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 70 |
"model.layers.10.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 71 |
"model.layers.11.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 72 |
+
"model.layers.11.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 73 |
"model.layers.11.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 74 |
+
"model.layers.11.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 75 |
"model.layers.11.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 76 |
"model.layers.11.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 77 |
"model.layers.11.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 92 |
"model.layers.11.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 93 |
"model.layers.11.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 94 |
"model.layers.12.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 95 |
+
"model.layers.12.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 96 |
"model.layers.12.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 97 |
+
"model.layers.12.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 98 |
"model.layers.12.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 99 |
"model.layers.12.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 100 |
"model.layers.12.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 115 |
"model.layers.12.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 116 |
"model.layers.12.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 117 |
"model.layers.13.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 118 |
+
"model.layers.13.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 119 |
"model.layers.13.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 120 |
+
"model.layers.13.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 121 |
"model.layers.13.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 122 |
"model.layers.13.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 123 |
"model.layers.13.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 138 |
"model.layers.13.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 139 |
"model.layers.13.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 140 |
"model.layers.14.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 141 |
+
"model.layers.14.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 142 |
"model.layers.14.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 143 |
+
"model.layers.14.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 144 |
"model.layers.14.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 145 |
"model.layers.14.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 146 |
"model.layers.14.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 161 |
"model.layers.14.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 162 |
"model.layers.14.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 163 |
"model.layers.15.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 164 |
+
"model.layers.15.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 165 |
"model.layers.15.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 166 |
+
"model.layers.15.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 167 |
"model.layers.15.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 168 |
"model.layers.15.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 169 |
"model.layers.15.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 184 |
"model.layers.15.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 185 |
"model.layers.15.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 186 |
"model.layers.16.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 187 |
+
"model.layers.16.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 188 |
"model.layers.16.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 189 |
+
"model.layers.16.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 190 |
"model.layers.16.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 191 |
"model.layers.16.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 192 |
"model.layers.16.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 207 |
"model.layers.16.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 208 |
"model.layers.16.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 209 |
"model.layers.17.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 210 |
+
"model.layers.17.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 211 |
"model.layers.17.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 212 |
+
"model.layers.17.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 213 |
"model.layers.17.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 214 |
"model.layers.17.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 215 |
"model.layers.17.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 230 |
"model.layers.17.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 231 |
"model.layers.17.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 232 |
"model.layers.18.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 233 |
+
"model.layers.18.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 234 |
"model.layers.18.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 235 |
+
"model.layers.18.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 236 |
"model.layers.18.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 237 |
"model.layers.18.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 238 |
"model.layers.18.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 253 |
"model.layers.18.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 254 |
"model.layers.18.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 255 |
"model.layers.19.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 256 |
+
"model.layers.19.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 257 |
"model.layers.19.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 258 |
+
"model.layers.19.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 259 |
"model.layers.19.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 260 |
"model.layers.19.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 261 |
"model.layers.19.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 276 |
"model.layers.19.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 277 |
"model.layers.19.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 278 |
"model.layers.2.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 279 |
+
"model.layers.2.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 280 |
"model.layers.2.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 281 |
+
"model.layers.2.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 282 |
"model.layers.2.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 283 |
"model.layers.2.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 284 |
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 297 |
"model.layers.2.mlp.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 298 |
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00045.safetensors",
|
| 299 |
"model.layers.20.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 300 |
+
"model.layers.20.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 301 |
"model.layers.20.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 302 |
+
"model.layers.20.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 303 |
"model.layers.20.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 304 |
"model.layers.20.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 305 |
"model.layers.20.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 320 |
"model.layers.20.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 321 |
"model.layers.20.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 322 |
"model.layers.21.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 323 |
+
"model.layers.21.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 324 |
"model.layers.21.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 325 |
+
"model.layers.21.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 326 |
"model.layers.21.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 327 |
"model.layers.21.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 328 |
"model.layers.21.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 343 |
"model.layers.21.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 344 |
"model.layers.21.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 345 |
"model.layers.22.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 346 |
+
"model.layers.22.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 347 |
"model.layers.22.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 348 |
+
"model.layers.22.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 349 |
"model.layers.22.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 350 |
"model.layers.22.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 351 |
"model.layers.22.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 366 |
"model.layers.22.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 367 |
"model.layers.22.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 368 |
"model.layers.23.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 369 |
+
"model.layers.23.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 370 |
"model.layers.23.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 371 |
+
"model.layers.23.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 372 |
"model.layers.23.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 373 |
"model.layers.23.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 374 |
"model.layers.23.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 389 |
"model.layers.23.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 390 |
"model.layers.23.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 391 |
"model.layers.24.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 392 |
+
"model.layers.24.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 393 |
"model.layers.24.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 394 |
+
"model.layers.24.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 395 |
"model.layers.24.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 396 |
"model.layers.24.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 397 |
"model.layers.24.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 412 |
"model.layers.24.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 413 |
"model.layers.24.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 414 |
"model.layers.25.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 415 |
+
"model.layers.25.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 416 |
"model.layers.25.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 417 |
+
"model.layers.25.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 418 |
"model.layers.25.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 419 |
"model.layers.25.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 420 |
"model.layers.25.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 435 |
"model.layers.25.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 436 |
"model.layers.25.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 437 |
"model.layers.26.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 438 |
+
"model.layers.26.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 439 |
"model.layers.26.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 440 |
+
"model.layers.26.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 441 |
"model.layers.26.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 442 |
"model.layers.26.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 443 |
"model.layers.26.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 458 |
"model.layers.26.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 459 |
"model.layers.26.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 460 |
"model.layers.27.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 461 |
+
"model.layers.27.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 462 |
"model.layers.27.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 463 |
+
"model.layers.27.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 464 |
"model.layers.27.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 465 |
"model.layers.27.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 466 |
"model.layers.27.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 481 |
"model.layers.27.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 482 |
"model.layers.27.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 483 |
"model.layers.28.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 484 |
+
"model.layers.28.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 485 |
"model.layers.28.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 486 |
+
"model.layers.28.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 487 |
"model.layers.28.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 488 |
"model.layers.28.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 489 |
"model.layers.28.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 504 |
"model.layers.28.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 505 |
"model.layers.28.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 506 |
"model.layers.29.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 507 |
+
"model.layers.29.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 508 |
"model.layers.29.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 509 |
+
"model.layers.29.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 510 |
"model.layers.29.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 511 |
"model.layers.29.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 512 |
"model.layers.29.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 527 |
"model.layers.29.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 528 |
"model.layers.29.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 529 |
"model.layers.3.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 530 |
+
"model.layers.3.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 531 |
"model.layers.3.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 532 |
+
"model.layers.3.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 533 |
"model.layers.3.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 534 |
"model.layers.3.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 535 |
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 550 |
"model.layers.3.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 551 |
"model.layers.3.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 552 |
"model.layers.30.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 553 |
+
"model.layers.30.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 554 |
"model.layers.30.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 555 |
+
"model.layers.30.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 556 |
"model.layers.30.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 557 |
"model.layers.30.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 558 |
"model.layers.30.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 573 |
"model.layers.30.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 574 |
"model.layers.30.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 575 |
"model.layers.31.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 576 |
+
"model.layers.31.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 577 |
"model.layers.31.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 578 |
+
"model.layers.31.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 579 |
"model.layers.31.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 580 |
"model.layers.31.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 581 |
"model.layers.31.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 596 |
"model.layers.31.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 597 |
"model.layers.31.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 598 |
"model.layers.32.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 599 |
+
"model.layers.32.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 600 |
"model.layers.32.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 601 |
+
"model.layers.32.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 602 |
"model.layers.32.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 603 |
"model.layers.32.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 604 |
"model.layers.32.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 619 |
"model.layers.32.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 620 |
"model.layers.32.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 621 |
"model.layers.33.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 622 |
+
"model.layers.33.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 623 |
"model.layers.33.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 624 |
+
"model.layers.33.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 625 |
"model.layers.33.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 626 |
"model.layers.33.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 627 |
"model.layers.33.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 642 |
"model.layers.33.mlp.shared_expert.down_proj.weight": "model-00001-of-00045.safetensors",
|
| 643 |
"model.layers.33.mlp.shared_expert.down_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 644 |
"model.layers.34.self_attn.k_norm.weight": "model-00001-of-00045.safetensors",
|
| 645 |
+
"model.layers.34.self_attn.k_scale": "model-00001-of-00045.safetensors",
|
| 646 |
"model.layers.34.self_attn.q_norm.weight": "model-00001-of-00045.safetensors",
|
| 647 |
+
"model.layers.34.self_attn.v_scale": "model-00001-of-00045.safetensors",
|
| 648 |
"model.layers.34.self_attn.g_proj.weight": "model-00001-of-00045.safetensors",
|
| 649 |
"model.layers.34.self_attn.g_proj.weight_scale": "model-00001-of-00045.safetensors",
|
| 650 |
"model.layers.34.self_attn.k_proj.weight": "model-00001-of-00045.safetensors",
|
|
|
|
| 665 |
"model.layers.34.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 666 |
"model.layers.34.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 667 |
"model.layers.35.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 668 |
+
"model.layers.35.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 669 |
"model.layers.35.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 670 |
+
"model.layers.35.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 671 |
"model.layers.35.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 672 |
"model.layers.35.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 673 |
"model.layers.35.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 688 |
"model.layers.35.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 689 |
"model.layers.35.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 690 |
"model.layers.36.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 691 |
+
"model.layers.36.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 692 |
"model.layers.36.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 693 |
+
"model.layers.36.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 694 |
"model.layers.36.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 695 |
"model.layers.36.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 696 |
"model.layers.36.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 711 |
"model.layers.36.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 712 |
"model.layers.36.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 713 |
"model.layers.37.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 714 |
+
"model.layers.37.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 715 |
"model.layers.37.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 716 |
+
"model.layers.37.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 717 |
"model.layers.37.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 718 |
"model.layers.37.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 719 |
"model.layers.37.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 734 |
"model.layers.37.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 735 |
"model.layers.37.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 736 |
"model.layers.38.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 737 |
+
"model.layers.38.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 738 |
"model.layers.38.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 739 |
+
"model.layers.38.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 740 |
"model.layers.38.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 741 |
"model.layers.38.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 742 |
"model.layers.38.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 757 |
"model.layers.38.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 758 |
"model.layers.38.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 759 |
"model.layers.39.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 760 |
+
"model.layers.39.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 761 |
"model.layers.39.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 762 |
+
"model.layers.39.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 763 |
"model.layers.39.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 764 |
"model.layers.39.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 765 |
"model.layers.39.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 780 |
"model.layers.39.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 781 |
"model.layers.39.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 782 |
"model.layers.4.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 783 |
+
"model.layers.4.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 784 |
"model.layers.4.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 785 |
+
"model.layers.4.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 786 |
"model.layers.4.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 787 |
"model.layers.4.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 788 |
"model.layers.4.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 803 |
"model.layers.4.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 804 |
"model.layers.4.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 805 |
"model.layers.40.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 806 |
+
"model.layers.40.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 807 |
"model.layers.40.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 808 |
+
"model.layers.40.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 809 |
"model.layers.40.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 810 |
"model.layers.40.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 811 |
"model.layers.40.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 826 |
"model.layers.40.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 827 |
"model.layers.40.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 828 |
"model.layers.41.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 829 |
+
"model.layers.41.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 830 |
"model.layers.41.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 831 |
+
"model.layers.41.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 832 |
"model.layers.41.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 833 |
"model.layers.41.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 834 |
"model.layers.41.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 849 |
"model.layers.41.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 850 |
"model.layers.41.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 851 |
"model.layers.42.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 852 |
+
"model.layers.42.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 853 |
"model.layers.42.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 854 |
+
"model.layers.42.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 855 |
"model.layers.42.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 856 |
"model.layers.42.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 857 |
"model.layers.42.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 872 |
"model.layers.42.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 873 |
"model.layers.42.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 874 |
"model.layers.43.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 875 |
+
"model.layers.43.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 876 |
"model.layers.43.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 877 |
+
"model.layers.43.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 878 |
"model.layers.43.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 879 |
"model.layers.43.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 880 |
"model.layers.43.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 895 |
"model.layers.43.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 896 |
"model.layers.43.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 897 |
"model.layers.44.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 898 |
+
"model.layers.44.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 899 |
"model.layers.44.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 900 |
+
"model.layers.44.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 901 |
"model.layers.44.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 902 |
"model.layers.44.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 903 |
"model.layers.44.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 918 |
"model.layers.44.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 919 |
"model.layers.44.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 920 |
"model.layers.45.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 921 |
+
"model.layers.45.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 922 |
"model.layers.45.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 923 |
+
"model.layers.45.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 924 |
"model.layers.45.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 925 |
"model.layers.45.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 926 |
"model.layers.45.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 941 |
"model.layers.45.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 942 |
"model.layers.45.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 943 |
"model.layers.46.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 944 |
+
"model.layers.46.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 945 |
"model.layers.46.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 946 |
+
"model.layers.46.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 947 |
"model.layers.46.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 948 |
"model.layers.46.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 949 |
"model.layers.46.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 964 |
"model.layers.46.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 965 |
"model.layers.46.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 966 |
"model.layers.47.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 967 |
+
"model.layers.47.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 968 |
"model.layers.47.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 969 |
+
"model.layers.47.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 970 |
"model.layers.47.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 971 |
"model.layers.47.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 972 |
"model.layers.47.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 987 |
"model.layers.47.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 988 |
"model.layers.47.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 989 |
"model.layers.48.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 990 |
+
"model.layers.48.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 991 |
"model.layers.48.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 992 |
+
"model.layers.48.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 993 |
"model.layers.48.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 994 |
"model.layers.48.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 995 |
"model.layers.48.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1010 |
"model.layers.48.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1011 |
"model.layers.48.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1012 |
"model.layers.49.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1013 |
+
"model.layers.49.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1014 |
"model.layers.49.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1015 |
+
"model.layers.49.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1016 |
"model.layers.49.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1017 |
"model.layers.49.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1018 |
"model.layers.49.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1033 |
"model.layers.49.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1034 |
"model.layers.49.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1035 |
"model.layers.5.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1036 |
+
"model.layers.5.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1037 |
"model.layers.5.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1038 |
+
"model.layers.5.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1039 |
"model.layers.5.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1040 |
"model.layers.5.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1041 |
"model.layers.5.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1056 |
"model.layers.5.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1057 |
"model.layers.5.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1058 |
"model.layers.50.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1059 |
+
"model.layers.50.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1060 |
"model.layers.50.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1061 |
+
"model.layers.50.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1062 |
"model.layers.50.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1063 |
"model.layers.50.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1064 |
"model.layers.50.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1079 |
"model.layers.50.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1080 |
"model.layers.50.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1081 |
"model.layers.51.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1082 |
+
"model.layers.51.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1083 |
"model.layers.51.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1084 |
+
"model.layers.51.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1085 |
"model.layers.51.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1086 |
"model.layers.51.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1087 |
"model.layers.51.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1102 |
"model.layers.51.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1103 |
"model.layers.51.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1104 |
"model.layers.52.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1105 |
+
"model.layers.52.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1106 |
"model.layers.52.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1107 |
+
"model.layers.52.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1108 |
"model.layers.52.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1109 |
"model.layers.52.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1110 |
"model.layers.52.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1125 |
"model.layers.52.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1126 |
"model.layers.52.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1127 |
"model.layers.53.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1128 |
+
"model.layers.53.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1129 |
"model.layers.53.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1130 |
+
"model.layers.53.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1131 |
"model.layers.53.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1132 |
"model.layers.53.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1133 |
"model.layers.53.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1148 |
"model.layers.53.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1149 |
"model.layers.53.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1150 |
"model.layers.54.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1151 |
+
"model.layers.54.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1152 |
"model.layers.54.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1153 |
+
"model.layers.54.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1154 |
"model.layers.54.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1155 |
"model.layers.54.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1156 |
"model.layers.54.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1171 |
"model.layers.54.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1172 |
"model.layers.54.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1173 |
"model.layers.55.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1174 |
+
"model.layers.55.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1175 |
"model.layers.55.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1176 |
+
"model.layers.55.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1177 |
"model.layers.55.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1178 |
"model.layers.55.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1179 |
"model.layers.55.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1194 |
"model.layers.55.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1195 |
"model.layers.55.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1196 |
"model.layers.56.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1197 |
+
"model.layers.56.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1198 |
"model.layers.56.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1199 |
+
"model.layers.56.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1200 |
"model.layers.56.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1201 |
"model.layers.56.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1202 |
"model.layers.56.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1217 |
"model.layers.56.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1218 |
"model.layers.56.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1219 |
"model.layers.57.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1220 |
+
"model.layers.57.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1221 |
"model.layers.57.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1222 |
+
"model.layers.57.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1223 |
"model.layers.57.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1224 |
"model.layers.57.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1225 |
"model.layers.57.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1240 |
"model.layers.57.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1241 |
"model.layers.57.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1242 |
"model.layers.58.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1243 |
+
"model.layers.58.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1244 |
"model.layers.58.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1245 |
+
"model.layers.58.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1246 |
"model.layers.58.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1247 |
"model.layers.58.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1248 |
"model.layers.58.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1263 |
"model.layers.58.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1264 |
"model.layers.58.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1265 |
"model.layers.59.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1266 |
+
"model.layers.59.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1267 |
"model.layers.59.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1268 |
+
"model.layers.59.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1269 |
"model.layers.59.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1270 |
"model.layers.59.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1271 |
"model.layers.59.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1286 |
"model.layers.59.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1287 |
"model.layers.59.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1288 |
"model.layers.6.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1289 |
+
"model.layers.6.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1290 |
"model.layers.6.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1291 |
+
"model.layers.6.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1292 |
"model.layers.6.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1293 |
"model.layers.6.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1294 |
"model.layers.6.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1309 |
"model.layers.6.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1310 |
"model.layers.6.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1311 |
"model.layers.60.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1312 |
+
"model.layers.60.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1313 |
"model.layers.60.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1314 |
+
"model.layers.60.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1315 |
"model.layers.60.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1316 |
"model.layers.60.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1317 |
"model.layers.60.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1332 |
"model.layers.60.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1333 |
"model.layers.60.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1334 |
"model.layers.61.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1335 |
+
"model.layers.61.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1336 |
"model.layers.61.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1337 |
+
"model.layers.61.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1338 |
"model.layers.61.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1339 |
"model.layers.61.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1340 |
"model.layers.61.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1355 |
"model.layers.61.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1356 |
"model.layers.61.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1357 |
"model.layers.62.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1358 |
+
"model.layers.62.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1359 |
"model.layers.62.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1360 |
+
"model.layers.62.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1361 |
"model.layers.62.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1362 |
"model.layers.62.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1363 |
"model.layers.62.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1378 |
"model.layers.62.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1379 |
"model.layers.62.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1380 |
"model.layers.63.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1381 |
+
"model.layers.63.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1382 |
"model.layers.63.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1383 |
+
"model.layers.63.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1384 |
"model.layers.63.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1385 |
"model.layers.63.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1386 |
"model.layers.63.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1401 |
"model.layers.63.mlp.shared_expert.down_proj.weight": "model-00002-of-00045.safetensors",
|
| 1402 |
"model.layers.63.mlp.shared_expert.down_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1403 |
"model.layers.64.self_attn.k_norm.weight": "model-00002-of-00045.safetensors",
|
| 1404 |
+
"model.layers.64.self_attn.k_scale": "model-00002-of-00045.safetensors",
|
| 1405 |
"model.layers.64.self_attn.q_norm.weight": "model-00002-of-00045.safetensors",
|
| 1406 |
+
"model.layers.64.self_attn.v_scale": "model-00002-of-00045.safetensors",
|
| 1407 |
"model.layers.64.self_attn.g_proj.weight": "model-00002-of-00045.safetensors",
|
| 1408 |
"model.layers.64.self_attn.g_proj.weight_scale": "model-00002-of-00045.safetensors",
|
| 1409 |
"model.layers.64.self_attn.k_proj.weight": "model-00002-of-00045.safetensors",
|
|
|
|
| 1424 |
"model.layers.64.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1425 |
"model.layers.64.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1426 |
"model.layers.65.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1427 |
+
"model.layers.65.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1428 |
"model.layers.65.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1429 |
+
"model.layers.65.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1430 |
"model.layers.65.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1431 |
"model.layers.65.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1432 |
"model.layers.65.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1447 |
"model.layers.65.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1448 |
"model.layers.65.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1449 |
"model.layers.66.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1450 |
+
"model.layers.66.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1451 |
"model.layers.66.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1452 |
+
"model.layers.66.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1453 |
"model.layers.66.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1454 |
"model.layers.66.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1455 |
"model.layers.66.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1470 |
"model.layers.66.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1471 |
"model.layers.66.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1472 |
"model.layers.67.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1473 |
+
"model.layers.67.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1474 |
"model.layers.67.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1475 |
+
"model.layers.67.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1476 |
"model.layers.67.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1477 |
"model.layers.67.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1478 |
"model.layers.67.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1493 |
"model.layers.67.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1494 |
"model.layers.67.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1495 |
"model.layers.68.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1496 |
+
"model.layers.68.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1497 |
"model.layers.68.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1498 |
+
"model.layers.68.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1499 |
"model.layers.68.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1500 |
"model.layers.68.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1501 |
"model.layers.68.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1516 |
"model.layers.68.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1517 |
"model.layers.68.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1518 |
"model.layers.69.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1519 |
+
"model.layers.69.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1520 |
"model.layers.69.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1521 |
+
"model.layers.69.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1522 |
"model.layers.69.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1523 |
"model.layers.69.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1524 |
"model.layers.69.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1539 |
"model.layers.69.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1540 |
"model.layers.69.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1541 |
"model.layers.7.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1542 |
+
"model.layers.7.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1543 |
"model.layers.7.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1544 |
+
"model.layers.7.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1545 |
"model.layers.7.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1546 |
"model.layers.7.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1547 |
"model.layers.7.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1562 |
"model.layers.7.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1563 |
"model.layers.7.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1564 |
"model.layers.8.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1565 |
+
"model.layers.8.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1566 |
"model.layers.8.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1567 |
+
"model.layers.8.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1568 |
"model.layers.8.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1569 |
"model.layers.8.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1570 |
"model.layers.8.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 1585 |
"model.layers.8.mlp.shared_expert.down_proj.weight": "model-00003-of-00045.safetensors",
|
| 1586 |
"model.layers.8.mlp.shared_expert.down_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1587 |
"model.layers.9.self_attn.k_norm.weight": "model-00003-of-00045.safetensors",
|
| 1588 |
+
"model.layers.9.self_attn.k_scale": "model-00003-of-00045.safetensors",
|
| 1589 |
"model.layers.9.self_attn.q_norm.weight": "model-00003-of-00045.safetensors",
|
| 1590 |
+
"model.layers.9.self_attn.v_scale": "model-00003-of-00045.safetensors",
|
| 1591 |
"model.layers.9.self_attn.g_proj.weight": "model-00003-of-00045.safetensors",
|
| 1592 |
"model.layers.9.self_attn.g_proj.weight_scale": "model-00003-of-00045.safetensors",
|
| 1593 |
"model.layers.9.self_attn.k_proj.weight": "model-00003-of-00045.safetensors",
|
|
|
|
| 104521 |
"model.layers.69.mlp.experts.255.down_proj.weight": "model-00045-of-00045.safetensors",
|
| 104522 |
"model.layers.69.mlp.experts.255.gate_proj.weight_scale": "model-00045-of-00045.safetensors",
|
| 104523 |
"model.layers.69.mlp.experts.255.up_proj.weight_scale": "model-00045-of-00045.safetensors",
|
| 104524 |
+
"model.layers.69.mlp.experts.255.down_proj.weight_scale": "model-00045-of-00045.safetensors"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104525 |
}
|
| 104526 |
+
}
|
modeling_laguna.py
CHANGED
|
@@ -12,30 +12,36 @@
|
|
| 12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
# See the License for the specific language governing permissions and
|
| 14 |
# limitations under the License.
|
| 15 |
-
"""
|
| 16 |
-
Laguna model implementation for transformers 4.56-4.x (used by vLLM).
|
| 17 |
-
|
| 18 |
-
This avoids v5-only APIs (use_kernel_forward_from_hub, create_causal_mask,
|
| 19 |
-
dynamic_rope_update, auto_docstring, can_return_tuple, etc.) while keeping
|
| 20 |
-
the architecture identical to the v5 version.
|
| 21 |
-
"""
|
| 22 |
|
| 23 |
from typing import Optional
|
|
|
|
| 24 |
|
| 25 |
import torch
|
| 26 |
import torch.nn.functional as F
|
| 27 |
from torch import nn
|
|
|
|
|
|
|
| 28 |
from transformers.generation import GenerationMixin
|
| 29 |
from transformers.activations import ACT2FN
|
| 30 |
from transformers.cache_utils import Cache, DynamicCache
|
| 31 |
-
from transformers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
from transformers.modeling_utils import ALL_ATTENTION_FUNCTIONS, PreTrainedModel
|
|
|
|
| 33 |
from transformers.modeling_outputs import MoeModelOutputWithPast, MoeCausalLMOutputWithPast
|
| 34 |
-
from transformers.
|
|
|
|
|
|
|
| 35 |
|
| 36 |
from .configuration_laguna import LagunaConfig
|
| 37 |
|
| 38 |
|
|
|
|
| 39 |
class LagunaRMSNorm(nn.Module):
|
| 40 |
def __init__(self, hidden_size, eps=1e-6):
|
| 41 |
"""
|
|
@@ -66,41 +72,55 @@ class LagunaRotaryEmbedding(nn.Module):
|
|
| 66 |
|
| 67 |
self.config = config
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
if
|
| 72 |
-
rope_type = config.rope_scaling.get("rope_type", config.rope_scaling.get("type", "default"))
|
| 73 |
-
|
| 74 |
-
self.rope_type = rope_type
|
| 75 |
-
if self.rope_type == "default":
|
| 76 |
-
inv_freq, self.attention_scaling = self._compute_default_rope_parameters(config, device)
|
| 77 |
-
else:
|
| 78 |
rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
|
| 79 |
-
|
| 80 |
|
| 81 |
self.register_buffer("inv_freq", inv_freq, persistent=False)
|
| 82 |
self.register_buffer("original_inv_freq", inv_freq.clone(), persistent=False)
|
| 83 |
|
| 84 |
@staticmethod
|
| 85 |
-
def
|
| 86 |
-
config: LagunaConfig,
|
| 87 |
device: Optional["torch.device"] = None,
|
|
|
|
| 88 |
) -> tuple["torch.Tensor", float]:
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
dim = getattr(config, "head_dim", None) or config.hidden_size // config.num_attention_heads
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
| 92 |
inv_freq = 1.0 / (
|
| 93 |
base ** (torch.arange(0, dim, 2, dtype=torch.int64).to(device=device, dtype=torch.float) / dim)
|
| 94 |
)
|
| 95 |
return inv_freq, attention_factor
|
| 96 |
|
| 97 |
@torch.no_grad()
|
|
|
|
| 98 |
def forward(self, x, position_ids):
|
| 99 |
inv_freq_expanded = self.inv_freq[None, :, None].float().expand(position_ids.shape[0], -1, 1).to(x.device)
|
| 100 |
position_ids_expanded = position_ids[:, None, :].float()
|
| 101 |
|
| 102 |
device_type = x.device.type if isinstance(x.device.type, str) and x.device.type != "mps" else "cpu"
|
| 103 |
-
with
|
| 104 |
freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2)
|
| 105 |
emb = torch.cat((freqs, freqs), dim=-1)
|
| 106 |
cos = emb.cos() * self.attention_scaling
|
|
@@ -200,8 +220,27 @@ def rotate_half(x):
|
|
| 200 |
return torch.cat((-x2, x1), dim=-1)
|
| 201 |
|
| 202 |
|
|
|
|
| 203 |
def apply_rotary_pos_emb(q, k, cos, sin, unsqueeze_dim=1):
|
| 204 |
-
"""Applies Rotary Position Embedding to the query and key tensors.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
cos = cos.unsqueeze(unsqueeze_dim)
|
| 206 |
sin = sin.unsqueeze(unsqueeze_dim)
|
| 207 |
q_embed = (q * cos) + (rotate_half(q) * sin)
|
|
@@ -229,7 +268,7 @@ def eager_attention_forward(
|
|
| 229 |
attention_mask: torch.Tensor | None,
|
| 230 |
scaling: float,
|
| 231 |
dropout: float = 0.0,
|
| 232 |
-
**kwargs,
|
| 233 |
):
|
| 234 |
key_states = repeat_kv(key, module.num_key_value_groups)
|
| 235 |
value_states = repeat_kv(value, module.num_key_value_groups)
|
|
@@ -247,9 +286,13 @@ def eager_attention_forward(
|
|
| 247 |
return attn_output, attn_weights
|
| 248 |
|
| 249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
class LagunaAttention(nn.Module):
|
| 251 |
-
"""Laguna attention with QK normalization and output gating."""
|
| 252 |
-
|
| 253 |
def __init__(self, config: LagunaConfig, layer_idx: int):
|
| 254 |
super().__init__()
|
| 255 |
self.config = config
|
|
@@ -278,7 +321,7 @@ class LagunaAttention(nn.Module):
|
|
| 278 |
attention_mask: torch.Tensor | None,
|
| 279 |
past_key_values: Cache | None = None,
|
| 280 |
cache_position: torch.LongTensor | None = None,
|
| 281 |
-
**kwargs,
|
| 282 |
) -> tuple[torch.Tensor, torch.Tensor | None]:
|
| 283 |
input_shape = hidden_states.shape[:-1]
|
| 284 |
hidden_shape = (*input_shape, -1, self.head_dim)
|
|
@@ -299,10 +342,11 @@ class LagunaAttention(nn.Module):
|
|
| 299 |
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)
|
| 300 |
|
| 301 |
if past_key_values is not None:
|
|
|
|
| 302 |
cache_kwargs = {"sin": sin, "cos": cos, "cache_position": cache_position}
|
| 303 |
key_states, value_states = past_key_values.update(key_states, value_states, self.layer_idx, cache_kwargs)
|
| 304 |
|
| 305 |
-
attention_interface = eager_attention_forward
|
| 306 |
if self.config._attn_implementation != "eager":
|
| 307 |
attention_interface = ALL_ATTENTION_FUNCTIONS[self.config._attn_implementation]
|
| 308 |
|
|
@@ -320,6 +364,7 @@ class LagunaAttention(nn.Module):
|
|
| 320 |
attn_output = attn_output.reshape(*input_shape, -1).contiguous()
|
| 321 |
|
| 322 |
# Laguna-specific: apply gating BEFORE o_proj
|
|
|
|
| 323 |
gate = F.softplus(self.g_proj(hidden_states).float()).to(attn_output.dtype)
|
| 324 |
attn_output = attn_output * gate
|
| 325 |
|
|
@@ -328,7 +373,7 @@ class LagunaAttention(nn.Module):
|
|
| 328 |
return attn_output, attn_weights
|
| 329 |
|
| 330 |
|
| 331 |
-
class LagunaDecoderLayer(
|
| 332 |
"""Laguna decoder layer with gated attention and sigmoid-routed MoE."""
|
| 333 |
|
| 334 |
def __init__(self, config: LagunaConfig, layer_idx: int):
|
|
@@ -354,7 +399,7 @@ class LagunaDecoderLayer(nn.Module):
|
|
| 354 |
use_cache: bool | None = False,
|
| 355 |
cache_position: torch.LongTensor | None = None,
|
| 356 |
position_embeddings: tuple[torch.Tensor, torch.Tensor] | None = None,
|
| 357 |
-
**kwargs,
|
| 358 |
) -> torch.Tensor:
|
| 359 |
residual = hidden_states
|
| 360 |
hidden_states = self.input_layernorm(hidden_states)
|
|
@@ -379,63 +424,32 @@ class LagunaDecoderLayer(nn.Module):
|
|
| 379 |
return hidden_states
|
| 380 |
|
| 381 |
|
|
|
|
| 382 |
class LagunaPreTrainedModel(PreTrainedModel):
|
| 383 |
-
|
| 384 |
base_model_prefix = "model"
|
| 385 |
supports_gradient_checkpointing = True
|
| 386 |
_no_split_modules = ["LagunaDecoderLayer"]
|
| 387 |
_skip_keys_device_placement = ["past_key_values"]
|
| 388 |
-
|
| 389 |
_supports_sdpa = True
|
| 390 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 391 |
_can_record_outputs = {
|
| 392 |
"router_logits": OutputRecorder(LagunaTopKRouter, index=0),
|
| 393 |
"hidden_states": LagunaDecoderLayer,
|
| 394 |
"attentions": LagunaAttention,
|
| 395 |
}
|
| 396 |
|
|
|
|
| 397 |
def _init_weights(self, module):
|
|
|
|
| 398 |
std = self.config.initializer_range
|
| 399 |
-
if isinstance(module,
|
| 400 |
-
|
| 401 |
-
if module.bias is not None:
|
| 402 |
-
module.bias.data.zero_()
|
| 403 |
-
elif isinstance(module, nn.Embedding):
|
| 404 |
-
module.weight.data.normal_(mean=0.0, std=std)
|
| 405 |
-
if module.padding_idx is not None:
|
| 406 |
-
module.weight.data[module.padding_idx].zero_()
|
| 407 |
-
elif isinstance(module, LagunaTopKRouter):
|
| 408 |
-
module.weight.data.normal_(mean=0.0, std=std)
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
def _prepare_4d_causal_attention_mask_with_cache_position(
|
| 412 |
-
attention_mask: torch.Tensor,
|
| 413 |
-
sequence_length: int,
|
| 414 |
-
target_length: int,
|
| 415 |
-
dtype: torch.dtype,
|
| 416 |
-
device: torch.device,
|
| 417 |
-
cache_position: torch.Tensor,
|
| 418 |
-
batch_size: int,
|
| 419 |
-
):
|
| 420 |
-
"""Create 4D causal mask from 2D attention mask, compatible with transformers 4.x."""
|
| 421 |
-
if attention_mask is not None and attention_mask.dim() == 4:
|
| 422 |
-
# Already a 4D mask
|
| 423 |
-
causal_mask = attention_mask
|
| 424 |
-
else:
|
| 425 |
-
min_dtype = torch.finfo(dtype).min
|
| 426 |
-
causal_mask = torch.full((sequence_length, target_length), fill_value=min_dtype, dtype=dtype, device=device)
|
| 427 |
-
if sequence_length != 1:
|
| 428 |
-
causal_mask = torch.triu(causal_mask, diagonal=1)
|
| 429 |
-
causal_mask *= torch.arange(target_length, device=device) > cache_position.reshape(-1, 1)
|
| 430 |
-
causal_mask = causal_mask[None, None, :, :].expand(batch_size, 1, -1, -1)
|
| 431 |
-
if attention_mask is not None:
|
| 432 |
-
causal_mask = causal_mask.clone()
|
| 433 |
-
mask_length = attention_mask.shape[-1]
|
| 434 |
-
padding_mask = causal_mask[:, :, :, :mask_length] + attention_mask[:, None, None, :]
|
| 435 |
-
padding_mask = padding_mask == 0
|
| 436 |
-
causal_mask[:, :, :, :mask_length] = causal_mask[:, :, :, :mask_length].masked_fill(padding_mask, min_dtype)
|
| 437 |
-
|
| 438 |
-
return causal_mask
|
| 439 |
|
| 440 |
|
| 441 |
class LagunaModel(LagunaPreTrainedModel):
|
|
@@ -465,13 +479,13 @@ class LagunaModel(LagunaPreTrainedModel):
|
|
| 465 |
inputs_embeds: torch.FloatTensor | None = None,
|
| 466 |
use_cache: bool | None = None,
|
| 467 |
cache_position: torch.LongTensor | None = None,
|
| 468 |
-
**kwargs,
|
| 469 |
):
|
| 470 |
if (input_ids is None) ^ (inputs_embeds is not None):
|
| 471 |
raise ValueError("You must specify exactly one of input_ids or inputs_embeds")
|
| 472 |
|
| 473 |
if use_cache and past_key_values is None:
|
| 474 |
-
past_key_values = DynamicCache()
|
| 475 |
|
| 476 |
if inputs_embeds is None:
|
| 477 |
inputs_embeds = self.embed_tokens(input_ids)
|
|
@@ -485,42 +499,30 @@ class LagunaModel(LagunaPreTrainedModel):
|
|
| 485 |
if position_ids is None:
|
| 486 |
position_ids = cache_position.unsqueeze(0)
|
| 487 |
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
device=inputs_embeds.device,
|
| 494 |
cache_position=cache_position,
|
| 495 |
-
|
|
|
|
| 496 |
)
|
| 497 |
|
| 498 |
hidden_states = inputs_embeds
|
| 499 |
position_embeddings = self.rotary_emb(hidden_states, position_ids)
|
| 500 |
|
| 501 |
for decoder_layer in self.layers[: self.config.num_hidden_layers]:
|
| 502 |
-
|
| 503 |
-
hidden_states
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
)
|
| 513 |
-
else:
|
| 514 |
-
hidden_states = decoder_layer(
|
| 515 |
-
hidden_states,
|
| 516 |
-
attention_mask=causal_mask,
|
| 517 |
-
position_ids=position_ids,
|
| 518 |
-
past_key_values=past_key_values,
|
| 519 |
-
use_cache=use_cache,
|
| 520 |
-
cache_position=cache_position,
|
| 521 |
-
position_embeddings=position_embeddings,
|
| 522 |
-
**kwargs,
|
| 523 |
-
)
|
| 524 |
|
| 525 |
hidden_states = self.norm(hidden_states)
|
| 526 |
|
|
@@ -537,9 +539,28 @@ def load_balancing_loss_func(
|
|
| 537 |
attention_mask: torch.Tensor | None = None,
|
| 538 |
) -> torch.Tensor | int:
|
| 539 |
r"""
|
| 540 |
-
Computes auxiliary load balancing loss as in Switch Transformer.
|
| 541 |
-
|
| 542 |
-
See Switch Transformer (https://huggingface.co/papers/2101.03961) for more details.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 543 |
"""
|
| 544 |
if gate_logits is None or not isinstance(gate_logits, tuple):
|
| 545 |
return 0
|
|
@@ -555,12 +576,16 @@ def load_balancing_loss_func(
|
|
| 555 |
expert_mask = torch.nn.functional.one_hot(selected_experts, num_experts)
|
| 556 |
|
| 557 |
if attention_mask is None:
|
|
|
|
| 558 |
tokens_per_expert = torch.mean(expert_mask.float(), dim=0)
|
|
|
|
|
|
|
| 559 |
router_prob_per_expert = torch.mean(routing_weights, dim=0)
|
| 560 |
else:
|
| 561 |
batch_size, sequence_length = attention_mask.shape
|
| 562 |
num_hidden_layers = concatenated_gate_logits.shape[0] // (batch_size * sequence_length)
|
| 563 |
|
|
|
|
| 564 |
expert_attention_mask = (
|
| 565 |
attention_mask[None, :, :, None, None]
|
| 566 |
.expand((num_hidden_layers, batch_size, sequence_length, top_k, num_experts))
|
|
@@ -568,10 +593,12 @@ def load_balancing_loss_func(
|
|
| 568 |
.to(compute_device)
|
| 569 |
)
|
| 570 |
|
|
|
|
| 571 |
tokens_per_expert = torch.sum(expert_mask.float() * expert_attention_mask, dim=0) / torch.sum(
|
| 572 |
expert_attention_mask, dim=0
|
| 573 |
)
|
| 574 |
|
|
|
|
| 575 |
router_per_expert_attention_mask = (
|
| 576 |
attention_mask[None, :, :, None]
|
| 577 |
.expand((num_hidden_layers, batch_size, sequence_length, num_experts))
|
|
@@ -579,6 +606,7 @@ def load_balancing_loss_func(
|
|
| 579 |
.to(compute_device)
|
| 580 |
)
|
| 581 |
|
|
|
|
| 582 |
router_prob_per_expert = torch.sum(routing_weights * router_per_expert_attention_mask, dim=0) / torch.sum(
|
| 583 |
router_per_expert_attention_mask, dim=0
|
| 584 |
)
|
|
@@ -587,9 +615,11 @@ def load_balancing_loss_func(
|
|
| 587 |
return overall_loss * num_experts
|
| 588 |
|
| 589 |
|
|
|
|
| 590 |
class LagunaForCausalLM(LagunaPreTrainedModel, GenerationMixin):
|
| 591 |
_tied_weights_keys = {"lm_head.weight": "model.embed_tokens.weight"}
|
| 592 |
_tp_plan = {"lm_head": "colwise_rep"}
|
|
|
|
| 593 |
|
| 594 |
def __init__(self, config):
|
| 595 |
super().__init__(config)
|
|
@@ -603,6 +633,8 @@ class LagunaForCausalLM(LagunaPreTrainedModel, GenerationMixin):
|
|
| 603 |
# Initialize weights and apply final processing
|
| 604 |
self.post_init()
|
| 605 |
|
|
|
|
|
|
|
| 606 |
def forward(
|
| 607 |
self,
|
| 608 |
input_ids: torch.LongTensor | None = None,
|
|
@@ -615,17 +647,21 @@ class LagunaForCausalLM(LagunaPreTrainedModel, GenerationMixin):
|
|
| 615 |
output_router_logits: bool | None = None,
|
| 616 |
cache_position: torch.LongTensor | None = None,
|
| 617 |
logits_to_keep: int | torch.Tensor = 0,
|
| 618 |
-
**kwargs,
|
| 619 |
) -> MoeCausalLMOutputWithPast:
|
| 620 |
r"""
|
| 621 |
-
Labels
|
| 622 |
-
|
| 623 |
-
|
|
|
|
| 624 |
"""
|
|
|
|
|
|
|
| 625 |
output_router_logits = (
|
| 626 |
output_router_logits if output_router_logits is not None else self.config.output_router_logits
|
| 627 |
)
|
| 628 |
|
|
|
|
| 629 |
outputs: MoeModelOutputWithPast = self.model(
|
| 630 |
input_ids=input_ids,
|
| 631 |
attention_mask=attention_mask,
|
|
@@ -639,6 +675,7 @@ class LagunaForCausalLM(LagunaPreTrainedModel, GenerationMixin):
|
|
| 639 |
)
|
| 640 |
|
| 641 |
hidden_states = outputs.last_hidden_state
|
|
|
|
| 642 |
slice_indices = slice(-logits_to_keep, None) if isinstance(logits_to_keep, int) else logits_to_keep
|
| 643 |
logits = self.lm_head(hidden_states[:, slice_indices, :])
|
| 644 |
|
|
|
|
| 12 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
# See the License for the specific language governing permissions and
|
| 14 |
# limitations under the License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
from typing import Optional
|
| 17 |
+
from collections.abc import Callable
|
| 18 |
|
| 19 |
import torch
|
| 20 |
import torch.nn.functional as F
|
| 21 |
from torch import nn
|
| 22 |
+
from transformers import initialization as init
|
| 23 |
+
from transformers.utils import auto_docstring, can_return_tuple, is_grouped_mm_available
|
| 24 |
from transformers.generation import GenerationMixin
|
| 25 |
from transformers.activations import ACT2FN
|
| 26 |
from transformers.cache_utils import Cache, DynamicCache
|
| 27 |
+
from transformers.integrations import (
|
| 28 |
+
use_kernelized_func,
|
| 29 |
+
use_kernel_func_from_hub,
|
| 30 |
+
use_kernel_forward_from_hub,
|
| 31 |
+
)
|
| 32 |
+
from transformers.masking_utils import create_causal_mask
|
| 33 |
+
from transformers.utils.generic import OutputRecorder, TransformersKwargs, maybe_autocast, check_model_inputs
|
| 34 |
from transformers.modeling_utils import ALL_ATTENTION_FUNCTIONS, PreTrainedModel
|
| 35 |
+
from transformers.modeling_layers import GradientCheckpointingLayer
|
| 36 |
from transformers.modeling_outputs import MoeModelOutputWithPast, MoeCausalLMOutputWithPast
|
| 37 |
+
from transformers.processing_utils import Unpack
|
| 38 |
+
from transformers.modeling_rope_utils import ROPE_INIT_FUNCTIONS, dynamic_rope_update
|
| 39 |
+
from transformers.modeling_flash_attention_utils import FlashAttentionKwargs
|
| 40 |
|
| 41 |
from .configuration_laguna import LagunaConfig
|
| 42 |
|
| 43 |
|
| 44 |
+
@use_kernel_forward_from_hub("RMSNorm")
|
| 45 |
class LagunaRMSNorm(nn.Module):
|
| 46 |
def __init__(self, hidden_size, eps=1e-6):
|
| 47 |
"""
|
|
|
|
| 72 |
|
| 73 |
self.config = config
|
| 74 |
|
| 75 |
+
self.rope_type = self.config.rope_parameters["rope_type"]
|
| 76 |
+
rope_init_fn: Callable = self.compute_default_rope_parameters
|
| 77 |
+
if self.rope_type != "default":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
|
| 79 |
+
inv_freq, self.attention_scaling = rope_init_fn(self.config, device)
|
| 80 |
|
| 81 |
self.register_buffer("inv_freq", inv_freq, persistent=False)
|
| 82 |
self.register_buffer("original_inv_freq", inv_freq.clone(), persistent=False)
|
| 83 |
|
| 84 |
@staticmethod
|
| 85 |
+
def compute_default_rope_parameters(
|
| 86 |
+
config: LagunaConfig | None = None,
|
| 87 |
device: Optional["torch.device"] = None,
|
| 88 |
+
seq_len: int | None = None,
|
| 89 |
) -> tuple["torch.Tensor", float]:
|
| 90 |
+
"""
|
| 91 |
+
Computes the inverse frequencies according to the original RoPE implementation
|
| 92 |
+
Args:
|
| 93 |
+
config ([`~transformers.PreTrainedConfig`]):
|
| 94 |
+
The model configuration.
|
| 95 |
+
device (`torch.device`):
|
| 96 |
+
The device to use for initialization of the inverse frequencies.
|
| 97 |
+
seq_len (`int`, *optional*):
|
| 98 |
+
The current sequence length. Unused for this type of RoPE.
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
Tuple of (`torch.Tensor`, `float`), containing the inverse frequencies for the RoPE embeddings and the
|
| 103 |
+
post-processing scaling factor applied to the computed cos/sin (unused in this type of RoPE).
|
| 104 |
+
"""
|
| 105 |
+
base = config.rope_parameters["rope_theta"]
|
| 106 |
dim = getattr(config, "head_dim", None) or config.hidden_size // config.num_attention_heads
|
| 107 |
+
|
| 108 |
+
attention_factor = 1.0 # Unused in this type of RoPE
|
| 109 |
+
|
| 110 |
+
# Compute the inverse frequencies
|
| 111 |
inv_freq = 1.0 / (
|
| 112 |
base ** (torch.arange(0, dim, 2, dtype=torch.int64).to(device=device, dtype=torch.float) / dim)
|
| 113 |
)
|
| 114 |
return inv_freq, attention_factor
|
| 115 |
|
| 116 |
@torch.no_grad()
|
| 117 |
+
@dynamic_rope_update # power user: used with advanced RoPE types (e.g. dynamic rope)
|
| 118 |
def forward(self, x, position_ids):
|
| 119 |
inv_freq_expanded = self.inv_freq[None, :, None].float().expand(position_ids.shape[0], -1, 1).to(x.device)
|
| 120 |
position_ids_expanded = position_ids[:, None, :].float()
|
| 121 |
|
| 122 |
device_type = x.device.type if isinstance(x.device.type, str) and x.device.type != "mps" else "cpu"
|
| 123 |
+
with maybe_autocast(device_type=device_type, enabled=False): # Force float32
|
| 124 |
freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2)
|
| 125 |
emb = torch.cat((freqs, freqs), dim=-1)
|
| 126 |
cos = emb.cos() * self.attention_scaling
|
|
|
|
| 220 |
return torch.cat((-x2, x1), dim=-1)
|
| 221 |
|
| 222 |
|
| 223 |
+
@use_kernel_func_from_hub("rotary_pos_emb")
|
| 224 |
def apply_rotary_pos_emb(q, k, cos, sin, unsqueeze_dim=1):
|
| 225 |
+
"""Applies Rotary Position Embedding to the query and key tensors.
|
| 226 |
+
|
| 227 |
+
Args:
|
| 228 |
+
q (`torch.Tensor`): The query tensor.
|
| 229 |
+
k (`torch.Tensor`): The key tensor.
|
| 230 |
+
cos (`torch.Tensor`): The cosine part of the rotary embedding.
|
| 231 |
+
sin (`torch.Tensor`): The sine part of the rotary embedding.
|
| 232 |
+
unsqueeze_dim (`int`, *optional*, defaults to 1):
|
| 233 |
+
The 'unsqueeze_dim' argument specifies the dimension along which to unsqueeze cos[position_ids] and
|
| 234 |
+
sin[position_ids] so that they can be properly broadcasted to the dimensions of q and k. For example, note
|
| 235 |
+
that cos[position_ids] and sin[position_ids] have the shape [batch_size, seq_len, head_dim]. Then, if q and
|
| 236 |
+
k have the shape [batch_size, heads, seq_len, head_dim], then setting unsqueeze_dim=1 makes
|
| 237 |
+
cos[position_ids] and sin[position_ids] broadcastable to the shapes of q and k. Similarly, if q and k have
|
| 238 |
+
the shape [batch_size, seq_len, heads, head_dim], then set unsqueeze_dim=2.
|
| 239 |
+
|
| 240 |
+
Returns
|
| 241 |
+
-------
|
| 242 |
+
`tuple(torch.Tensor)` comprising of the query and key tensors rotated using the Rotary Position Embedding.
|
| 243 |
+
"""
|
| 244 |
cos = cos.unsqueeze(unsqueeze_dim)
|
| 245 |
sin = sin.unsqueeze(unsqueeze_dim)
|
| 246 |
q_embed = (q * cos) + (rotate_half(q) * sin)
|
|
|
|
| 268 |
attention_mask: torch.Tensor | None,
|
| 269 |
scaling: float,
|
| 270 |
dropout: float = 0.0,
|
| 271 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 272 |
):
|
| 273 |
key_states = repeat_kv(key, module.num_key_value_groups)
|
| 274 |
value_states = repeat_kv(value, module.num_key_value_groups)
|
|
|
|
| 286 |
return attn_output, attn_weights
|
| 287 |
|
| 288 |
|
| 289 |
+
# Laguna attention is identical to Qwen2MoE attention except:
|
| 290 |
+
# - No QKV bias
|
| 291 |
+
# - Explicit head_dim from config
|
| 292 |
+
# - Output gating: attn_output = attn_output * softplus(g_proj(hidden_states))
|
| 293 |
+
# - No sliding window (full attention only)
|
| 294 |
+
@use_kernelized_func(apply_rotary_pos_emb)
|
| 295 |
class LagunaAttention(nn.Module):
|
|
|
|
|
|
|
| 296 |
def __init__(self, config: LagunaConfig, layer_idx: int):
|
| 297 |
super().__init__()
|
| 298 |
self.config = config
|
|
|
|
| 321 |
attention_mask: torch.Tensor | None,
|
| 322 |
past_key_values: Cache | None = None,
|
| 323 |
cache_position: torch.LongTensor | None = None,
|
| 324 |
+
**kwargs: Unpack[FlashAttentionKwargs],
|
| 325 |
) -> tuple[torch.Tensor, torch.Tensor | None]:
|
| 326 |
input_shape = hidden_states.shape[:-1]
|
| 327 |
hidden_shape = (*input_shape, -1, self.head_dim)
|
|
|
|
| 342 |
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)
|
| 343 |
|
| 344 |
if past_key_values is not None:
|
| 345 |
+
# sin and cos are specific to RoPE models; cache_position needed for the static cache
|
| 346 |
cache_kwargs = {"sin": sin, "cos": cos, "cache_position": cache_position}
|
| 347 |
key_states, value_states = past_key_values.update(key_states, value_states, self.layer_idx, cache_kwargs)
|
| 348 |
|
| 349 |
+
attention_interface: Callable = eager_attention_forward
|
| 350 |
if self.config._attn_implementation != "eager":
|
| 351 |
attention_interface = ALL_ATTENTION_FUNCTIONS[self.config._attn_implementation]
|
| 352 |
|
|
|
|
| 364 |
attn_output = attn_output.reshape(*input_shape, -1).contiguous()
|
| 365 |
|
| 366 |
# Laguna-specific: apply gating BEFORE o_proj
|
| 367 |
+
# gate values are computed from original hidden_states, applied in attention dimension
|
| 368 |
gate = F.softplus(self.g_proj(hidden_states).float()).to(attn_output.dtype)
|
| 369 |
attn_output = attn_output * gate
|
| 370 |
|
|
|
|
| 373 |
return attn_output, attn_weights
|
| 374 |
|
| 375 |
|
| 376 |
+
class LagunaDecoderLayer(GradientCheckpointingLayer):
|
| 377 |
"""Laguna decoder layer with gated attention and sigmoid-routed MoE."""
|
| 378 |
|
| 379 |
def __init__(self, config: LagunaConfig, layer_idx: int):
|
|
|
|
| 399 |
use_cache: bool | None = False,
|
| 400 |
cache_position: torch.LongTensor | None = None,
|
| 401 |
position_embeddings: tuple[torch.Tensor, torch.Tensor] | None = None,
|
| 402 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 403 |
) -> torch.Tensor:
|
| 404 |
residual = hidden_states
|
| 405 |
hidden_states = self.input_layernorm(hidden_states)
|
|
|
|
| 424 |
return hidden_states
|
| 425 |
|
| 426 |
|
| 427 |
+
@auto_docstring
|
| 428 |
class LagunaPreTrainedModel(PreTrainedModel):
|
| 429 |
+
config: LagunaConfig
|
| 430 |
base_model_prefix = "model"
|
| 431 |
supports_gradient_checkpointing = True
|
| 432 |
_no_split_modules = ["LagunaDecoderLayer"]
|
| 433 |
_skip_keys_device_placement = ["past_key_values"]
|
| 434 |
+
_supports_flash_attn = True
|
| 435 |
_supports_sdpa = True
|
| 436 |
+
_supports_flex_attn = True
|
| 437 |
+
_can_compile_fullgraph = (
|
| 438 |
+
is_grouped_mm_available()
|
| 439 |
+
) # https://huggingface.co/docs/transformers/experts_interface#torchcompile
|
| 440 |
+
_supports_attention_backend = True
|
| 441 |
_can_record_outputs = {
|
| 442 |
"router_logits": OutputRecorder(LagunaTopKRouter, index=0),
|
| 443 |
"hidden_states": LagunaDecoderLayer,
|
| 444 |
"attentions": LagunaAttention,
|
| 445 |
}
|
| 446 |
|
| 447 |
+
@torch.no_grad()
|
| 448 |
def _init_weights(self, module):
|
| 449 |
+
super()._init_weights(module)
|
| 450 |
std = self.config.initializer_range
|
| 451 |
+
if isinstance(module, LagunaTopKRouter):
|
| 452 |
+
init.normal_(module.weight, mean=0.0, std=std)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
|
| 454 |
|
| 455 |
class LagunaModel(LagunaPreTrainedModel):
|
|
|
|
| 479 |
inputs_embeds: torch.FloatTensor | None = None,
|
| 480 |
use_cache: bool | None = None,
|
| 481 |
cache_position: torch.LongTensor | None = None,
|
| 482 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 483 |
):
|
| 484 |
if (input_ids is None) ^ (inputs_embeds is not None):
|
| 485 |
raise ValueError("You must specify exactly one of input_ids or inputs_embeds")
|
| 486 |
|
| 487 |
if use_cache and past_key_values is None:
|
| 488 |
+
past_key_values = DynamicCache(config=self.config)
|
| 489 |
|
| 490 |
if inputs_embeds is None:
|
| 491 |
inputs_embeds = self.embed_tokens(input_ids)
|
|
|
|
| 499 |
if position_ids is None:
|
| 500 |
position_ids = cache_position.unsqueeze(0)
|
| 501 |
|
| 502 |
+
# Laguna uses full attention only (no sliding window)
|
| 503 |
+
causal_mask = create_causal_mask(
|
| 504 |
+
config=self.config,
|
| 505 |
+
input_embeds=inputs_embeds,
|
| 506 |
+
attention_mask=attention_mask,
|
|
|
|
| 507 |
cache_position=cache_position,
|
| 508 |
+
past_key_values=past_key_values,
|
| 509 |
+
position_ids=position_ids,
|
| 510 |
)
|
| 511 |
|
| 512 |
hidden_states = inputs_embeds
|
| 513 |
position_embeddings = self.rotary_emb(hidden_states, position_ids)
|
| 514 |
|
| 515 |
for decoder_layer in self.layers[: self.config.num_hidden_layers]:
|
| 516 |
+
hidden_states = decoder_layer(
|
| 517 |
+
hidden_states,
|
| 518 |
+
attention_mask=causal_mask,
|
| 519 |
+
position_ids=position_ids,
|
| 520 |
+
past_key_values=past_key_values,
|
| 521 |
+
use_cache=use_cache,
|
| 522 |
+
cache_position=cache_position,
|
| 523 |
+
position_embeddings=position_embeddings,
|
| 524 |
+
**kwargs,
|
| 525 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 526 |
|
| 527 |
hidden_states = self.norm(hidden_states)
|
| 528 |
|
|
|
|
| 539 |
attention_mask: torch.Tensor | None = None,
|
| 540 |
) -> torch.Tensor | int:
|
| 541 |
r"""
|
| 542 |
+
Computes auxiliary load balancing loss as in Switch Transformer - implemented in Pytorch.
|
| 543 |
+
|
| 544 |
+
See Switch Transformer (https://huggingface.co/papers/2101.03961) for more details. This function implements the loss
|
| 545 |
+
function presented in equations (4) - (6) of the paper. It aims at penalizing cases where the routing between
|
| 546 |
+
experts is too unbalanced.
|
| 547 |
+
|
| 548 |
+
Args:
|
| 549 |
+
gate_logits:
|
| 550 |
+
Logits from the `gate`, should be a tuple of model.config.num_hidden_layers tensors of
|
| 551 |
+
shape [batch_size X sequence_length, num_experts].
|
| 552 |
+
num_experts:
|
| 553 |
+
Number of experts
|
| 554 |
+
top_k:
|
| 555 |
+
The number of experts to route per-token, can be also interpreted as the `top-k` routing
|
| 556 |
+
parameter.
|
| 557 |
+
attention_mask (`torch.Tensor`, *optional*):
|
| 558 |
+
The attention_mask used in forward function
|
| 559 |
+
shape [batch_size X sequence_length] if not None.
|
| 560 |
+
|
| 561 |
+
Returns
|
| 562 |
+
-------
|
| 563 |
+
The auxiliary loss.
|
| 564 |
"""
|
| 565 |
if gate_logits is None or not isinstance(gate_logits, tuple):
|
| 566 |
return 0
|
|
|
|
| 576 |
expert_mask = torch.nn.functional.one_hot(selected_experts, num_experts)
|
| 577 |
|
| 578 |
if attention_mask is None:
|
| 579 |
+
# Compute the percentage of tokens routed to each experts
|
| 580 |
tokens_per_expert = torch.mean(expert_mask.float(), dim=0)
|
| 581 |
+
|
| 582 |
+
# Compute the average probability of routing to these experts
|
| 583 |
router_prob_per_expert = torch.mean(routing_weights, dim=0)
|
| 584 |
else:
|
| 585 |
batch_size, sequence_length = attention_mask.shape
|
| 586 |
num_hidden_layers = concatenated_gate_logits.shape[0] // (batch_size * sequence_length)
|
| 587 |
|
| 588 |
+
# Compute the mask that masks all padding tokens as 0 with the same shape of expert_mask
|
| 589 |
expert_attention_mask = (
|
| 590 |
attention_mask[None, :, :, None, None]
|
| 591 |
.expand((num_hidden_layers, batch_size, sequence_length, top_k, num_experts))
|
|
|
|
| 593 |
.to(compute_device)
|
| 594 |
)
|
| 595 |
|
| 596 |
+
# Compute the percentage of tokens routed to each experts
|
| 597 |
tokens_per_expert = torch.sum(expert_mask.float() * expert_attention_mask, dim=0) / torch.sum(
|
| 598 |
expert_attention_mask, dim=0
|
| 599 |
)
|
| 600 |
|
| 601 |
+
# Compute the mask that masks all padding tokens as 0 with the same shape of tokens_per_expert
|
| 602 |
router_per_expert_attention_mask = (
|
| 603 |
attention_mask[None, :, :, None]
|
| 604 |
.expand((num_hidden_layers, batch_size, sequence_length, num_experts))
|
|
|
|
| 606 |
.to(compute_device)
|
| 607 |
)
|
| 608 |
|
| 609 |
+
# Compute the average probability of routing to these experts
|
| 610 |
router_prob_per_expert = torch.sum(routing_weights * router_per_expert_attention_mask, dim=0) / torch.sum(
|
| 611 |
router_per_expert_attention_mask, dim=0
|
| 612 |
)
|
|
|
|
| 615 |
return overall_loss * num_experts
|
| 616 |
|
| 617 |
|
| 618 |
+
@auto_docstring
|
| 619 |
class LagunaForCausalLM(LagunaPreTrainedModel, GenerationMixin):
|
| 620 |
_tied_weights_keys = {"lm_head.weight": "model.embed_tokens.weight"}
|
| 621 |
_tp_plan = {"lm_head": "colwise_rep"}
|
| 622 |
+
_pp_plan = {"lm_head": (["hidden_states"], ["logits"])}
|
| 623 |
|
| 624 |
def __init__(self, config):
|
| 625 |
super().__init__(config)
|
|
|
|
| 633 |
# Initialize weights and apply final processing
|
| 634 |
self.post_init()
|
| 635 |
|
| 636 |
+
@can_return_tuple
|
| 637 |
+
@auto_docstring
|
| 638 |
def forward(
|
| 639 |
self,
|
| 640 |
input_ids: torch.LongTensor | None = None,
|
|
|
|
| 647 |
output_router_logits: bool | None = None,
|
| 648 |
cache_position: torch.LongTensor | None = None,
|
| 649 |
logits_to_keep: int | torch.Tensor = 0,
|
| 650 |
+
**kwargs: Unpack[TransformersKwargs],
|
| 651 |
) -> MoeCausalLMOutputWithPast:
|
| 652 |
r"""
|
| 653 |
+
Labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
|
| 654 |
+
Labels for computing the masked language modeling loss. Indices should either be in `[0, ...,
|
| 655 |
+
config.vocab_size]` or -100 (see `input_ids` docstring). Tokens with indices set to `-100` are ignored
|
| 656 |
+
(masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`.
|
| 657 |
"""
|
| 658 |
+
# TODO (Joe) add example here after we got rid of the stale mistral example
|
| 659 |
+
|
| 660 |
output_router_logits = (
|
| 661 |
output_router_logits if output_router_logits is not None else self.config.output_router_logits
|
| 662 |
)
|
| 663 |
|
| 664 |
+
# decoder outputs consists of (dec_features, layer_state, dec_hidden, dec_attn)
|
| 665 |
outputs: MoeModelOutputWithPast = self.model(
|
| 666 |
input_ids=input_ids,
|
| 667 |
attention_mask=attention_mask,
|
|
|
|
| 675 |
)
|
| 676 |
|
| 677 |
hidden_states = outputs.last_hidden_state
|
| 678 |
+
# Only compute necessary logits, and do not upcast them to float if we are not computing the loss
|
| 679 |
slice_indices = slice(-logits_to_keep, None) if isinstance(logits_to_keep, int) else logits_to_keep
|
| 680 |
logits = self.lm_head(hidden_states[:, slice_indices, :])
|
| 681 |
|
tokenizer.json
CHANGED
|
@@ -649,7 +649,7 @@
|
|
| 649 |
{
|
| 650 |
"type": "Split",
|
| 651 |
"pattern": {
|
| 652 |
-
"Regex": "
|
| 653 |
},
|
| 654 |
"behavior": "Isolated",
|
| 655 |
"invert": false
|
|
@@ -501192,4 +501192,4 @@
|
|
| 501192 |
]
|
| 501193 |
]
|
| 501194 |
}
|
| 501195 |
-
}
|
|
|
|
| 649 |
{
|
| 650 |
"type": "Split",
|
| 651 |
"pattern": {
|
| 652 |
+
"Regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?\\p{L}+|\\p{N}| ?[^\\s\\p{L}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+"
|
| 653 |
},
|
| 654 |
"behavior": "Isolated",
|
| 655 |
"invert": false
|
|
|
|
| 501192 |
]
|
| 501193 |
]
|
| 501194 |
}
|
| 501195 |
+
}
|