mjkmain commited on
Commit
336b32d
·
verified ·
1 Parent(s): d420038

Upload KORMo-10B SFT model

Browse files
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
_configuration_kormo.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import PretrainedConfig
2
+ from transformers.modeling_rope_utils import rope_config_validation
3
+
4
+ class KORMoConfig(PretrainedConfig):
5
+ model_type = "kormo"
6
+ keys_to_ignore_at_inference = ["past_key_values"]
7
+ base_model_tp_plan = {
8
+ "layers.*.self_attn.q_proj": "colwise",
9
+ "layers.*.self_attn.k_proj": "colwise",
10
+ "layers.*.self_attn.v_proj": "colwise",
11
+ "layers.*.self_attn.o_proj": "rowwise",
12
+ "layers.*.mlp.gate_proj": "colwise",
13
+ "layers.*.mlp.up_proj": "colwise",
14
+ "layers.*.mlp.down_proj": "rowwise",
15
+ }
16
+
17
+ def __init__(
18
+ self,
19
+ vocab_size=112576,
20
+ hidden_size=6144,
21
+ intermediate_size=21504,
22
+ num_hidden_layers=48,
23
+ num_attention_heads=40,
24
+ num_key_value_heads=8,
25
+ hidden_act="silu",
26
+ max_position_embeddings=131072,
27
+ initializer_range=0.02,
28
+ rms_norm_eps=1e-05,
29
+ use_cache=True,
30
+ pad_token_id=None,
31
+ bos_token_id=0,
32
+ eos_token_id=1,
33
+ pretraining_tp=1,
34
+ tie_word_embeddings=False,
35
+ rope_theta=500000.0,
36
+ attention_bias=False,
37
+ attention_dropout=0.0,
38
+ rope_scaling=None,
39
+ mlp_bias=False,
40
+ head_dim=128,
41
+ **kwargs,
42
+ ):
43
+ self.vocab_size = vocab_size
44
+ self.max_position_embeddings = max_position_embeddings
45
+ self.hidden_size = hidden_size
46
+ self.intermediate_size = intermediate_size
47
+ self.num_hidden_layers = num_hidden_layers
48
+ self.num_attention_heads = num_attention_heads
49
+
50
+ if num_key_value_heads is None:
51
+ num_key_value_heads = num_attention_heads
52
+
53
+ self.num_key_value_heads = num_key_value_heads
54
+ self.hidden_act = hidden_act
55
+ self.initializer_range = initializer_range
56
+ self.rms_norm_eps = rms_norm_eps
57
+ self.pretraining_tp = pretraining_tp
58
+ self.use_cache = use_cache
59
+ self.rope_theta = rope_theta
60
+ self.rope_scaling = rope_scaling
61
+ self.attention_bias = attention_bias
62
+ self.attention_dropout = attention_dropout
63
+ self.mlp_bias = mlp_bias
64
+ self.head_dim = head_dim if head_dim is not None else self.hidden_size // self.num_attention_heads
65
+ self.mask_type = None
66
+
67
+ if self.rope_scaling is not None and "type" in self.rope_scaling:
68
+ self.rope_scaling["rope_type"] = self.rope_scaling["type"]
69
+ rope_config_validation(self)
70
+
71
+ super().__init__(
72
+ pad_token_id=pad_token_id,
73
+ bos_token_id=bos_token_id,
74
+ eos_token_id=eos_token_id,
75
+ tie_word_embeddings=tie_word_embeddings,
76
+ **kwargs,
77
+ )
_modeling_kormo.py ADDED
@@ -0,0 +1,508 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Callable, List, Optional, Tuple, Union
2
+
3
+ import torch
4
+ import torch.utils.checkpoint ### ADD
5
+ from torch import nn
6
+
7
+ from transformers.activations import ACT2FN
8
+ from transformers.cache_utils import Cache, DynamicCache
9
+ from transformers.generation import GenerationMixin
10
+ from transformers.integrations import use_kernel_forward_from_hub
11
+ from transformers.masking_utils import create_causal_mask
12
+ from transformers.modeling_flash_attention_utils import FlashAttentionKwargs
13
+ from transformers.modeling_layers import GradientCheckpointingLayer
14
+ from transformers.modeling_outputs import (
15
+ BaseModelOutputWithPast,
16
+ CausalLMOutputWithPast,
17
+ )
18
+ from transformers.modeling_rope_utils import ROPE_INIT_FUNCTIONS, dynamic_rope_update
19
+ from transformers.modeling_utils import ALL_ATTENTION_FUNCTIONS, PreTrainedModel
20
+ # from transformers.pytorch_utils import ALL_LAYERNORM_LAYERS
21
+ from transformers.processing_utils import Unpack
22
+ from transformers.utils import auto_docstring, can_return_tuple, logging
23
+ from ._configuration_kormo import KORMoConfig
24
+
25
+ # from ._flash_attn3_doc import flash_attention_3_doc_forward
26
+ # ALL_ATTENTION_FUNCTIONS._global_mapping.update({'flash_attention_3_doc': flash_attention_3_doc_forward})
27
+
28
+ logger = logging.get_logger(__name__)
29
+
30
+ @use_kernel_forward_from_hub("RMSNorm")
31
+ class RMSNorm(nn.Module):
32
+ """
33
+ KORMoRMSNorm is equivalent to T5LayerNorm
34
+ """
35
+ def __init__(self, hidden_size: int, eps: float = 1e-6):
36
+ super().__init__()
37
+ self.weight = nn.Parameter(torch.ones(hidden_size))
38
+ self.variance_epsilon = eps
39
+
40
+ def forward(self, hidden_states):
41
+ input_dtype = hidden_states.dtype
42
+ hidden_states = hidden_states.to(torch.float32)
43
+ variance = hidden_states.pow(2).mean(-1, keepdim=True)
44
+ hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
45
+ return (self.weight * hidden_states).to(input_dtype)
46
+
47
+ def extra_repr(self):
48
+ return f"{tuple(self.weight.shape)}, eps={self.variance_epsilon}"
49
+
50
+
51
+ def repeat_kv(hidden_states: torch.Tensor, n_rep: int) -> torch.Tensor:
52
+ """
53
+ This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch,
54
+ num_key_value_heads, seqlen, head_dim) to (batch, num_attention_heads, seqlen, head_dim)
55
+ """
56
+ batch, num_key_value_heads, slen, head_dim = hidden_states.shape
57
+ if n_rep == 1:
58
+ return hidden_states
59
+ hidden_states = hidden_states[:, :, None, :, :].expand(batch, num_key_value_heads, n_rep, slen, head_dim)
60
+ return hidden_states.reshape(batch, num_key_value_heads * n_rep, slen, head_dim)
61
+
62
+ def eager_attention_forward(
63
+ module: nn.Module,
64
+ query: torch.Tensor,
65
+ key: torch.Tensor,
66
+ value: torch.Tensor,
67
+ attention_mask: Optional[torch.Tensor],
68
+ scaling: float,
69
+ dropout: float = 0.0,
70
+ **kwargs,
71
+ ):
72
+ key_states = repeat_kv(key, module.num_key_value_groups)
73
+ value_states = repeat_kv(value, module.num_key_value_groups)
74
+
75
+ attn_weights = torch.matmul(query, key_states.transpose(2, 3)) * scaling
76
+ if attention_mask is not None:
77
+ causal_mask = attention_mask[:, :, :, : key_states.shape[-2]]
78
+ attn_weights = attn_weights + causal_mask
79
+
80
+ attn_weights = nn.functional.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query.dtype)
81
+ attn_weights = nn.functional.dropout(attn_weights, p=dropout, training=module.training)
82
+ attn_output = torch.matmul(attn_weights, value_states)
83
+ attn_output = attn_output.transpose(1, 2).contiguous()
84
+
85
+ return attn_output, attn_weights
86
+
87
+
88
+ def apply_rotary_pos_emb(q, k, cos, sin, unsqueeze_dim=1):
89
+ cos = cos.unsqueeze(unsqueeze_dim)
90
+ sin = sin.unsqueeze(unsqueeze_dim)
91
+ q_embed = (q * cos) + (rotate_half(q) * sin)
92
+ k_embed = (k * cos) + (rotate_half(k) * sin)
93
+ return q_embed.to(q.dtype), k_embed.to(k.dtype)
94
+
95
+
96
+ def rotate_half(x):
97
+ """Rotates half the hidden dims of the input."""
98
+ x1 = x[..., : x.shape[-1] // 2]
99
+ x2 = x[..., x.shape[-1] // 2 :]
100
+ return torch.cat((-x2, x1), dim=-1)
101
+
102
+ class Attention(nn.Module):
103
+ """Multi-headed attention from 'Attention Is All You Need' paper"""
104
+
105
+ def __init__(self, config: KORMoConfig, layer_idx: int):
106
+ super().__init__()
107
+ self.config = config
108
+ self.layer_idx = layer_idx
109
+ self.head_dim = getattr(config, "head_dim", config.hidden_size // config.num_attention_heads)
110
+ self.num_key_value_groups = config.num_attention_heads // config.num_key_value_heads
111
+ self.scaling = self.head_dim**-0.5
112
+ self.attention_dropout = config.attention_dropout
113
+ self.is_causal = True
114
+ self.q_proj = nn.Linear(config.hidden_size, config.num_attention_heads * self.head_dim, bias=False)
115
+ self.k_proj = nn.Linear(config.hidden_size, config.num_key_value_heads * self.head_dim, bias=False)
116
+ self.v_proj = nn.Linear(config.hidden_size, config.num_key_value_heads * self.head_dim, bias=False)
117
+ self.o_proj = nn.Linear(config.num_attention_heads * self.head_dim, config.hidden_size, bias=False)
118
+
119
+ def forward(
120
+ self,
121
+ hidden_states: torch.Tensor,
122
+ position_embeddings: tuple[torch.Tensor, torch.Tensor],
123
+ attention_mask: Optional[torch.Tensor],
124
+ past_key_value: Optional[Cache] = None,
125
+ cache_position: Optional[torch.LongTensor] = None,
126
+ **kwargs,
127
+ ) -> tuple[torch.Tensor, Optional[torch.Tensor], Optional[tuple[torch.Tensor]]]:
128
+ input_shape = hidden_states.shape[:-1]
129
+ hidden_shape = (*input_shape, -1, self.head_dim)
130
+
131
+ query_states = self.q_proj(hidden_states)
132
+ key_states = self.k_proj(hidden_states)
133
+ value_states = self.v_proj(hidden_states)
134
+
135
+ query_states = query_states.view(hidden_shape).transpose(1, 2)
136
+ key_states = key_states.view(hidden_shape).transpose(1, 2)
137
+ value_states = value_states.view(hidden_shape).transpose(1, 2)
138
+
139
+ cos, sin = position_embeddings
140
+ query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)
141
+
142
+ if past_key_value is not None:
143
+ cache_kwargs = {"sin": sin, "cos": cos, "cache_position": cache_position}
144
+ key_states, value_states = past_key_value.update(key_states, value_states, self.layer_idx, cache_kwargs)
145
+
146
+ attention_interface: Callable = eager_attention_forward
147
+ if self.config._attn_implementation != "eager":
148
+ attention_interface = ALL_ATTENTION_FUNCTIONS[self.config._attn_implementation]
149
+
150
+ attn_output, attn_weights = attention_interface(
151
+ self,
152
+ query_states,
153
+ key_states,
154
+ value_states,
155
+ attention_mask,
156
+ dropout=0.0 if not self.training else self.attention_dropout,
157
+ scaling=self.scaling,
158
+ **kwargs,
159
+ )
160
+
161
+ attn_output = attn_output.reshape(*input_shape, -1).contiguous()
162
+ attn_output = self.o_proj(attn_output)
163
+ return attn_output, attn_weights
164
+
165
+ @use_kernel_forward_from_hub("MLP")
166
+ class MLP(nn.Module):
167
+ def __init__(self, config):
168
+ super().__init__()
169
+ self.config = config
170
+ self.hidden_size = config.hidden_size
171
+ self.intermediate_size = config.intermediate_size
172
+ self.gate_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
173
+ self.up_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
174
+ self.down_proj = nn.Linear(self.intermediate_size, self.hidden_size, bias=False)
175
+ self.act_fn = ACT2FN[config.hidden_act]
176
+
177
+ def forward(self, x):
178
+ output = self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
179
+ return output
180
+
181
+ class DecoderLayer(GradientCheckpointingLayer):
182
+ def __init__(self, config: KORMoConfig, layer_idx: int):
183
+ super().__init__()
184
+ self.hidden_size = config.hidden_size
185
+ self.self_attn = Attention(config=config, layer_idx=layer_idx)
186
+ self.mlp = MLP(config)
187
+ self.pre_attention_layernorm = RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
188
+ self.pre_mlp_layernorm = RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
189
+
190
+ def forward(
191
+ self,
192
+ hidden_states: torch.Tensor,
193
+ attention_mask: Optional[torch.Tensor] = None,
194
+ position_ids: Optional[torch.LongTensor] = None,
195
+ past_key_value: Optional[Cache] = None,
196
+ output_attentions: Optional[bool] = False,
197
+ use_cache: Optional[bool] = False,
198
+ cache_position: Optional[torch.LongTensor] = None,
199
+ position_embeddings: Optional[Tuple[torch.Tensor, torch.Tensor]] = None, # necessary, but kept here for BC
200
+ **kwargs: Unpack[FlashAttentionKwargs],
201
+ ) -> Tuple[torch.FloatTensor, Optional[Tuple[torch.FloatTensor, torch.FloatTensor]]]:
202
+ residual = hidden_states
203
+ hidden_states = self.pre_attention_layernorm(hidden_states)
204
+
205
+ # Self Attention
206
+ hidden_states, self_attn_weights = self.self_attn(
207
+ hidden_states=hidden_states,
208
+ attention_mask=attention_mask,
209
+ position_ids=position_ids,
210
+ past_key_value=past_key_value,
211
+ output_attentions=output_attentions,
212
+ use_cache=use_cache,
213
+ cache_position=cache_position,
214
+ position_embeddings=position_embeddings,
215
+ **kwargs,
216
+ )
217
+ hidden_states = residual + hidden_states
218
+
219
+ # MLP layer
220
+ residual = hidden_states
221
+ hidden_states = self.pre_mlp_layernorm(hidden_states)
222
+ hidden_states = self.mlp(hidden_states)
223
+ hidden_states = residual + hidden_states
224
+
225
+ outputs = (hidden_states,)
226
+ if output_attentions:
227
+ outputs += (self_attn_weights,)
228
+
229
+ return outputs
230
+
231
+
232
+ class RotaryEmbedding(nn.Module):
233
+ def __init__(self, config: KORMoConfig, device=None):
234
+ super().__init__()
235
+ # BC: "rope_type" was originally "type"
236
+ if hasattr(config, "rope_scaling") and config.rope_scaling is not None:
237
+ self.rope_type = config.rope_scaling.get("rope_type", config.rope_scaling.get("type"))
238
+ else:
239
+ self.rope_type = "default"
240
+ self.max_seq_len_cached = config.max_position_embeddings
241
+ self.original_max_seq_len = config.max_position_embeddings
242
+
243
+ self.config = config
244
+ self.rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
245
+
246
+ inv_freq, self.attention_scaling = self.rope_init_fn(self.config, device)
247
+ self.register_buffer("inv_freq", inv_freq, persistent=False)
248
+ self.original_inv_freq = self.inv_freq
249
+
250
+ @torch.no_grad()
251
+ @dynamic_rope_update # power user: used with advanced RoPE types (e.g. dynamic rope)
252
+ def forward(self, x, position_ids):
253
+ inv_freq_expanded = self.inv_freq[None, :, None].float().expand(position_ids.shape[0], -1, 1).to(x.device)
254
+ position_ids_expanded = position_ids[:, None, :].float()
255
+
256
+ device_type = x.device.type if isinstance(x.device.type, str) and x.device.type != "mps" else "cpu"
257
+ with torch.autocast(device_type=device_type, enabled=False): # Force float32
258
+ freqs = (inv_freq_expanded.float() @ position_ids_expanded.float()).transpose(1, 2)
259
+ emb = torch.cat((freqs, freqs), dim=-1)
260
+ cos = emb.cos() * self.attention_scaling
261
+ sin = emb.sin() * self.attention_scaling
262
+ return cos, sin
263
+
264
+
265
+
266
+
267
+
268
+
269
+ class KORMoPreTrainedModel(PreTrainedModel):
270
+ config_class = KORMoConfig
271
+ base_model_prefix = "model"
272
+ supports_gradient_checkpointing = True
273
+ _no_split_modules = ["DecoderLayer"]
274
+ _skip_keys_device_placement = ["past_key_values"]
275
+ _supports_flash_attn_3 = True
276
+ _supports_flash_attn_2 = True
277
+ _supports_sdpa = True
278
+ _supports_flex_attn = True
279
+ _supports_cache_class = True
280
+ _supports_quantized_cache = True
281
+ _supports_static_cache = True
282
+ _supports_attention_backend = True
283
+
284
+ def _init_weights(self, module):
285
+ std = self.config.initializer_range
286
+ if isinstance(module, nn.Linear):
287
+ module.weight.data.normal_(mean=0.0, std=std)
288
+ if module.bias is not None:
289
+ module.bias.data.zero_()
290
+ elif isinstance(module, nn.Embedding):
291
+ module.weight.data.normal_(mean=0.0, std=std)
292
+ if module.padding_idx is not None:
293
+ module.weight.data[module.padding_idx].zero_()
294
+ elif isinstance(module, RMSNorm):
295
+ module.weight.data.fill_(1.0)
296
+
297
+
298
+ class KORMoModel(KORMoPreTrainedModel):
299
+ def __init__(self, config: KORMoConfig):
300
+ super().__init__(config)
301
+ self.padding_idx = config.pad_token_id
302
+ self.vocab_size = config.vocab_size
303
+
304
+ self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
305
+ self.layers = nn.ModuleList(
306
+ [DecoderLayer(config, layer_idx) for layer_idx in range(config.num_hidden_layers)]
307
+ )
308
+ self.norm = RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
309
+ self.rotary_emb = RotaryEmbedding(config=config)
310
+ self.gradient_checkpointing = False
311
+
312
+ # Initialize weights and apply final processing
313
+ self.post_init()
314
+
315
+ def get_input_embeddings(self):
316
+ return self.embed_tokens
317
+
318
+ def set_input_embeddings(self, value):
319
+ self.embed_tokens = value
320
+
321
+ @can_return_tuple
322
+ def forward(
323
+ self,
324
+ input_ids: torch.LongTensor = None,
325
+ attention_mask: Optional[torch.Tensor] = None,
326
+ position_ids: Optional[torch.LongTensor] = None,
327
+ past_key_values: Optional[Cache] = None,
328
+ inputs_embeds: Optional[torch.FloatTensor] = None,
329
+ use_cache: Optional[bool] = None,
330
+ output_attentions: Optional[bool] = None,
331
+ output_hidden_states: Optional[bool] = None,
332
+ cache_position: Optional[torch.LongTensor] = None,
333
+ **flash_attn_kwargs: Unpack[FlashAttentionKwargs],
334
+ ) -> BaseModelOutputWithPast:
335
+ output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
336
+ output_hidden_states = (
337
+ output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
338
+ )
339
+ use_cache = use_cache if use_cache is not None else self.config.use_cache
340
+
341
+ if (input_ids is None) ^ (inputs_embeds is not None):
342
+ raise ValueError("You must specify exactly one of input_ids or inputs_embeds")
343
+
344
+ if self.gradient_checkpointing and self.training and use_cache:
345
+ logger.warning_once(
346
+ "`use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`."
347
+ )
348
+ use_cache = False
349
+
350
+ if not isinstance(past_key_values, (type(None), Cache)):
351
+ raise ValueError("The `past_key_values` should be either a `Cache` object or `None`.")
352
+
353
+ if inputs_embeds is None:
354
+ inputs_embeds = self.embed_tokens(input_ids)
355
+
356
+ if use_cache and past_key_values is None:
357
+ past_key_values = DynamicCache()
358
+
359
+ if cache_position is None:
360
+ past_seen_tokens = past_key_values.get_seq_length() if past_key_values is not None else 0
361
+ cache_position = torch.arange(
362
+ past_seen_tokens, past_seen_tokens + inputs_embeds.shape[1], device=inputs_embeds.device
363
+ )
364
+
365
+ if position_ids is None:
366
+ position_ids = cache_position.unsqueeze(0)
367
+
368
+ if self.config._attn_implementation == "flash_attention_3_doc":
369
+ ### TODO: 수정필요
370
+ causal_mask = attention_mask
371
+ else:
372
+ causal_mask = create_causal_mask(
373
+ config=self.config,
374
+ input_embeds=inputs_embeds,
375
+ attention_mask=attention_mask,
376
+ cache_position=cache_position,
377
+ past_key_values=past_key_values,
378
+ position_ids=position_ids,
379
+ )
380
+
381
+
382
+ hidden_states = inputs_embeds
383
+ position_embeddings = self.rotary_emb(hidden_states, position_ids)
384
+
385
+ all_hidden_states = () if output_hidden_states else None
386
+ all_self_attns = () if output_attentions else None
387
+
388
+ for decoder_layer in self.layers[: self.config.num_hidden_layers]:
389
+ if output_hidden_states:
390
+ all_hidden_states += (hidden_states,)
391
+
392
+
393
+ layer_outputs = decoder_layer(
394
+ hidden_states,
395
+ attention_mask=causal_mask,
396
+ position_ids=position_ids,
397
+ past_key_value=past_key_values,
398
+ output_attentions=output_attentions,
399
+ use_cache=use_cache,
400
+ cache_position=cache_position,
401
+ position_embeddings=position_embeddings,
402
+ **flash_attn_kwargs,
403
+ )
404
+
405
+ hidden_states = layer_outputs[0]
406
+
407
+ if output_attentions:
408
+ all_self_attns += (layer_outputs[1],)
409
+
410
+ hidden_states = self.norm(hidden_states)
411
+
412
+ # add hidden states from the last decoder layer
413
+ if output_hidden_states:
414
+ all_hidden_states += (hidden_states,)
415
+
416
+ return BaseModelOutputWithPast(
417
+ last_hidden_state=hidden_states,
418
+ past_key_values=past_key_values if use_cache else None,
419
+ hidden_states=all_hidden_states,
420
+ attentions=all_self_attns,
421
+ )
422
+
423
+
424
+ # class KwargsForCausalLM(FlashAttentionKwargs, LossKwargs): ...
425
+
426
+ class KORMoForCausalLM(KORMoPreTrainedModel, GenerationMixin):
427
+ _tied_weights_keys = ["lm_head.weight"]
428
+ _tp_plan = {"lm_head": "colwise_rep"}
429
+ _pp_plan = {"lm_head": (["hidden_states"], ["logits"])}
430
+
431
+ def __init__(self, config):
432
+ super().__init__(config)
433
+ self.model = KORMoModel(config)
434
+ self.vocab_size = config.vocab_size
435
+ self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
436
+ self.post_init()
437
+
438
+ def get_input_embeddings(self):
439
+ return self.model.embed_tokens
440
+
441
+ def set_input_embeddings(self, value):
442
+ self.model.embed_tokens = value
443
+
444
+ def get_output_embeddings(self):
445
+ return self.lm_head
446
+
447
+ def set_output_embeddings(self, new_embeddings):
448
+ self.lm_head = new_embeddings
449
+
450
+ def set_decoder(self, decoder):
451
+ self.model = decoder
452
+
453
+ def get_decoder(self):
454
+ return self.model
455
+
456
+ @can_return_tuple
457
+ def forward(
458
+ self,
459
+ input_ids: torch.LongTensor = None,
460
+ attention_mask: Optional[torch.Tensor] = None,
461
+ position_ids: Optional[torch.LongTensor] = None,
462
+ past_key_values: Optional[Union[Cache, List[torch.FloatTensor]]] = None,
463
+ inputs_embeds: Optional[torch.FloatTensor] = None,
464
+ labels: Optional[torch.LongTensor] = None,
465
+ use_cache: Optional[bool] = None,
466
+ output_attentions: Optional[bool] = None,
467
+ output_hidden_states: Optional[bool] = None,
468
+ cache_position: Optional[torch.LongTensor] = None,
469
+ logits_to_keep: int = 0,
470
+ **kwargs,
471
+ ) -> CausalLMOutputWithPast:
472
+ output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
473
+ output_hidden_states = (
474
+ output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
475
+ )
476
+
477
+ # decoder outputs consists of (dec_features, layer_state, dec_hidden, dec_attn)
478
+ outputs: BaseModelOutputWithPast = self.model(
479
+ input_ids=input_ids,
480
+ attention_mask=attention_mask,
481
+ position_ids=position_ids,
482
+ past_key_values=past_key_values,
483
+ inputs_embeds=inputs_embeds,
484
+ use_cache=use_cache,
485
+ output_attentions=output_attentions,
486
+ output_hidden_states=output_hidden_states,
487
+ cache_position=cache_position,
488
+ **kwargs,
489
+ )
490
+
491
+ hidden_states = outputs.last_hidden_state
492
+ # Only compute necessary logits, and do not upcast them to float if we are not computing the loss
493
+ slice_indices = slice(-logits_to_keep, None) if isinstance(logits_to_keep, int) else logits_to_keep
494
+ logits = self.lm_head(hidden_states[:, slice_indices, :])
495
+
496
+ loss = None
497
+ if labels is not None:
498
+ loss = self.loss_function(logits=logits, labels=labels, vocab_size=self.config.vocab_size, **kwargs)
499
+
500
+ return CausalLMOutputWithPast(
501
+ loss=loss,
502
+ logits=logits,
503
+ past_key_values=outputs.past_key_values,
504
+ hidden_states=outputs.hidden_states,
505
+ attentions=outputs.attentions,
506
+ )
507
+
508
+
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "KORMoForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "_configuration_kormo.KORMoConfig",
9
+ "AutoModelForCausalLM": "_modeling_kormo.KORMoForCausalLM"
10
+ },
11
+ "bos_token_id": 125030,
12
+ "dtype": "bfloat16",
13
+ "eos_token_id": 125040,
14
+ "head_dim": 128,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 4096,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 16384,
19
+ "mask_type": null,
20
+ "max_position_embeddings": 131072,
21
+ "mlp_bias": false,
22
+ "model_type": "kormo",
23
+ "num_attention_heads": 32,
24
+ "num_hidden_layers": 40,
25
+ "num_key_value_heads": 8,
26
+ "pad_token_id": 125032,
27
+ "pretrain_tp": 1,
28
+ "pretraining_tp": 1,
29
+ "rms_norm_eps": 1e-05,
30
+ "rope_scaling": null,
31
+ "rope_theta": 8000000.0,
32
+ "tie_word_embeddings": false,
33
+ "tie_word_embeddins": false,
34
+ "transformers_version": "4.57.0",
35
+ "use_cache": true,
36
+ "vocab_size": 125184
37
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 125030,
4
+ "eos_token_id": [
5
+ 125040
6
+ ],
7
+ "pad_token_id": 125032,
8
+ "transformers_version": "4.57.0"
9
+ }
model-00001-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c70d50a90e63eb397f9cc17ea8f8f280bd79a27c41c3fbbbb0ab0069f56cffb
3
+ size 4968292992
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cc55eb6d8841a5fe289ab9471abc8a37f551bb5faa2da3de9f26349300d7625
3
+ size 4899121536
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e707afaee72093b31f87f247598eea52c5acec4a2b7c9d2fdd7029da878254cf
3
+ size 4999784848
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d67abf6d3802ad8278ffbb0aade34a83cfa47708d6e4cd302140cfa3ffe5d1f
3
+ size 4999784848
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a56a9e1f6e46b701e99c9809c5cfa78e37135bae1df7ae51f171cf5b05f1984
3
+ size 1646306904
model.safetensors.index.json ADDED
@@ -0,0 +1,371 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 10756624384,
4
+ "total_size": 21513248768
5
+ },
6
+ "weight_map": {
7
+ "lm_head.weight": "model-00005-of-00005.safetensors",
8
+ "model.embed_tokens.weight": "model-00001-of-00005.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
10
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
12
+ "model.layers.0.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
13
+ "model.layers.0.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
14
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
15
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
16
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
17
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
18
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
19
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
20
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
21
+ "model.layers.1.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
22
+ "model.layers.1.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
23
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
24
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
25
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
26
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
27
+ "model.layers.10.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
28
+ "model.layers.10.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
29
+ "model.layers.10.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
30
+ "model.layers.10.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
31
+ "model.layers.10.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
32
+ "model.layers.10.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
33
+ "model.layers.10.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
34
+ "model.layers.10.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
35
+ "model.layers.10.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
36
+ "model.layers.11.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
37
+ "model.layers.11.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
38
+ "model.layers.11.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
39
+ "model.layers.11.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
40
+ "model.layers.11.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
41
+ "model.layers.11.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
42
+ "model.layers.11.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
43
+ "model.layers.11.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
44
+ "model.layers.11.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
45
+ "model.layers.12.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
46
+ "model.layers.12.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
47
+ "model.layers.12.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
48
+ "model.layers.12.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
49
+ "model.layers.12.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
50
+ "model.layers.12.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
51
+ "model.layers.12.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
52
+ "model.layers.12.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
53
+ "model.layers.12.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
54
+ "model.layers.13.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
55
+ "model.layers.13.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
56
+ "model.layers.13.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
57
+ "model.layers.13.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
58
+ "model.layers.13.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
59
+ "model.layers.13.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
60
+ "model.layers.13.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
61
+ "model.layers.13.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
62
+ "model.layers.13.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
63
+ "model.layers.14.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
64
+ "model.layers.14.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
65
+ "model.layers.14.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
66
+ "model.layers.14.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
67
+ "model.layers.14.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
68
+ "model.layers.14.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
69
+ "model.layers.14.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
70
+ "model.layers.14.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
71
+ "model.layers.14.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
72
+ "model.layers.15.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
73
+ "model.layers.15.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
74
+ "model.layers.15.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
75
+ "model.layers.15.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
76
+ "model.layers.15.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
77
+ "model.layers.15.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
78
+ "model.layers.15.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
79
+ "model.layers.15.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
80
+ "model.layers.15.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
81
+ "model.layers.16.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
82
+ "model.layers.16.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
83
+ "model.layers.16.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
84
+ "model.layers.16.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
85
+ "model.layers.16.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
86
+ "model.layers.16.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
87
+ "model.layers.16.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
88
+ "model.layers.16.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
89
+ "model.layers.16.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
90
+ "model.layers.17.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
91
+ "model.layers.17.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
92
+ "model.layers.17.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
93
+ "model.layers.17.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
94
+ "model.layers.17.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
95
+ "model.layers.17.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
96
+ "model.layers.17.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
97
+ "model.layers.17.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
98
+ "model.layers.17.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
99
+ "model.layers.18.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
100
+ "model.layers.18.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
101
+ "model.layers.18.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
102
+ "model.layers.18.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
103
+ "model.layers.18.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
104
+ "model.layers.18.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
105
+ "model.layers.18.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
106
+ "model.layers.18.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
107
+ "model.layers.18.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
108
+ "model.layers.19.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
109
+ "model.layers.19.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
110
+ "model.layers.19.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
111
+ "model.layers.19.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
112
+ "model.layers.19.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
113
+ "model.layers.19.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
114
+ "model.layers.19.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
115
+ "model.layers.19.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
116
+ "model.layers.19.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
117
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
118
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
119
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
120
+ "model.layers.2.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
121
+ "model.layers.2.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
122
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
123
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
124
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
125
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
126
+ "model.layers.20.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
127
+ "model.layers.20.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
128
+ "model.layers.20.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
129
+ "model.layers.20.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
130
+ "model.layers.20.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
131
+ "model.layers.20.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
132
+ "model.layers.20.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
133
+ "model.layers.20.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
134
+ "model.layers.20.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
135
+ "model.layers.21.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
136
+ "model.layers.21.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
137
+ "model.layers.21.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
138
+ "model.layers.21.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
139
+ "model.layers.21.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
140
+ "model.layers.21.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
141
+ "model.layers.21.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
142
+ "model.layers.21.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
143
+ "model.layers.21.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
144
+ "model.layers.22.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
145
+ "model.layers.22.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
146
+ "model.layers.22.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
147
+ "model.layers.22.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
148
+ "model.layers.22.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
149
+ "model.layers.22.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
150
+ "model.layers.22.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
151
+ "model.layers.22.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
152
+ "model.layers.22.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
153
+ "model.layers.23.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
154
+ "model.layers.23.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
155
+ "model.layers.23.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
156
+ "model.layers.23.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
157
+ "model.layers.23.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
158
+ "model.layers.23.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
159
+ "model.layers.23.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
160
+ "model.layers.23.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
161
+ "model.layers.23.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
162
+ "model.layers.24.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
163
+ "model.layers.24.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
164
+ "model.layers.24.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
165
+ "model.layers.24.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
166
+ "model.layers.24.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
167
+ "model.layers.24.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
168
+ "model.layers.24.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
169
+ "model.layers.24.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
170
+ "model.layers.24.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
171
+ "model.layers.25.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
172
+ "model.layers.25.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
173
+ "model.layers.25.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
174
+ "model.layers.25.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
175
+ "model.layers.25.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
176
+ "model.layers.25.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
177
+ "model.layers.25.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
178
+ "model.layers.25.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
179
+ "model.layers.25.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
180
+ "model.layers.26.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
181
+ "model.layers.26.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
182
+ "model.layers.26.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
183
+ "model.layers.26.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
184
+ "model.layers.26.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
185
+ "model.layers.26.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
186
+ "model.layers.26.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
187
+ "model.layers.26.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
188
+ "model.layers.26.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
189
+ "model.layers.27.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
190
+ "model.layers.27.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
191
+ "model.layers.27.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
192
+ "model.layers.27.pre_attention_layernorm.weight": "model-00003-of-00005.safetensors",
193
+ "model.layers.27.pre_mlp_layernorm.weight": "model-00003-of-00005.safetensors",
194
+ "model.layers.27.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
195
+ "model.layers.27.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
196
+ "model.layers.27.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
197
+ "model.layers.27.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
198
+ "model.layers.28.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
199
+ "model.layers.28.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
200
+ "model.layers.28.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
201
+ "model.layers.28.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
202
+ "model.layers.28.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
203
+ "model.layers.28.self_attn.k_proj.weight": "model-00003-of-00005.safetensors",
204
+ "model.layers.28.self_attn.o_proj.weight": "model-00003-of-00005.safetensors",
205
+ "model.layers.28.self_attn.q_proj.weight": "model-00003-of-00005.safetensors",
206
+ "model.layers.28.self_attn.v_proj.weight": "model-00003-of-00005.safetensors",
207
+ "model.layers.29.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
208
+ "model.layers.29.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
209
+ "model.layers.29.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
210
+ "model.layers.29.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
211
+ "model.layers.29.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
212
+ "model.layers.29.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
213
+ "model.layers.29.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
214
+ "model.layers.29.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
215
+ "model.layers.29.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
216
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
217
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
218
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
219
+ "model.layers.3.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
220
+ "model.layers.3.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
221
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
222
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
223
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
224
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
225
+ "model.layers.30.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
226
+ "model.layers.30.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
227
+ "model.layers.30.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
228
+ "model.layers.30.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
229
+ "model.layers.30.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
230
+ "model.layers.30.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
231
+ "model.layers.30.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
232
+ "model.layers.30.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
233
+ "model.layers.30.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
234
+ "model.layers.31.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
235
+ "model.layers.31.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
236
+ "model.layers.31.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
237
+ "model.layers.31.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
238
+ "model.layers.31.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
239
+ "model.layers.31.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
240
+ "model.layers.31.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
241
+ "model.layers.31.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
242
+ "model.layers.31.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
243
+ "model.layers.32.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
244
+ "model.layers.32.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
245
+ "model.layers.32.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
246
+ "model.layers.32.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
247
+ "model.layers.32.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
248
+ "model.layers.32.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
249
+ "model.layers.32.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
250
+ "model.layers.32.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
251
+ "model.layers.32.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
252
+ "model.layers.33.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
253
+ "model.layers.33.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
254
+ "model.layers.33.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
255
+ "model.layers.33.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
256
+ "model.layers.33.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
257
+ "model.layers.33.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
258
+ "model.layers.33.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
259
+ "model.layers.33.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
260
+ "model.layers.33.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
261
+ "model.layers.34.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
262
+ "model.layers.34.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
263
+ "model.layers.34.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
264
+ "model.layers.34.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
265
+ "model.layers.34.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
266
+ "model.layers.34.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
267
+ "model.layers.34.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
268
+ "model.layers.34.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
269
+ "model.layers.34.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
270
+ "model.layers.35.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
271
+ "model.layers.35.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
272
+ "model.layers.35.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
273
+ "model.layers.35.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
274
+ "model.layers.35.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
275
+ "model.layers.35.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
276
+ "model.layers.35.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
277
+ "model.layers.35.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
278
+ "model.layers.35.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
279
+ "model.layers.36.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
280
+ "model.layers.36.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
281
+ "model.layers.36.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
282
+ "model.layers.36.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
283
+ "model.layers.36.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
284
+ "model.layers.36.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
285
+ "model.layers.36.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
286
+ "model.layers.36.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
287
+ "model.layers.36.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
288
+ "model.layers.37.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
289
+ "model.layers.37.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
290
+ "model.layers.37.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
291
+ "model.layers.37.pre_attention_layernorm.weight": "model-00004-of-00005.safetensors",
292
+ "model.layers.37.pre_mlp_layernorm.weight": "model-00004-of-00005.safetensors",
293
+ "model.layers.37.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
294
+ "model.layers.37.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
295
+ "model.layers.37.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
296
+ "model.layers.37.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
297
+ "model.layers.38.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
298
+ "model.layers.38.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
299
+ "model.layers.38.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
300
+ "model.layers.38.pre_attention_layernorm.weight": "model-00005-of-00005.safetensors",
301
+ "model.layers.38.pre_mlp_layernorm.weight": "model-00005-of-00005.safetensors",
302
+ "model.layers.38.self_attn.k_proj.weight": "model-00004-of-00005.safetensors",
303
+ "model.layers.38.self_attn.o_proj.weight": "model-00004-of-00005.safetensors",
304
+ "model.layers.38.self_attn.q_proj.weight": "model-00004-of-00005.safetensors",
305
+ "model.layers.38.self_attn.v_proj.weight": "model-00004-of-00005.safetensors",
306
+ "model.layers.39.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
307
+ "model.layers.39.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
308
+ "model.layers.39.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
309
+ "model.layers.39.pre_attention_layernorm.weight": "model-00005-of-00005.safetensors",
310
+ "model.layers.39.pre_mlp_layernorm.weight": "model-00005-of-00005.safetensors",
311
+ "model.layers.39.self_attn.k_proj.weight": "model-00005-of-00005.safetensors",
312
+ "model.layers.39.self_attn.o_proj.weight": "model-00005-of-00005.safetensors",
313
+ "model.layers.39.self_attn.q_proj.weight": "model-00005-of-00005.safetensors",
314
+ "model.layers.39.self_attn.v_proj.weight": "model-00005-of-00005.safetensors",
315
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
316
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
317
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
318
+ "model.layers.4.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
319
+ "model.layers.4.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
320
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
321
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
322
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
323
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
324
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
325
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
326
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
327
+ "model.layers.5.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
328
+ "model.layers.5.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
329
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
330
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
331
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
332
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
333
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
334
+ "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
335
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
336
+ "model.layers.6.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
337
+ "model.layers.6.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
338
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
339
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
340
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
341
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
342
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
343
+ "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
344
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
345
+ "model.layers.7.pre_attention_layernorm.weight": "model-00001-of-00005.safetensors",
346
+ "model.layers.7.pre_mlp_layernorm.weight": "model-00001-of-00005.safetensors",
347
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
348
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00005.safetensors",
349
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
350
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
351
+ "model.layers.8.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
352
+ "model.layers.8.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
353
+ "model.layers.8.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
354
+ "model.layers.8.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
355
+ "model.layers.8.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
356
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00005.safetensors",
357
+ "model.layers.8.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
358
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00005.safetensors",
359
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00005.safetensors",
360
+ "model.layers.9.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
361
+ "model.layers.9.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
362
+ "model.layers.9.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
363
+ "model.layers.9.pre_attention_layernorm.weight": "model-00002-of-00005.safetensors",
364
+ "model.layers.9.pre_mlp_layernorm.weight": "model-00002-of-00005.safetensors",
365
+ "model.layers.9.self_attn.k_proj.weight": "model-00002-of-00005.safetensors",
366
+ "model.layers.9.self_attn.o_proj.weight": "model-00002-of-00005.safetensors",
367
+ "model.layers.9.self_attn.q_proj.weight": "model-00002-of-00005.safetensors",
368
+ "model.layers.9.self_attn.v_proj.weight": "model-00002-of-00005.safetensors",
369
+ "model.norm.weight": "model-00005-of-00005.safetensors"
370
+ }
371
+ }