Adding `safetensors` variant of this model

#2
Files changed (2) hide show
  1. modeling_alinlight.py +42 -10
  2. pytorch_model.bin.index.json +209 -0
modeling_alinlight.py CHANGED
@@ -13,9 +13,6 @@
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
 
16
- # -*- coding: utf-8 -*-
17
- # Copyright 2026 EngineerGL Research.
18
-
19
  import math
20
  import torch
21
  import torch.nn as nn
@@ -44,6 +41,7 @@ class AlinlightPreTrainedModel(PreTrainedModel):
44
  def _init_weights(self, module):
45
  std = self.config.initializer_range
46
  if isinstance(module, nn.Linear):
 
47
  if getattr(module, '_is_residual_projection', False):
48
  module.weight.data.normal_(mean=0.0, std=std / math.sqrt(2 * self.config.num_hidden_layers))
49
  else:
@@ -74,6 +72,23 @@ class AlinlightRMSNorm(nn.Module):
74
  return self.weight * x.to(input_dtype)
75
 
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  class AlinlightRotaryEmbedding(nn.Module):
78
  def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0):
79
  super().__init__()
@@ -137,14 +152,22 @@ class AlinlightMLP(nn.Module):
137
  self.down_proj = nn.Linear(self.intermediate_size, self.hidden_size, bias=False)
138
  self.act_fn = nn.SiLU()
139
 
 
 
 
 
 
 
140
  self.down_proj._is_residual_projection = True
141
 
142
  def forward(self, x):
143
- return self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
 
 
144
 
145
 
146
  # ==========================================
147
- # 3. ATTENTION (Стабильная QK-Norm без гейтов)
148
  # ==========================================
149
 
150
  class AlinlightAttention(nn.Module):
@@ -169,8 +192,9 @@ class AlinlightAttention(nn.Module):
169
 
170
  self.use_qk_norm = getattr(config, "use_qk_norm", True)
171
  if self.use_qk_norm:
172
- self.q_norm = AlinlightRMSNorm(self.head_dim, eps=config.rms_norm_eps)
173
- self.k_norm = AlinlightRMSNorm(self.head_dim, eps=config.rms_norm_eps)
 
174
 
175
  self.attn_logit_softcapping = getattr(config, 'attn_logit_softcapping', None)
176
 
@@ -209,7 +233,8 @@ class AlinlightAttention(nn.Module):
209
  key_states = torch.cat([past_key_value[0], key_states], dim=2)
210
  value_states = torch.cat([past_key_value[1], value_states], dim=2)
211
 
212
- kv_seq_len = key_states.shape[2]
 
213
 
214
  if self.sliding_window is not None and kv_seq_len > self.sliding_window:
215
  slicing_tokens = kv_seq_len - self.sliding_window
@@ -221,12 +246,12 @@ class AlinlightAttention(nn.Module):
221
 
222
  past_key_value = (key_states, value_states) if use_cache else None
223
 
224
- # 3. GQA Repeat
225
  if self.num_key_value_groups > 1:
226
  key_states = key_states.repeat_interleave(self.num_key_value_groups, dim=1)
227
  value_states = value_states.repeat_interleave(self.num_key_value_groups, dim=1)
228
 
229
- # 4. Attention
230
  attn_weights = None
231
 
232
  if output_attentions or self.attn_logit_softcapping is not None:
@@ -239,7 +264,9 @@ class AlinlightAttention(nn.Module):
239
  attn_weights = attn_weights + attention_mask
240
 
241
  attn_weights = F.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query_states.dtype)
 
242
  attn_weights_for_output = attn_weights if output_attentions else None
 
243
  attn_weights_dropped = F.dropout(attn_weights, p=self.attention_dropout, training=self.training)
244
  attn_output = torch.matmul(attn_weights_dropped, value_states)
245
  else:
@@ -312,6 +339,7 @@ class AlinlightModel(AlinlightPreTrainedModel):
312
  self.vocab_size = config.vocab_size
313
 
314
  self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
 
315
  self.embed_scale = math.sqrt(config.hidden_size) if getattr(config, 'embed_scale', False) else 1.0
316
 
317
  embed_pdrop = getattr(config, 'embed_pdrop', 0.0)
@@ -386,6 +414,7 @@ class AlinlightModel(AlinlightPreTrainedModel):
386
  use_cache = use_cache if use_cache is not None else self.config.use_cache
387
  return_dict = return_dict if return_dict is not None else self.config.use_return_dict
388
 
 
389
  if self.gradient_checkpointing and self.training:
390
  if use_cache:
391
  logger.warning_once(
@@ -430,6 +459,7 @@ class AlinlightModel(AlinlightPreTrainedModel):
430
  if self.gradient_checkpointing and self.training:
431
  def create_custom_forward(module):
432
  def custom_forward(*inputs):
 
433
  return module(*inputs, output_attentions=output_attentions, use_cache=False, rotary_pos_emb=(cos, sin))
434
  return custom_forward
435
 
@@ -490,6 +520,8 @@ class AlinlightForCausalLM(AlinlightPreTrainedModel, GenerationMixin):
490
  if config.tie_word_embeddings:
491
  self.lm_head.weight = self.model.embed_tokens.weight
492
 
 
 
493
  self.post_init()
494
 
495
  def get_input_embeddings(self): return self.model.embed_tokens
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
 
 
 
 
16
  import math
17
  import torch
18
  import torch.nn as nn
 
41
  def _init_weights(self, module):
42
  std = self.config.initializer_range
43
  if isinstance(module, nn.Linear):
44
+ # Scale down residual projections to improve training stability at depth
45
  if getattr(module, '_is_residual_projection', False):
46
  module.weight.data.normal_(mean=0.0, std=std / math.sqrt(2 * self.config.num_hidden_layers))
47
  else:
 
72
  return self.weight * x.to(input_dtype)
73
 
74
 
75
+ class GatedNorm(nn.Module):
76
+ """
77
+ Gated Normalization wrapper.
78
+ Allows the model to learn to skip normalization via a learnable gate.
79
+ """
80
+ def __init__(self, original_norm, initial_gate_value=-1.0):
81
+ super().__init__()
82
+ self.norm = original_norm
83
+ # Initialize gate to -1.0 (sigmoid(-1) ≈ 0.27) to start conservatively
84
+ self.gate = nn.Parameter(torch.tensor(initial_gate_value))
85
+
86
+ def forward(self, x, *args, **kwargs):
87
+ normed = self.norm(x, *args, **kwargs)
88
+ g = torch.sigmoid(self.gate)
89
+ return (1.0 - g) * x + g * normed
90
+
91
+
92
  class AlinlightRotaryEmbedding(nn.Module):
93
  def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0):
94
  super().__init__()
 
152
  self.down_proj = nn.Linear(self.intermediate_size, self.hidden_size, bias=False)
153
  self.act_fn = nn.SiLU()
154
 
155
+ # Use GatedNorm for the inner normalization
156
+ self.pre_down_norm = GatedNorm(
157
+ AlinlightRMSNorm(self.intermediate_size, eps=config.rms_norm_eps)
158
+ )
159
+
160
+ # Tag for specialized initialization
161
  self.down_proj._is_residual_projection = True
162
 
163
  def forward(self, x):
164
+ intermediate = self.act_fn(self.gate_proj(x)) * self.up_proj(x)
165
+ intermediate = self.pre_down_norm(intermediate)
166
+ return self.down_proj(intermediate)
167
 
168
 
169
  # ==========================================
170
+ # 3. ATTENTION
171
  # ==========================================
172
 
173
  class AlinlightAttention(nn.Module):
 
192
 
193
  self.use_qk_norm = getattr(config, "use_qk_norm", True)
194
  if self.use_qk_norm:
195
+ # Use GatedNorm for QK Normalization
196
+ self.q_norm = GatedNorm(AlinlightRMSNorm(self.head_dim, eps=config.rms_norm_eps))
197
+ self.k_norm = GatedNorm(AlinlightRMSNorm(self.head_dim, eps=config.rms_norm_eps))
198
 
199
  self.attn_logit_softcapping = getattr(config, 'attn_logit_softcapping', None)
200
 
 
233
  key_states = torch.cat([past_key_value[0], key_states], dim=2)
234
  value_states = torch.cat([past_key_value[1], value_states], dim=2)
235
 
236
+ # 3. Sliding Window (Slicing)
237
+ kv_seq_len = key_states.shape[2] # NOTE: This is the length BEFORE slicing
238
 
239
  if self.sliding_window is not None and kv_seq_len > self.sliding_window:
240
  slicing_tokens = kv_seq_len - self.sliding_window
 
246
 
247
  past_key_value = (key_states, value_states) if use_cache else None
248
 
249
+ # 4. GQA Repeat
250
  if self.num_key_value_groups > 1:
251
  key_states = key_states.repeat_interleave(self.num_key_value_groups, dim=1)
252
  value_states = value_states.repeat_interleave(self.num_key_value_groups, dim=1)
253
 
254
+ # 5. Attention Mechanism
255
  attn_weights = None
256
 
257
  if output_attentions or self.attn_logit_softcapping is not None:
 
264
  attn_weights = attn_weights + attention_mask
265
 
266
  attn_weights = F.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query_states.dtype)
267
+
268
  attn_weights_for_output = attn_weights if output_attentions else None
269
+
270
  attn_weights_dropped = F.dropout(attn_weights, p=self.attention_dropout, training=self.training)
271
  attn_output = torch.matmul(attn_weights_dropped, value_states)
272
  else:
 
339
  self.vocab_size = config.vocab_size
340
 
341
  self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
342
+
343
  self.embed_scale = math.sqrt(config.hidden_size) if getattr(config, 'embed_scale', False) else 1.0
344
 
345
  embed_pdrop = getattr(config, 'embed_pdrop', 0.0)
 
414
  use_cache = use_cache if use_cache is not None else self.config.use_cache
415
  return_dict = return_dict if return_dict is not None else self.config.use_return_dict
416
 
417
+ # --- SAFETY CHECK FOR GRADIENT CHECKPOINTING ---
418
  if self.gradient_checkpointing and self.training:
419
  if use_cache:
420
  logger.warning_once(
 
459
  if self.gradient_checkpointing and self.training:
460
  def create_custom_forward(module):
461
  def custom_forward(*inputs):
462
+ # Force use_cache=False inside checkpoint to be safe
463
  return module(*inputs, output_attentions=output_attentions, use_cache=False, rotary_pos_emb=(cos, sin))
464
  return custom_forward
465
 
 
520
  if config.tie_word_embeddings:
521
  self.lm_head.weight = self.model.embed_tokens.weight
522
 
523
+ # Note: self.post_init() is called here, and inside AlinlightModel.
524
+ # This re-initialization is consistent with standard HF models (e.g. Llama).
525
  self.post_init()
526
 
527
  def get_input_embeddings(self): return self.model.embed_tokens
pytorch_model.bin.index.json ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 1516333056,
4
+ "total_size": 3032666112
5
+ },
6
+ "weight_map": {
7
+ "lm_head.weight": "pytorch_model-00005-of-00006.bin",
8
+ "model.embed_tokens.weight": "pytorch_model-00001-of-00006.bin",
9
+ "model.layers.0.input_layernorm.weight": "pytorch_model-00002-of-00006.bin",
10
+ "model.layers.0.mlp.down_proj.weight": "pytorch_model-00002-of-00006.bin",
11
+ "model.layers.0.mlp.gate_proj.weight": "pytorch_model-00002-of-00006.bin",
12
+ "model.layers.0.mlp.up_proj.weight": "pytorch_model-00002-of-00006.bin",
13
+ "model.layers.0.post_attention_layernorm.weight": "pytorch_model-00002-of-00006.bin",
14
+ "model.layers.0.self_attn.k_proj.weight": "pytorch_model-00002-of-00006.bin",
15
+ "model.layers.0.self_attn.o_proj.weight": "pytorch_model-00002-of-00006.bin",
16
+ "model.layers.0.self_attn.q_proj.weight": "pytorch_model-00002-of-00006.bin",
17
+ "model.layers.0.self_attn.v_proj.weight": "pytorch_model-00002-of-00006.bin",
18
+ "model.layers.1.input_layernorm.weight": "pytorch_model-00002-of-00006.bin",
19
+ "model.layers.1.mlp.down_proj.weight": "pytorch_model-00002-of-00006.bin",
20
+ "model.layers.1.mlp.gate_proj.weight": "pytorch_model-00002-of-00006.bin",
21
+ "model.layers.1.mlp.up_proj.weight": "pytorch_model-00002-of-00006.bin",
22
+ "model.layers.1.post_attention_layernorm.weight": "pytorch_model-00002-of-00006.bin",
23
+ "model.layers.1.self_attn.k_proj.weight": "pytorch_model-00002-of-00006.bin",
24
+ "model.layers.1.self_attn.o_proj.weight": "pytorch_model-00002-of-00006.bin",
25
+ "model.layers.1.self_attn.q_proj.weight": "pytorch_model-00002-of-00006.bin",
26
+ "model.layers.1.self_attn.v_proj.weight": "pytorch_model-00002-of-00006.bin",
27
+ "model.layers.10.input_layernorm.weight": "pytorch_model-00003-of-00006.bin",
28
+ "model.layers.10.mlp.down_proj.weight": "pytorch_model-00003-of-00006.bin",
29
+ "model.layers.10.mlp.gate_proj.weight": "pytorch_model-00003-of-00006.bin",
30
+ "model.layers.10.mlp.up_proj.weight": "pytorch_model-00003-of-00006.bin",
31
+ "model.layers.10.post_attention_layernorm.weight": "pytorch_model-00003-of-00006.bin",
32
+ "model.layers.10.self_attn.k_proj.weight": "pytorch_model-00003-of-00006.bin",
33
+ "model.layers.10.self_attn.o_proj.weight": "pytorch_model-00003-of-00006.bin",
34
+ "model.layers.10.self_attn.q_proj.weight": "pytorch_model-00003-of-00006.bin",
35
+ "model.layers.10.self_attn.v_proj.weight": "pytorch_model-00003-of-00006.bin",
36
+ "model.layers.11.input_layernorm.weight": "pytorch_model-00004-of-00006.bin",
37
+ "model.layers.11.mlp.down_proj.weight": "pytorch_model-00004-of-00006.bin",
38
+ "model.layers.11.mlp.gate_proj.weight": "pytorch_model-00004-of-00006.bin",
39
+ "model.layers.11.mlp.up_proj.weight": "pytorch_model-00004-of-00006.bin",
40
+ "model.layers.11.post_attention_layernorm.weight": "pytorch_model-00004-of-00006.bin",
41
+ "model.layers.11.self_attn.k_proj.weight": "pytorch_model-00004-of-00006.bin",
42
+ "model.layers.11.self_attn.o_proj.weight": "pytorch_model-00004-of-00006.bin",
43
+ "model.layers.11.self_attn.q_proj.weight": "pytorch_model-00004-of-00006.bin",
44
+ "model.layers.11.self_attn.v_proj.weight": "pytorch_model-00004-of-00006.bin",
45
+ "model.layers.12.input_layernorm.weight": "pytorch_model-00004-of-00006.bin",
46
+ "model.layers.12.mlp.down_proj.weight": "pytorch_model-00004-of-00006.bin",
47
+ "model.layers.12.mlp.gate_proj.weight": "pytorch_model-00004-of-00006.bin",
48
+ "model.layers.12.mlp.up_proj.weight": "pytorch_model-00004-of-00006.bin",
49
+ "model.layers.12.post_attention_layernorm.weight": "pytorch_model-00004-of-00006.bin",
50
+ "model.layers.12.self_attn.k_proj.weight": "pytorch_model-00004-of-00006.bin",
51
+ "model.layers.12.self_attn.o_proj.weight": "pytorch_model-00004-of-00006.bin",
52
+ "model.layers.12.self_attn.q_proj.weight": "pytorch_model-00004-of-00006.bin",
53
+ "model.layers.12.self_attn.v_proj.weight": "pytorch_model-00004-of-00006.bin",
54
+ "model.layers.13.input_layernorm.weight": "pytorch_model-00004-of-00006.bin",
55
+ "model.layers.13.mlp.down_proj.weight": "pytorch_model-00004-of-00006.bin",
56
+ "model.layers.13.mlp.gate_proj.weight": "pytorch_model-00004-of-00006.bin",
57
+ "model.layers.13.mlp.up_proj.weight": "pytorch_model-00004-of-00006.bin",
58
+ "model.layers.13.post_attention_layernorm.weight": "pytorch_model-00004-of-00006.bin",
59
+ "model.layers.13.self_attn.k_proj.weight": "pytorch_model-00004-of-00006.bin",
60
+ "model.layers.13.self_attn.o_proj.weight": "pytorch_model-00004-of-00006.bin",
61
+ "model.layers.13.self_attn.q_proj.weight": "pytorch_model-00004-of-00006.bin",
62
+ "model.layers.13.self_attn.v_proj.weight": "pytorch_model-00004-of-00006.bin",
63
+ "model.layers.14.input_layernorm.weight": "pytorch_model-00004-of-00006.bin",
64
+ "model.layers.14.mlp.down_proj.weight": "pytorch_model-00004-of-00006.bin",
65
+ "model.layers.14.mlp.gate_proj.weight": "pytorch_model-00004-of-00006.bin",
66
+ "model.layers.14.mlp.up_proj.weight": "pytorch_model-00004-of-00006.bin",
67
+ "model.layers.14.post_attention_layernorm.weight": "pytorch_model-00004-of-00006.bin",
68
+ "model.layers.14.self_attn.k_proj.weight": "pytorch_model-00004-of-00006.bin",
69
+ "model.layers.14.self_attn.o_proj.weight": "pytorch_model-00004-of-00006.bin",
70
+ "model.layers.14.self_attn.q_proj.weight": "pytorch_model-00004-of-00006.bin",
71
+ "model.layers.14.self_attn.v_proj.weight": "pytorch_model-00004-of-00006.bin",
72
+ "model.layers.15.input_layernorm.weight": "pytorch_model-00004-of-00006.bin",
73
+ "model.layers.15.mlp.down_proj.weight": "pytorch_model-00004-of-00006.bin",
74
+ "model.layers.15.mlp.gate_proj.weight": "pytorch_model-00004-of-00006.bin",
75
+ "model.layers.15.mlp.up_proj.weight": "pytorch_model-00004-of-00006.bin",
76
+ "model.layers.15.post_attention_layernorm.weight": "pytorch_model-00004-of-00006.bin",
77
+ "model.layers.15.self_attn.k_proj.weight": "pytorch_model-00004-of-00006.bin",
78
+ "model.layers.15.self_attn.o_proj.weight": "pytorch_model-00004-of-00006.bin",
79
+ "model.layers.15.self_attn.q_proj.weight": "pytorch_model-00004-of-00006.bin",
80
+ "model.layers.15.self_attn.v_proj.weight": "pytorch_model-00004-of-00006.bin",
81
+ "model.layers.16.input_layernorm.weight": "pytorch_model-00006-of-00006.bin",
82
+ "model.layers.16.mlp.down_proj.weight": "pytorch_model-00006-of-00006.bin",
83
+ "model.layers.16.mlp.gate_proj.weight": "pytorch_model-00004-of-00006.bin",
84
+ "model.layers.16.mlp.up_proj.weight": "pytorch_model-00006-of-00006.bin",
85
+ "model.layers.16.post_attention_layernorm.weight": "pytorch_model-00006-of-00006.bin",
86
+ "model.layers.16.self_attn.k_proj.weight": "pytorch_model-00004-of-00006.bin",
87
+ "model.layers.16.self_attn.o_proj.weight": "pytorch_model-00004-of-00006.bin",
88
+ "model.layers.16.self_attn.q_proj.weight": "pytorch_model-00004-of-00006.bin",
89
+ "model.layers.16.self_attn.v_proj.weight": "pytorch_model-00004-of-00006.bin",
90
+ "model.layers.17.input_layernorm.weight": "pytorch_model-00006-of-00006.bin",
91
+ "model.layers.17.mlp.down_proj.weight": "pytorch_model-00006-of-00006.bin",
92
+ "model.layers.17.mlp.gate_proj.weight": "pytorch_model-00006-of-00006.bin",
93
+ "model.layers.17.mlp.up_proj.weight": "pytorch_model-00006-of-00006.bin",
94
+ "model.layers.17.post_attention_layernorm.weight": "pytorch_model-00006-of-00006.bin",
95
+ "model.layers.17.self_attn.k_proj.weight": "pytorch_model-00006-of-00006.bin",
96
+ "model.layers.17.self_attn.o_proj.weight": "pytorch_model-00006-of-00006.bin",
97
+ "model.layers.17.self_attn.q_proj.weight": "pytorch_model-00006-of-00006.bin",
98
+ "model.layers.17.self_attn.v_proj.weight": "pytorch_model-00006-of-00006.bin",
99
+ "model.layers.18.input_layernorm.weight": "pytorch_model-00006-of-00006.bin",
100
+ "model.layers.18.mlp.down_proj.weight": "pytorch_model-00006-of-00006.bin",
101
+ "model.layers.18.mlp.gate_proj.weight": "pytorch_model-00006-of-00006.bin",
102
+ "model.layers.18.mlp.up_proj.weight": "pytorch_model-00006-of-00006.bin",
103
+ "model.layers.18.post_attention_layernorm.weight": "pytorch_model-00006-of-00006.bin",
104
+ "model.layers.18.self_attn.k_proj.weight": "pytorch_model-00006-of-00006.bin",
105
+ "model.layers.18.self_attn.o_proj.weight": "pytorch_model-00006-of-00006.bin",
106
+ "model.layers.18.self_attn.q_proj.weight": "pytorch_model-00006-of-00006.bin",
107
+ "model.layers.18.self_attn.v_proj.weight": "pytorch_model-00006-of-00006.bin",
108
+ "model.layers.19.input_layernorm.weight": "pytorch_model-00006-of-00006.bin",
109
+ "model.layers.19.mlp.down_proj.weight": "pytorch_model-00006-of-00006.bin",
110
+ "model.layers.19.mlp.gate_proj.weight": "pytorch_model-00006-of-00006.bin",
111
+ "model.layers.19.mlp.up_proj.weight": "pytorch_model-00006-of-00006.bin",
112
+ "model.layers.19.post_attention_layernorm.weight": "pytorch_model-00006-of-00006.bin",
113
+ "model.layers.19.self_attn.k_proj.weight": "pytorch_model-00006-of-00006.bin",
114
+ "model.layers.19.self_attn.o_proj.weight": "pytorch_model-00006-of-00006.bin",
115
+ "model.layers.19.self_attn.q_proj.weight": "pytorch_model-00006-of-00006.bin",
116
+ "model.layers.19.self_attn.v_proj.weight": "pytorch_model-00006-of-00006.bin",
117
+ "model.layers.2.input_layernorm.weight": "pytorch_model-00002-of-00006.bin",
118
+ "model.layers.2.mlp.down_proj.weight": "pytorch_model-00002-of-00006.bin",
119
+ "model.layers.2.mlp.gate_proj.weight": "pytorch_model-00002-of-00006.bin",
120
+ "model.layers.2.mlp.up_proj.weight": "pytorch_model-00002-of-00006.bin",
121
+ "model.layers.2.post_attention_layernorm.weight": "pytorch_model-00002-of-00006.bin",
122
+ "model.layers.2.self_attn.k_proj.weight": "pytorch_model-00002-of-00006.bin",
123
+ "model.layers.2.self_attn.o_proj.weight": "pytorch_model-00002-of-00006.bin",
124
+ "model.layers.2.self_attn.q_proj.weight": "pytorch_model-00002-of-00006.bin",
125
+ "model.layers.2.self_attn.v_proj.weight": "pytorch_model-00002-of-00006.bin",
126
+ "model.layers.20.input_layernorm.weight": "pytorch_model-00006-of-00006.bin",
127
+ "model.layers.20.mlp.down_proj.weight": "pytorch_model-00006-of-00006.bin",
128
+ "model.layers.20.mlp.gate_proj.weight": "pytorch_model-00006-of-00006.bin",
129
+ "model.layers.20.mlp.up_proj.weight": "pytorch_model-00006-of-00006.bin",
130
+ "model.layers.20.post_attention_layernorm.weight": "pytorch_model-00006-of-00006.bin",
131
+ "model.layers.20.self_attn.k_proj.weight": "pytorch_model-00006-of-00006.bin",
132
+ "model.layers.20.self_attn.o_proj.weight": "pytorch_model-00006-of-00006.bin",
133
+ "model.layers.20.self_attn.q_proj.weight": "pytorch_model-00006-of-00006.bin",
134
+ "model.layers.20.self_attn.v_proj.weight": "pytorch_model-00006-of-00006.bin",
135
+ "model.layers.21.input_layernorm.weight": "pytorch_model-00006-of-00006.bin",
136
+ "model.layers.21.mlp.down_proj.weight": "pytorch_model-00006-of-00006.bin",
137
+ "model.layers.21.mlp.gate_proj.weight": "pytorch_model-00006-of-00006.bin",
138
+ "model.layers.21.mlp.up_proj.weight": "pytorch_model-00006-of-00006.bin",
139
+ "model.layers.21.post_attention_layernorm.weight": "pytorch_model-00006-of-00006.bin",
140
+ "model.layers.21.self_attn.k_proj.weight": "pytorch_model-00006-of-00006.bin",
141
+ "model.layers.21.self_attn.o_proj.weight": "pytorch_model-00006-of-00006.bin",
142
+ "model.layers.21.self_attn.q_proj.weight": "pytorch_model-00006-of-00006.bin",
143
+ "model.layers.21.self_attn.v_proj.weight": "pytorch_model-00006-of-00006.bin",
144
+ "model.layers.3.input_layernorm.weight": "pytorch_model-00002-of-00006.bin",
145
+ "model.layers.3.mlp.down_proj.weight": "pytorch_model-00002-of-00006.bin",
146
+ "model.layers.3.mlp.gate_proj.weight": "pytorch_model-00002-of-00006.bin",
147
+ "model.layers.3.mlp.up_proj.weight": "pytorch_model-00002-of-00006.bin",
148
+ "model.layers.3.post_attention_layernorm.weight": "pytorch_model-00002-of-00006.bin",
149
+ "model.layers.3.self_attn.k_proj.weight": "pytorch_model-00002-of-00006.bin",
150
+ "model.layers.3.self_attn.o_proj.weight": "pytorch_model-00002-of-00006.bin",
151
+ "model.layers.3.self_attn.q_proj.weight": "pytorch_model-00002-of-00006.bin",
152
+ "model.layers.3.self_attn.v_proj.weight": "pytorch_model-00002-of-00006.bin",
153
+ "model.layers.4.input_layernorm.weight": "pytorch_model-00002-of-00006.bin",
154
+ "model.layers.4.mlp.down_proj.weight": "pytorch_model-00002-of-00006.bin",
155
+ "model.layers.4.mlp.gate_proj.weight": "pytorch_model-00002-of-00006.bin",
156
+ "model.layers.4.mlp.up_proj.weight": "pytorch_model-00002-of-00006.bin",
157
+ "model.layers.4.post_attention_layernorm.weight": "pytorch_model-00002-of-00006.bin",
158
+ "model.layers.4.self_attn.k_proj.weight": "pytorch_model-00002-of-00006.bin",
159
+ "model.layers.4.self_attn.o_proj.weight": "pytorch_model-00002-of-00006.bin",
160
+ "model.layers.4.self_attn.q_proj.weight": "pytorch_model-00002-of-00006.bin",
161
+ "model.layers.4.self_attn.v_proj.weight": "pytorch_model-00002-of-00006.bin",
162
+ "model.layers.5.input_layernorm.weight": "pytorch_model-00003-of-00006.bin",
163
+ "model.layers.5.mlp.down_proj.weight": "pytorch_model-00003-of-00006.bin",
164
+ "model.layers.5.mlp.gate_proj.weight": "pytorch_model-00002-of-00006.bin",
165
+ "model.layers.5.mlp.up_proj.weight": "pytorch_model-00003-of-00006.bin",
166
+ "model.layers.5.post_attention_layernorm.weight": "pytorch_model-00003-of-00006.bin",
167
+ "model.layers.5.self_attn.k_proj.weight": "pytorch_model-00002-of-00006.bin",
168
+ "model.layers.5.self_attn.o_proj.weight": "pytorch_model-00002-of-00006.bin",
169
+ "model.layers.5.self_attn.q_proj.weight": "pytorch_model-00002-of-00006.bin",
170
+ "model.layers.5.self_attn.v_proj.weight": "pytorch_model-00002-of-00006.bin",
171
+ "model.layers.6.input_layernorm.weight": "pytorch_model-00003-of-00006.bin",
172
+ "model.layers.6.mlp.down_proj.weight": "pytorch_model-00003-of-00006.bin",
173
+ "model.layers.6.mlp.gate_proj.weight": "pytorch_model-00003-of-00006.bin",
174
+ "model.layers.6.mlp.up_proj.weight": "pytorch_model-00003-of-00006.bin",
175
+ "model.layers.6.post_attention_layernorm.weight": "pytorch_model-00003-of-00006.bin",
176
+ "model.layers.6.self_attn.k_proj.weight": "pytorch_model-00003-of-00006.bin",
177
+ "model.layers.6.self_attn.o_proj.weight": "pytorch_model-00003-of-00006.bin",
178
+ "model.layers.6.self_attn.q_proj.weight": "pytorch_model-00003-of-00006.bin",
179
+ "model.layers.6.self_attn.v_proj.weight": "pytorch_model-00003-of-00006.bin",
180
+ "model.layers.7.input_layernorm.weight": "pytorch_model-00003-of-00006.bin",
181
+ "model.layers.7.mlp.down_proj.weight": "pytorch_model-00003-of-00006.bin",
182
+ "model.layers.7.mlp.gate_proj.weight": "pytorch_model-00003-of-00006.bin",
183
+ "model.layers.7.mlp.up_proj.weight": "pytorch_model-00003-of-00006.bin",
184
+ "model.layers.7.post_attention_layernorm.weight": "pytorch_model-00003-of-00006.bin",
185
+ "model.layers.7.self_attn.k_proj.weight": "pytorch_model-00003-of-00006.bin",
186
+ "model.layers.7.self_attn.o_proj.weight": "pytorch_model-00003-of-00006.bin",
187
+ "model.layers.7.self_attn.q_proj.weight": "pytorch_model-00003-of-00006.bin",
188
+ "model.layers.7.self_attn.v_proj.weight": "pytorch_model-00003-of-00006.bin",
189
+ "model.layers.8.input_layernorm.weight": "pytorch_model-00003-of-00006.bin",
190
+ "model.layers.8.mlp.down_proj.weight": "pytorch_model-00003-of-00006.bin",
191
+ "model.layers.8.mlp.gate_proj.weight": "pytorch_model-00003-of-00006.bin",
192
+ "model.layers.8.mlp.up_proj.weight": "pytorch_model-00003-of-00006.bin",
193
+ "model.layers.8.post_attention_layernorm.weight": "pytorch_model-00003-of-00006.bin",
194
+ "model.layers.8.self_attn.k_proj.weight": "pytorch_model-00003-of-00006.bin",
195
+ "model.layers.8.self_attn.o_proj.weight": "pytorch_model-00003-of-00006.bin",
196
+ "model.layers.8.self_attn.q_proj.weight": "pytorch_model-00003-of-00006.bin",
197
+ "model.layers.8.self_attn.v_proj.weight": "pytorch_model-00003-of-00006.bin",
198
+ "model.layers.9.input_layernorm.weight": "pytorch_model-00003-of-00006.bin",
199
+ "model.layers.9.mlp.down_proj.weight": "pytorch_model-00003-of-00006.bin",
200
+ "model.layers.9.mlp.gate_proj.weight": "pytorch_model-00003-of-00006.bin",
201
+ "model.layers.9.mlp.up_proj.weight": "pytorch_model-00003-of-00006.bin",
202
+ "model.layers.9.post_attention_layernorm.weight": "pytorch_model-00003-of-00006.bin",
203
+ "model.layers.9.self_attn.k_proj.weight": "pytorch_model-00003-of-00006.bin",
204
+ "model.layers.9.self_attn.o_proj.weight": "pytorch_model-00003-of-00006.bin",
205
+ "model.layers.9.self_attn.q_proj.weight": "pytorch_model-00003-of-00006.bin",
206
+ "model.layers.9.self_attn.v_proj.weight": "pytorch_model-00003-of-00006.bin",
207
+ "model.norm.weight": "pytorch_model-00006-of-00006.bin"
208
+ }
209
+ }