Upload 13 files
Browse files- all_results.json +7 -0
- config.json +42 -0
- configuration_internlm.py +161 -0
- generation_config.json +7 -0
- model.safetensors.index.json +554 -0
- modeling_internlm.py +0 -0
- special_tokens_map.json +38 -0
- tokenization_internlm2.py +236 -0
- tokenizer.model +3 -0
- tokenizer_config.json +98 -0
- train_results.json +7 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
all_results.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.0,
|
3 |
+
"train_loss": 1.1182698494837005,
|
4 |
+
"train_runtime": 99534.9844,
|
5 |
+
"train_samples_per_second": 13.655,
|
6 |
+
"train_steps_per_second": 0.107
|
7 |
+
}
|
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/data03/dragon_proj/ChatLaw-MoE/models/moe_chatlaw_4experts-7b",
|
3 |
+
"architectures": [
|
4 |
+
"InternLM2ForCausalLM"
|
5 |
+
],
|
6 |
+
"attn_implementation": "flash_attention_2",
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "configuration_internlm.InternLM2Config",
|
9 |
+
"AutoModel": "modeling_internlm.InternLM2ForCausalLM",
|
10 |
+
"AutoModelForCausalLM": "modeling_internlm.InternLM2ForCausalLM"
|
11 |
+
},
|
12 |
+
"bias": false,
|
13 |
+
"bos_token_id": 1,
|
14 |
+
"cor_loss_coef": 0,
|
15 |
+
"eos_token_id": 2,
|
16 |
+
"hidden_act": "silu",
|
17 |
+
"hidden_size": 4096,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 14336,
|
20 |
+
"max_position_embeddings": 32768,
|
21 |
+
"model_type": "internlm2",
|
22 |
+
"num_attention_heads": 32,
|
23 |
+
"num_experts_per_tok": 2,
|
24 |
+
"num_hidden_layers": 32,
|
25 |
+
"num_key_value_heads": 8,
|
26 |
+
"num_local_experts": 4,
|
27 |
+
"output_expert_opinion": false,
|
28 |
+
"output_router_logits": false,
|
29 |
+
"pad_token_id": 2,
|
30 |
+
"rms_norm_eps": 1e-05,
|
31 |
+
"rope_scaling": {
|
32 |
+
"factor": 2.0,
|
33 |
+
"type": "dynamic"
|
34 |
+
},
|
35 |
+
"rope_theta": 1000000,
|
36 |
+
"router_aux_loss_coef": 0.001,
|
37 |
+
"tie_word_embeddings": false,
|
38 |
+
"torch_dtype": "bfloat16",
|
39 |
+
"transformers_version": "4.37.2",
|
40 |
+
"use_cache": true,
|
41 |
+
"vocab_size": 92544
|
42 |
+
}
|
configuration_internlm.py
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# coding=utf-8
|
2 |
+
# Copyright (c) The InternLM team and The HuggingFace Inc. team. All rights reserved.
|
3 |
+
#
|
4 |
+
# This code is based on transformers/src/transformers/models/llama/configuration_llama.py
|
5 |
+
#
|
6 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7 |
+
# you may not use this file except in compliance with the License.
|
8 |
+
# You may obtain a copy of the License at
|
9 |
+
#
|
10 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11 |
+
#
|
12 |
+
# Unless required by applicable law or agreed to in writing, software
|
13 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
+
# See the License for the specific language governing permissions and
|
16 |
+
# limitations under the License.
|
17 |
+
""" InternLM2 model configuration"""
|
18 |
+
|
19 |
+
from transformers.configuration_utils import PretrainedConfig
|
20 |
+
from transformers.utils import logging
|
21 |
+
|
22 |
+
logger = logging.get_logger(__name__)
|
23 |
+
|
24 |
+
INTERNLM2_PRETRAINED_CONFIG_ARCHIVE_MAP = {}
|
25 |
+
|
26 |
+
|
27 |
+
# Modified from transformers.model.llama.configuration_llama.LlamaConfig
|
28 |
+
class InternLM2Config(PretrainedConfig):
|
29 |
+
r"""
|
30 |
+
This is the configuration class to store the configuration of a [`InternLM2Model`]. It is used to instantiate
|
31 |
+
an InternLM2 model according to the specified arguments, defining the model architecture. Instantiating a
|
32 |
+
configuration with the defaults will yield a similar configuration to that of the InternLM2-7B.
|
33 |
+
|
34 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
35 |
+
documentation from [`PretrainedConfig`] for more information.
|
36 |
+
|
37 |
+
|
38 |
+
Args:
|
39 |
+
vocab_size (`int`, *optional*, defaults to 32000):
|
40 |
+
Vocabulary size of the InternLM2 model. Defines the number of different tokens that can be represented by the
|
41 |
+
`inputs_ids` passed when calling [`InternLM2Model`]
|
42 |
+
hidden_size (`int`, *optional*, defaults to 4096):
|
43 |
+
Dimension of the hidden representations.
|
44 |
+
intermediate_size (`int`, *optional*, defaults to 11008):
|
45 |
+
Dimension of the MLP representations.
|
46 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
47 |
+
Number of hidden layers in the Transformer encoder.
|
48 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
49 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
50 |
+
num_key_value_heads (`int`, *optional*):
|
51 |
+
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
|
52 |
+
`num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
|
53 |
+
`num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used. When
|
54 |
+
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
|
55 |
+
by meanpooling all the original heads within that group. For more details checkout [this
|
56 |
+
paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to
|
57 |
+
`num_attention_heads`.
|
58 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
|
59 |
+
The non-linear activation function (function or string) in the decoder.
|
60 |
+
max_position_embeddings (`int`, *optional*, defaults to 2048):
|
61 |
+
The maximum sequence length that this model might ever be used with. Typically set this to something large
|
62 |
+
just in case (e.g., 512 or 1024 or 2048).
|
63 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
64 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
65 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-12):
|
66 |
+
The epsilon used by the rms normalization layers.
|
67 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
68 |
+
Whether or not the model should return the last key/values attentions (not used by all models). Only
|
69 |
+
relevant if `config.is_decoder=True`.
|
70 |
+
tie_word_embeddings(`bool`, *optional*, defaults to `False`):
|
71 |
+
Whether to tie weight embeddings
|
72 |
+
Example:
|
73 |
+
|
74 |
+
"""
|
75 |
+
model_type = "internlm2"
|
76 |
+
_auto_class = "AutoConfig"
|
77 |
+
|
78 |
+
def __init__( # pylint: disable=W0102
|
79 |
+
self,
|
80 |
+
vocab_size=103168,
|
81 |
+
hidden_size=4096,
|
82 |
+
intermediate_size=11008,
|
83 |
+
num_hidden_layers=32,
|
84 |
+
num_attention_heads=32,
|
85 |
+
num_key_value_heads=None,
|
86 |
+
hidden_act="silu",
|
87 |
+
max_position_embeddings=2048,
|
88 |
+
initializer_range=0.02,
|
89 |
+
rms_norm_eps=1e-6,
|
90 |
+
use_cache=True,
|
91 |
+
pad_token_id=0,
|
92 |
+
bos_token_id=1,
|
93 |
+
eos_token_id=2,
|
94 |
+
tie_word_embeddings=False,
|
95 |
+
bias=True,
|
96 |
+
rope_theta=10000,
|
97 |
+
rope_scaling=None,
|
98 |
+
attn_implementation="eager",
|
99 |
+
num_experts_per_tok=2,
|
100 |
+
num_local_experts=8,
|
101 |
+
output_router_logits=False,
|
102 |
+
router_aux_loss_coef=0.001,
|
103 |
+
**kwargs,
|
104 |
+
):
|
105 |
+
self.vocab_size = vocab_size
|
106 |
+
self.max_position_embeddings = max_position_embeddings
|
107 |
+
self.hidden_size = hidden_size
|
108 |
+
self.intermediate_size = intermediate_size
|
109 |
+
self.num_hidden_layers = num_hidden_layers
|
110 |
+
self.num_attention_heads = num_attention_heads
|
111 |
+
self.bias = bias
|
112 |
+
|
113 |
+
if num_key_value_heads is None:
|
114 |
+
num_key_value_heads = num_attention_heads
|
115 |
+
self.num_key_value_heads = num_key_value_heads
|
116 |
+
|
117 |
+
self.hidden_act = hidden_act
|
118 |
+
self.initializer_range = initializer_range
|
119 |
+
self.rms_norm_eps = rms_norm_eps
|
120 |
+
self.use_cache = use_cache
|
121 |
+
self.rope_theta = rope_theta
|
122 |
+
self.rope_scaling = rope_scaling
|
123 |
+
self._rope_scaling_validation()
|
124 |
+
|
125 |
+
self.attn_implementation = attn_implementation
|
126 |
+
if self.attn_implementation is None:
|
127 |
+
self.attn_implementation = "eager"
|
128 |
+
|
129 |
+
self.num_experts_per_tok = num_experts_per_tok
|
130 |
+
self.num_local_experts = num_local_experts
|
131 |
+
self.output_router_logits = output_router_logits
|
132 |
+
self.router_aux_loss_coef = router_aux_loss_coef
|
133 |
+
|
134 |
+
super().__init__(
|
135 |
+
pad_token_id=pad_token_id,
|
136 |
+
bos_token_id=bos_token_id,
|
137 |
+
eos_token_id=eos_token_id,
|
138 |
+
tie_word_embeddings=tie_word_embeddings,
|
139 |
+
**kwargs,
|
140 |
+
)
|
141 |
+
|
142 |
+
def _rope_scaling_validation(self):
|
143 |
+
"""
|
144 |
+
Validate the `rope_scaling` configuration.
|
145 |
+
"""
|
146 |
+
if self.rope_scaling is None:
|
147 |
+
return
|
148 |
+
|
149 |
+
if not isinstance(self.rope_scaling, dict) or len(self.rope_scaling) != 2:
|
150 |
+
raise ValueError(
|
151 |
+
"`rope_scaling` must be a dictionary with with two fields, `type` and `factor`, "
|
152 |
+
f"got {self.rope_scaling}"
|
153 |
+
)
|
154 |
+
rope_scaling_type = self.rope_scaling.get("type", None)
|
155 |
+
rope_scaling_factor = self.rope_scaling.get("factor", None)
|
156 |
+
if rope_scaling_type is None or rope_scaling_type not in ["linear", "dynamic"]:
|
157 |
+
raise ValueError(
|
158 |
+
f"`rope_scaling`'s type field must be one of ['linear', 'dynamic'], got {rope_scaling_type}"
|
159 |
+
)
|
160 |
+
if rope_scaling_factor is None or not isinstance(rope_scaling_factor, float) or rope_scaling_factor < 1.0:
|
161 |
+
raise ValueError(f"`rope_scaling`'s factor field must be a float >= 1, got {rope_scaling_factor}")
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 2,
|
6 |
+
"transformers_version": "4.37.2"
|
7 |
+
}
|
model.safetensors.index.json
ADDED
@@ -0,0 +1,554 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"metadata": {
|
3 |
+
"total_size": 49299333120
|
4 |
+
},
|
5 |
+
"weight_map": {
|
6 |
+
"model.layers.0.attention.wo.weight": "model-00001-of-00010.safetensors",
|
7 |
+
"model.layers.0.attention.wqkv.weight": "model-00001-of-00010.safetensors",
|
8 |
+
"model.layers.0.attention_norm.weight": "model-00001-of-00010.safetensors",
|
9 |
+
"model.layers.0.feed_forward.experts.0.w1.weight": "model-00001-of-00010.safetensors",
|
10 |
+
"model.layers.0.feed_forward.experts.0.w2.weight": "model-00001-of-00010.safetensors",
|
11 |
+
"model.layers.0.feed_forward.experts.0.w3.weight": "model-00001-of-00010.safetensors",
|
12 |
+
"model.layers.0.feed_forward.experts.1.w1.weight": "model-00001-of-00010.safetensors",
|
13 |
+
"model.layers.0.feed_forward.experts.1.w2.weight": "model-00001-of-00010.safetensors",
|
14 |
+
"model.layers.0.feed_forward.experts.1.w3.weight": "model-00001-of-00010.safetensors",
|
15 |
+
"model.layers.0.feed_forward.experts.2.w1.weight": "model-00001-of-00010.safetensors",
|
16 |
+
"model.layers.0.feed_forward.experts.2.w2.weight": "model-00001-of-00010.safetensors",
|
17 |
+
"model.layers.0.feed_forward.experts.2.w3.weight": "model-00001-of-00010.safetensors",
|
18 |
+
"model.layers.0.feed_forward.experts.3.w1.weight": "model-00001-of-00010.safetensors",
|
19 |
+
"model.layers.0.feed_forward.experts.3.w2.weight": "model-00001-of-00010.safetensors",
|
20 |
+
"model.layers.0.feed_forward.experts.3.w3.weight": "model-00001-of-00010.safetensors",
|
21 |
+
"model.layers.0.feed_forward.gate.weight": "model-00001-of-00010.safetensors",
|
22 |
+
"model.layers.0.ffn_norm.weight": "model-00001-of-00010.safetensors",
|
23 |
+
"model.layers.1.attention.wo.weight": "model-00001-of-00010.safetensors",
|
24 |
+
"model.layers.1.attention.wqkv.weight": "model-00001-of-00010.safetensors",
|
25 |
+
"model.layers.1.attention_norm.weight": "model-00001-of-00010.safetensors",
|
26 |
+
"model.layers.1.feed_forward.experts.0.w1.weight": "model-00001-of-00010.safetensors",
|
27 |
+
"model.layers.1.feed_forward.experts.0.w2.weight": "model-00001-of-00010.safetensors",
|
28 |
+
"model.layers.1.feed_forward.experts.0.w3.weight": "model-00001-of-00010.safetensors",
|
29 |
+
"model.layers.1.feed_forward.experts.1.w1.weight": "model-00001-of-00010.safetensors",
|
30 |
+
"model.layers.1.feed_forward.experts.1.w2.weight": "model-00001-of-00010.safetensors",
|
31 |
+
"model.layers.1.feed_forward.experts.1.w3.weight": "model-00001-of-00010.safetensors",
|
32 |
+
"model.layers.1.feed_forward.experts.2.w1.weight": "model-00001-of-00010.safetensors",
|
33 |
+
"model.layers.1.feed_forward.experts.2.w2.weight": "model-00001-of-00010.safetensors",
|
34 |
+
"model.layers.1.feed_forward.experts.2.w3.weight": "model-00001-of-00010.safetensors",
|
35 |
+
"model.layers.1.feed_forward.experts.3.w1.weight": "model-00001-of-00010.safetensors",
|
36 |
+
"model.layers.1.feed_forward.experts.3.w2.weight": "model-00001-of-00010.safetensors",
|
37 |
+
"model.layers.1.feed_forward.experts.3.w3.weight": "model-00001-of-00010.safetensors",
|
38 |
+
"model.layers.1.feed_forward.gate.weight": "model-00001-of-00010.safetensors",
|
39 |
+
"model.layers.1.ffn_norm.weight": "model-00001-of-00010.safetensors",
|
40 |
+
"model.layers.10.attention.wo.weight": "model-00004-of-00010.safetensors",
|
41 |
+
"model.layers.10.attention.wqkv.weight": "model-00004-of-00010.safetensors",
|
42 |
+
"model.layers.10.attention_norm.weight": "model-00004-of-00010.safetensors",
|
43 |
+
"model.layers.10.feed_forward.experts.0.w1.weight": "model-00004-of-00010.safetensors",
|
44 |
+
"model.layers.10.feed_forward.experts.0.w2.weight": "model-00004-of-00010.safetensors",
|
45 |
+
"model.layers.10.feed_forward.experts.0.w3.weight": "model-00004-of-00010.safetensors",
|
46 |
+
"model.layers.10.feed_forward.experts.1.w1.weight": "model-00004-of-00010.safetensors",
|
47 |
+
"model.layers.10.feed_forward.experts.1.w2.weight": "model-00004-of-00010.safetensors",
|
48 |
+
"model.layers.10.feed_forward.experts.1.w3.weight": "model-00004-of-00010.safetensors",
|
49 |
+
"model.layers.10.feed_forward.experts.2.w1.weight": "model-00004-of-00010.safetensors",
|
50 |
+
"model.layers.10.feed_forward.experts.2.w2.weight": "model-00004-of-00010.safetensors",
|
51 |
+
"model.layers.10.feed_forward.experts.2.w3.weight": "model-00004-of-00010.safetensors",
|
52 |
+
"model.layers.10.feed_forward.experts.3.w1.weight": "model-00004-of-00010.safetensors",
|
53 |
+
"model.layers.10.feed_forward.experts.3.w2.weight": "model-00004-of-00010.safetensors",
|
54 |
+
"model.layers.10.feed_forward.experts.3.w3.weight": "model-00004-of-00010.safetensors",
|
55 |
+
"model.layers.10.feed_forward.gate.weight": "model-00004-of-00010.safetensors",
|
56 |
+
"model.layers.10.ffn_norm.weight": "model-00004-of-00010.safetensors",
|
57 |
+
"model.layers.11.attention.wo.weight": "model-00004-of-00010.safetensors",
|
58 |
+
"model.layers.11.attention.wqkv.weight": "model-00004-of-00010.safetensors",
|
59 |
+
"model.layers.11.attention_norm.weight": "model-00004-of-00010.safetensors",
|
60 |
+
"model.layers.11.feed_forward.experts.0.w1.weight": "model-00004-of-00010.safetensors",
|
61 |
+
"model.layers.11.feed_forward.experts.0.w2.weight": "model-00004-of-00010.safetensors",
|
62 |
+
"model.layers.11.feed_forward.experts.0.w3.weight": "model-00004-of-00010.safetensors",
|
63 |
+
"model.layers.11.feed_forward.experts.1.w1.weight": "model-00004-of-00010.safetensors",
|
64 |
+
"model.layers.11.feed_forward.experts.1.w2.weight": "model-00004-of-00010.safetensors",
|
65 |
+
"model.layers.11.feed_forward.experts.1.w3.weight": "model-00004-of-00010.safetensors",
|
66 |
+
"model.layers.11.feed_forward.experts.2.w1.weight": "model-00004-of-00010.safetensors",
|
67 |
+
"model.layers.11.feed_forward.experts.2.w2.weight": "model-00004-of-00010.safetensors",
|
68 |
+
"model.layers.11.feed_forward.experts.2.w3.weight": "model-00004-of-00010.safetensors",
|
69 |
+
"model.layers.11.feed_forward.experts.3.w1.weight": "model-00004-of-00010.safetensors",
|
70 |
+
"model.layers.11.feed_forward.experts.3.w2.weight": "model-00004-of-00010.safetensors",
|
71 |
+
"model.layers.11.feed_forward.experts.3.w3.weight": "model-00004-of-00010.safetensors",
|
72 |
+
"model.layers.11.feed_forward.gate.weight": "model-00004-of-00010.safetensors",
|
73 |
+
"model.layers.11.ffn_norm.weight": "model-00004-of-00010.safetensors",
|
74 |
+
"model.layers.12.attention.wo.weight": "model-00004-of-00010.safetensors",
|
75 |
+
"model.layers.12.attention.wqkv.weight": "model-00004-of-00010.safetensors",
|
76 |
+
"model.layers.12.attention_norm.weight": "model-00005-of-00010.safetensors",
|
77 |
+
"model.layers.12.feed_forward.experts.0.w1.weight": "model-00004-of-00010.safetensors",
|
78 |
+
"model.layers.12.feed_forward.experts.0.w2.weight": "model-00004-of-00010.safetensors",
|
79 |
+
"model.layers.12.feed_forward.experts.0.w3.weight": "model-00004-of-00010.safetensors",
|
80 |
+
"model.layers.12.feed_forward.experts.1.w1.weight": "model-00004-of-00010.safetensors",
|
81 |
+
"model.layers.12.feed_forward.experts.1.w2.weight": "model-00004-of-00010.safetensors",
|
82 |
+
"model.layers.12.feed_forward.experts.1.w3.weight": "model-00004-of-00010.safetensors",
|
83 |
+
"model.layers.12.feed_forward.experts.2.w1.weight": "model-00004-of-00010.safetensors",
|
84 |
+
"model.layers.12.feed_forward.experts.2.w2.weight": "model-00005-of-00010.safetensors",
|
85 |
+
"model.layers.12.feed_forward.experts.2.w3.weight": "model-00004-of-00010.safetensors",
|
86 |
+
"model.layers.12.feed_forward.experts.3.w1.weight": "model-00005-of-00010.safetensors",
|
87 |
+
"model.layers.12.feed_forward.experts.3.w2.weight": "model-00005-of-00010.safetensors",
|
88 |
+
"model.layers.12.feed_forward.experts.3.w3.weight": "model-00005-of-00010.safetensors",
|
89 |
+
"model.layers.12.feed_forward.gate.weight": "model-00004-of-00010.safetensors",
|
90 |
+
"model.layers.12.ffn_norm.weight": "model-00005-of-00010.safetensors",
|
91 |
+
"model.layers.13.attention.wo.weight": "model-00005-of-00010.safetensors",
|
92 |
+
"model.layers.13.attention.wqkv.weight": "model-00005-of-00010.safetensors",
|
93 |
+
"model.layers.13.attention_norm.weight": "model-00005-of-00010.safetensors",
|
94 |
+
"model.layers.13.feed_forward.experts.0.w1.weight": "model-00005-of-00010.safetensors",
|
95 |
+
"model.layers.13.feed_forward.experts.0.w2.weight": "model-00005-of-00010.safetensors",
|
96 |
+
"model.layers.13.feed_forward.experts.0.w3.weight": "model-00005-of-00010.safetensors",
|
97 |
+
"model.layers.13.feed_forward.experts.1.w1.weight": "model-00005-of-00010.safetensors",
|
98 |
+
"model.layers.13.feed_forward.experts.1.w2.weight": "model-00005-of-00010.safetensors",
|
99 |
+
"model.layers.13.feed_forward.experts.1.w3.weight": "model-00005-of-00010.safetensors",
|
100 |
+
"model.layers.13.feed_forward.experts.2.w1.weight": "model-00005-of-00010.safetensors",
|
101 |
+
"model.layers.13.feed_forward.experts.2.w2.weight": "model-00005-of-00010.safetensors",
|
102 |
+
"model.layers.13.feed_forward.experts.2.w3.weight": "model-00005-of-00010.safetensors",
|
103 |
+
"model.layers.13.feed_forward.experts.3.w1.weight": "model-00005-of-00010.safetensors",
|
104 |
+
"model.layers.13.feed_forward.experts.3.w2.weight": "model-00005-of-00010.safetensors",
|
105 |
+
"model.layers.13.feed_forward.experts.3.w3.weight": "model-00005-of-00010.safetensors",
|
106 |
+
"model.layers.13.feed_forward.gate.weight": "model-00005-of-00010.safetensors",
|
107 |
+
"model.layers.13.ffn_norm.weight": "model-00005-of-00010.safetensors",
|
108 |
+
"model.layers.14.attention.wo.weight": "model-00005-of-00010.safetensors",
|
109 |
+
"model.layers.14.attention.wqkv.weight": "model-00005-of-00010.safetensors",
|
110 |
+
"model.layers.14.attention_norm.weight": "model-00005-of-00010.safetensors",
|
111 |
+
"model.layers.14.feed_forward.experts.0.w1.weight": "model-00005-of-00010.safetensors",
|
112 |
+
"model.layers.14.feed_forward.experts.0.w2.weight": "model-00005-of-00010.safetensors",
|
113 |
+
"model.layers.14.feed_forward.experts.0.w3.weight": "model-00005-of-00010.safetensors",
|
114 |
+
"model.layers.14.feed_forward.experts.1.w1.weight": "model-00005-of-00010.safetensors",
|
115 |
+
"model.layers.14.feed_forward.experts.1.w2.weight": "model-00005-of-00010.safetensors",
|
116 |
+
"model.layers.14.feed_forward.experts.1.w3.weight": "model-00005-of-00010.safetensors",
|
117 |
+
"model.layers.14.feed_forward.experts.2.w1.weight": "model-00005-of-00010.safetensors",
|
118 |
+
"model.layers.14.feed_forward.experts.2.w2.weight": "model-00005-of-00010.safetensors",
|
119 |
+
"model.layers.14.feed_forward.experts.2.w3.weight": "model-00005-of-00010.safetensors",
|
120 |
+
"model.layers.14.feed_forward.experts.3.w1.weight": "model-00005-of-00010.safetensors",
|
121 |
+
"model.layers.14.feed_forward.experts.3.w2.weight": "model-00005-of-00010.safetensors",
|
122 |
+
"model.layers.14.feed_forward.experts.3.w3.weight": "model-00005-of-00010.safetensors",
|
123 |
+
"model.layers.14.feed_forward.gate.weight": "model-00005-of-00010.safetensors",
|
124 |
+
"model.layers.14.ffn_norm.weight": "model-00005-of-00010.safetensors",
|
125 |
+
"model.layers.15.attention.wo.weight": "model-00005-of-00010.safetensors",
|
126 |
+
"model.layers.15.attention.wqkv.weight": "model-00005-of-00010.safetensors",
|
127 |
+
"model.layers.15.attention_norm.weight": "model-00005-of-00010.safetensors",
|
128 |
+
"model.layers.15.feed_forward.experts.0.w1.weight": "model-00005-of-00010.safetensors",
|
129 |
+
"model.layers.15.feed_forward.experts.0.w2.weight": "model-00005-of-00010.safetensors",
|
130 |
+
"model.layers.15.feed_forward.experts.0.w3.weight": "model-00005-of-00010.safetensors",
|
131 |
+
"model.layers.15.feed_forward.experts.1.w1.weight": "model-00005-of-00010.safetensors",
|
132 |
+
"model.layers.15.feed_forward.experts.1.w2.weight": "model-00005-of-00010.safetensors",
|
133 |
+
"model.layers.15.feed_forward.experts.1.w3.weight": "model-00005-of-00010.safetensors",
|
134 |
+
"model.layers.15.feed_forward.experts.2.w1.weight": "model-00005-of-00010.safetensors",
|
135 |
+
"model.layers.15.feed_forward.experts.2.w2.weight": "model-00005-of-00010.safetensors",
|
136 |
+
"model.layers.15.feed_forward.experts.2.w3.weight": "model-00005-of-00010.safetensors",
|
137 |
+
"model.layers.15.feed_forward.experts.3.w1.weight": "model-00005-of-00010.safetensors",
|
138 |
+
"model.layers.15.feed_forward.experts.3.w2.weight": "model-00005-of-00010.safetensors",
|
139 |
+
"model.layers.15.feed_forward.experts.3.w3.weight": "model-00005-of-00010.safetensors",
|
140 |
+
"model.layers.15.feed_forward.gate.weight": "model-00005-of-00010.safetensors",
|
141 |
+
"model.layers.15.ffn_norm.weight": "model-00005-of-00010.safetensors",
|
142 |
+
"model.layers.16.attention.wo.weight": "model-00006-of-00010.safetensors",
|
143 |
+
"model.layers.16.attention.wqkv.weight": "model-00005-of-00010.safetensors",
|
144 |
+
"model.layers.16.attention_norm.weight": "model-00006-of-00010.safetensors",
|
145 |
+
"model.layers.16.feed_forward.experts.0.w1.weight": "model-00006-of-00010.safetensors",
|
146 |
+
"model.layers.16.feed_forward.experts.0.w2.weight": "model-00006-of-00010.safetensors",
|
147 |
+
"model.layers.16.feed_forward.experts.0.w3.weight": "model-00006-of-00010.safetensors",
|
148 |
+
"model.layers.16.feed_forward.experts.1.w1.weight": "model-00006-of-00010.safetensors",
|
149 |
+
"model.layers.16.feed_forward.experts.1.w2.weight": "model-00006-of-00010.safetensors",
|
150 |
+
"model.layers.16.feed_forward.experts.1.w3.weight": "model-00006-of-00010.safetensors",
|
151 |
+
"model.layers.16.feed_forward.experts.2.w1.weight": "model-00006-of-00010.safetensors",
|
152 |
+
"model.layers.16.feed_forward.experts.2.w2.weight": "model-00006-of-00010.safetensors",
|
153 |
+
"model.layers.16.feed_forward.experts.2.w3.weight": "model-00006-of-00010.safetensors",
|
154 |
+
"model.layers.16.feed_forward.experts.3.w1.weight": "model-00006-of-00010.safetensors",
|
155 |
+
"model.layers.16.feed_forward.experts.3.w2.weight": "model-00006-of-00010.safetensors",
|
156 |
+
"model.layers.16.feed_forward.experts.3.w3.weight": "model-00006-of-00010.safetensors",
|
157 |
+
"model.layers.16.feed_forward.gate.weight": "model-00006-of-00010.safetensors",
|
158 |
+
"model.layers.16.ffn_norm.weight": "model-00006-of-00010.safetensors",
|
159 |
+
"model.layers.17.attention.wo.weight": "model-00006-of-00010.safetensors",
|
160 |
+
"model.layers.17.attention.wqkv.weight": "model-00006-of-00010.safetensors",
|
161 |
+
"model.layers.17.attention_norm.weight": "model-00006-of-00010.safetensors",
|
162 |
+
"model.layers.17.feed_forward.experts.0.w1.weight": "model-00006-of-00010.safetensors",
|
163 |
+
"model.layers.17.feed_forward.experts.0.w2.weight": "model-00006-of-00010.safetensors",
|
164 |
+
"model.layers.17.feed_forward.experts.0.w3.weight": "model-00006-of-00010.safetensors",
|
165 |
+
"model.layers.17.feed_forward.experts.1.w1.weight": "model-00006-of-00010.safetensors",
|
166 |
+
"model.layers.17.feed_forward.experts.1.w2.weight": "model-00006-of-00010.safetensors",
|
167 |
+
"model.layers.17.feed_forward.experts.1.w3.weight": "model-00006-of-00010.safetensors",
|
168 |
+
"model.layers.17.feed_forward.experts.2.w1.weight": "model-00006-of-00010.safetensors",
|
169 |
+
"model.layers.17.feed_forward.experts.2.w2.weight": "model-00006-of-00010.safetensors",
|
170 |
+
"model.layers.17.feed_forward.experts.2.w3.weight": "model-00006-of-00010.safetensors",
|
171 |
+
"model.layers.17.feed_forward.experts.3.w1.weight": "model-00006-of-00010.safetensors",
|
172 |
+
"model.layers.17.feed_forward.experts.3.w2.weight": "model-00006-of-00010.safetensors",
|
173 |
+
"model.layers.17.feed_forward.experts.3.w3.weight": "model-00006-of-00010.safetensors",
|
174 |
+
"model.layers.17.feed_forward.gate.weight": "model-00006-of-00010.safetensors",
|
175 |
+
"model.layers.17.ffn_norm.weight": "model-00006-of-00010.safetensors",
|
176 |
+
"model.layers.18.attention.wo.weight": "model-00006-of-00010.safetensors",
|
177 |
+
"model.layers.18.attention.wqkv.weight": "model-00006-of-00010.safetensors",
|
178 |
+
"model.layers.18.attention_norm.weight": "model-00006-of-00010.safetensors",
|
179 |
+
"model.layers.18.feed_forward.experts.0.w1.weight": "model-00006-of-00010.safetensors",
|
180 |
+
"model.layers.18.feed_forward.experts.0.w2.weight": "model-00006-of-00010.safetensors",
|
181 |
+
"model.layers.18.feed_forward.experts.0.w3.weight": "model-00006-of-00010.safetensors",
|
182 |
+
"model.layers.18.feed_forward.experts.1.w1.weight": "model-00006-of-00010.safetensors",
|
183 |
+
"model.layers.18.feed_forward.experts.1.w2.weight": "model-00006-of-00010.safetensors",
|
184 |
+
"model.layers.18.feed_forward.experts.1.w3.weight": "model-00006-of-00010.safetensors",
|
185 |
+
"model.layers.18.feed_forward.experts.2.w1.weight": "model-00006-of-00010.safetensors",
|
186 |
+
"model.layers.18.feed_forward.experts.2.w2.weight": "model-00006-of-00010.safetensors",
|
187 |
+
"model.layers.18.feed_forward.experts.2.w3.weight": "model-00006-of-00010.safetensors",
|
188 |
+
"model.layers.18.feed_forward.experts.3.w1.weight": "model-00006-of-00010.safetensors",
|
189 |
+
"model.layers.18.feed_forward.experts.3.w2.weight": "model-00006-of-00010.safetensors",
|
190 |
+
"model.layers.18.feed_forward.experts.3.w3.weight": "model-00006-of-00010.safetensors",
|
191 |
+
"model.layers.18.feed_forward.gate.weight": "model-00006-of-00010.safetensors",
|
192 |
+
"model.layers.18.ffn_norm.weight": "model-00006-of-00010.safetensors",
|
193 |
+
"model.layers.19.attention.wo.weight": "model-00006-of-00010.safetensors",
|
194 |
+
"model.layers.19.attention.wqkv.weight": "model-00006-of-00010.safetensors",
|
195 |
+
"model.layers.19.attention_norm.weight": "model-00007-of-00010.safetensors",
|
196 |
+
"model.layers.19.feed_forward.experts.0.w1.weight": "model-00006-of-00010.safetensors",
|
197 |
+
"model.layers.19.feed_forward.experts.0.w2.weight": "model-00006-of-00010.safetensors",
|
198 |
+
"model.layers.19.feed_forward.experts.0.w3.weight": "model-00006-of-00010.safetensors",
|
199 |
+
"model.layers.19.feed_forward.experts.1.w1.weight": "model-00006-of-00010.safetensors",
|
200 |
+
"model.layers.19.feed_forward.experts.1.w2.weight": "model-00007-of-00010.safetensors",
|
201 |
+
"model.layers.19.feed_forward.experts.1.w3.weight": "model-00007-of-00010.safetensors",
|
202 |
+
"model.layers.19.feed_forward.experts.2.w1.weight": "model-00007-of-00010.safetensors",
|
203 |
+
"model.layers.19.feed_forward.experts.2.w2.weight": "model-00007-of-00010.safetensors",
|
204 |
+
"model.layers.19.feed_forward.experts.2.w3.weight": "model-00007-of-00010.safetensors",
|
205 |
+
"model.layers.19.feed_forward.experts.3.w1.weight": "model-00007-of-00010.safetensors",
|
206 |
+
"model.layers.19.feed_forward.experts.3.w2.weight": "model-00007-of-00010.safetensors",
|
207 |
+
"model.layers.19.feed_forward.experts.3.w3.weight": "model-00007-of-00010.safetensors",
|
208 |
+
"model.layers.19.feed_forward.gate.weight": "model-00006-of-00010.safetensors",
|
209 |
+
"model.layers.19.ffn_norm.weight": "model-00007-of-00010.safetensors",
|
210 |
+
"model.layers.2.attention.wo.weight": "model-00001-of-00010.safetensors",
|
211 |
+
"model.layers.2.attention.wqkv.weight": "model-00001-of-00010.safetensors",
|
212 |
+
"model.layers.2.attention_norm.weight": "model-00002-of-00010.safetensors",
|
213 |
+
"model.layers.2.feed_forward.experts.0.w1.weight": "model-00001-of-00010.safetensors",
|
214 |
+
"model.layers.2.feed_forward.experts.0.w2.weight": "model-00001-of-00010.safetensors",
|
215 |
+
"model.layers.2.feed_forward.experts.0.w3.weight": "model-00001-of-00010.safetensors",
|
216 |
+
"model.layers.2.feed_forward.experts.1.w1.weight": "model-00001-of-00010.safetensors",
|
217 |
+
"model.layers.2.feed_forward.experts.1.w2.weight": "model-00001-of-00010.safetensors",
|
218 |
+
"model.layers.2.feed_forward.experts.1.w3.weight": "model-00001-of-00010.safetensors",
|
219 |
+
"model.layers.2.feed_forward.experts.2.w1.weight": "model-00001-of-00010.safetensors",
|
220 |
+
"model.layers.2.feed_forward.experts.2.w2.weight": "model-00001-of-00010.safetensors",
|
221 |
+
"model.layers.2.feed_forward.experts.2.w3.weight": "model-00001-of-00010.safetensors",
|
222 |
+
"model.layers.2.feed_forward.experts.3.w1.weight": "model-00002-of-00010.safetensors",
|
223 |
+
"model.layers.2.feed_forward.experts.3.w2.weight": "model-00002-of-00010.safetensors",
|
224 |
+
"model.layers.2.feed_forward.experts.3.w3.weight": "model-00002-of-00010.safetensors",
|
225 |
+
"model.layers.2.feed_forward.gate.weight": "model-00001-of-00010.safetensors",
|
226 |
+
"model.layers.2.ffn_norm.weight": "model-00002-of-00010.safetensors",
|
227 |
+
"model.layers.20.attention.wo.weight": "model-00007-of-00010.safetensors",
|
228 |
+
"model.layers.20.attention.wqkv.weight": "model-00007-of-00010.safetensors",
|
229 |
+
"model.layers.20.attention_norm.weight": "model-00007-of-00010.safetensors",
|
230 |
+
"model.layers.20.feed_forward.experts.0.w1.weight": "model-00007-of-00010.safetensors",
|
231 |
+
"model.layers.20.feed_forward.experts.0.w2.weight": "model-00007-of-00010.safetensors",
|
232 |
+
"model.layers.20.feed_forward.experts.0.w3.weight": "model-00007-of-00010.safetensors",
|
233 |
+
"model.layers.20.feed_forward.experts.1.w1.weight": "model-00007-of-00010.safetensors",
|
234 |
+
"model.layers.20.feed_forward.experts.1.w2.weight": "model-00007-of-00010.safetensors",
|
235 |
+
"model.layers.20.feed_forward.experts.1.w3.weight": "model-00007-of-00010.safetensors",
|
236 |
+
"model.layers.20.feed_forward.experts.2.w1.weight": "model-00007-of-00010.safetensors",
|
237 |
+
"model.layers.20.feed_forward.experts.2.w2.weight": "model-00007-of-00010.safetensors",
|
238 |
+
"model.layers.20.feed_forward.experts.2.w3.weight": "model-00007-of-00010.safetensors",
|
239 |
+
"model.layers.20.feed_forward.experts.3.w1.weight": "model-00007-of-00010.safetensors",
|
240 |
+
"model.layers.20.feed_forward.experts.3.w2.weight": "model-00007-of-00010.safetensors",
|
241 |
+
"model.layers.20.feed_forward.experts.3.w3.weight": "model-00007-of-00010.safetensors",
|
242 |
+
"model.layers.20.feed_forward.gate.weight": "model-00007-of-00010.safetensors",
|
243 |
+
"model.layers.20.ffn_norm.weight": "model-00007-of-00010.safetensors",
|
244 |
+
"model.layers.21.attention.wo.weight": "model-00007-of-00010.safetensors",
|
245 |
+
"model.layers.21.attention.wqkv.weight": "model-00007-of-00010.safetensors",
|
246 |
+
"model.layers.21.attention_norm.weight": "model-00007-of-00010.safetensors",
|
247 |
+
"model.layers.21.feed_forward.experts.0.w1.weight": "model-00007-of-00010.safetensors",
|
248 |
+
"model.layers.21.feed_forward.experts.0.w2.weight": "model-00007-of-00010.safetensors",
|
249 |
+
"model.layers.21.feed_forward.experts.0.w3.weight": "model-00007-of-00010.safetensors",
|
250 |
+
"model.layers.21.feed_forward.experts.1.w1.weight": "model-00007-of-00010.safetensors",
|
251 |
+
"model.layers.21.feed_forward.experts.1.w2.weight": "model-00007-of-00010.safetensors",
|
252 |
+
"model.layers.21.feed_forward.experts.1.w3.weight": "model-00007-of-00010.safetensors",
|
253 |
+
"model.layers.21.feed_forward.experts.2.w1.weight": "model-00007-of-00010.safetensors",
|
254 |
+
"model.layers.21.feed_forward.experts.2.w2.weight": "model-00007-of-00010.safetensors",
|
255 |
+
"model.layers.21.feed_forward.experts.2.w3.weight": "model-00007-of-00010.safetensors",
|
256 |
+
"model.layers.21.feed_forward.experts.3.w1.weight": "model-00007-of-00010.safetensors",
|
257 |
+
"model.layers.21.feed_forward.experts.3.w2.weight": "model-00007-of-00010.safetensors",
|
258 |
+
"model.layers.21.feed_forward.experts.3.w3.weight": "model-00007-of-00010.safetensors",
|
259 |
+
"model.layers.21.feed_forward.gate.weight": "model-00007-of-00010.safetensors",
|
260 |
+
"model.layers.21.ffn_norm.weight": "model-00007-of-00010.safetensors",
|
261 |
+
"model.layers.22.attention.wo.weight": "model-00007-of-00010.safetensors",
|
262 |
+
"model.layers.22.attention.wqkv.weight": "model-00007-of-00010.safetensors",
|
263 |
+
"model.layers.22.attention_norm.weight": "model-00008-of-00010.safetensors",
|
264 |
+
"model.layers.22.feed_forward.experts.0.w1.weight": "model-00007-of-00010.safetensors",
|
265 |
+
"model.layers.22.feed_forward.experts.0.w2.weight": "model-00007-of-00010.safetensors",
|
266 |
+
"model.layers.22.feed_forward.experts.0.w3.weight": "model-00007-of-00010.safetensors",
|
267 |
+
"model.layers.22.feed_forward.experts.1.w1.weight": "model-00007-of-00010.safetensors",
|
268 |
+
"model.layers.22.feed_forward.experts.1.w2.weight": "model-00007-of-00010.safetensors",
|
269 |
+
"model.layers.22.feed_forward.experts.1.w3.weight": "model-00007-of-00010.safetensors",
|
270 |
+
"model.layers.22.feed_forward.experts.2.w1.weight": "model-00007-of-00010.safetensors",
|
271 |
+
"model.layers.22.feed_forward.experts.2.w2.weight": "model-00008-of-00010.safetensors",
|
272 |
+
"model.layers.22.feed_forward.experts.2.w3.weight": "model-00007-of-00010.safetensors",
|
273 |
+
"model.layers.22.feed_forward.experts.3.w1.weight": "model-00008-of-00010.safetensors",
|
274 |
+
"model.layers.22.feed_forward.experts.3.w2.weight": "model-00008-of-00010.safetensors",
|
275 |
+
"model.layers.22.feed_forward.experts.3.w3.weight": "model-00008-of-00010.safetensors",
|
276 |
+
"model.layers.22.feed_forward.gate.weight": "model-00007-of-00010.safetensors",
|
277 |
+
"model.layers.22.ffn_norm.weight": "model-00008-of-00010.safetensors",
|
278 |
+
"model.layers.23.attention.wo.weight": "model-00008-of-00010.safetensors",
|
279 |
+
"model.layers.23.attention.wqkv.weight": "model-00008-of-00010.safetensors",
|
280 |
+
"model.layers.23.attention_norm.weight": "model-00008-of-00010.safetensors",
|
281 |
+
"model.layers.23.feed_forward.experts.0.w1.weight": "model-00008-of-00010.safetensors",
|
282 |
+
"model.layers.23.feed_forward.experts.0.w2.weight": "model-00008-of-00010.safetensors",
|
283 |
+
"model.layers.23.feed_forward.experts.0.w3.weight": "model-00008-of-00010.safetensors",
|
284 |
+
"model.layers.23.feed_forward.experts.1.w1.weight": "model-00008-of-00010.safetensors",
|
285 |
+
"model.layers.23.feed_forward.experts.1.w2.weight": "model-00008-of-00010.safetensors",
|
286 |
+
"model.layers.23.feed_forward.experts.1.w3.weight": "model-00008-of-00010.safetensors",
|
287 |
+
"model.layers.23.feed_forward.experts.2.w1.weight": "model-00008-of-00010.safetensors",
|
288 |
+
"model.layers.23.feed_forward.experts.2.w2.weight": "model-00008-of-00010.safetensors",
|
289 |
+
"model.layers.23.feed_forward.experts.2.w3.weight": "model-00008-of-00010.safetensors",
|
290 |
+
"model.layers.23.feed_forward.experts.3.w1.weight": "model-00008-of-00010.safetensors",
|
291 |
+
"model.layers.23.feed_forward.experts.3.w2.weight": "model-00008-of-00010.safetensors",
|
292 |
+
"model.layers.23.feed_forward.experts.3.w3.weight": "model-00008-of-00010.safetensors",
|
293 |
+
"model.layers.23.feed_forward.gate.weight": "model-00008-of-00010.safetensors",
|
294 |
+
"model.layers.23.ffn_norm.weight": "model-00008-of-00010.safetensors",
|
295 |
+
"model.layers.24.attention.wo.weight": "model-00008-of-00010.safetensors",
|
296 |
+
"model.layers.24.attention.wqkv.weight": "model-00008-of-00010.safetensors",
|
297 |
+
"model.layers.24.attention_norm.weight": "model-00008-of-00010.safetensors",
|
298 |
+
"model.layers.24.feed_forward.experts.0.w1.weight": "model-00008-of-00010.safetensors",
|
299 |
+
"model.layers.24.feed_forward.experts.0.w2.weight": "model-00008-of-00010.safetensors",
|
300 |
+
"model.layers.24.feed_forward.experts.0.w3.weight": "model-00008-of-00010.safetensors",
|
301 |
+
"model.layers.24.feed_forward.experts.1.w1.weight": "model-00008-of-00010.safetensors",
|
302 |
+
"model.layers.24.feed_forward.experts.1.w2.weight": "model-00008-of-00010.safetensors",
|
303 |
+
"model.layers.24.feed_forward.experts.1.w3.weight": "model-00008-of-00010.safetensors",
|
304 |
+
"model.layers.24.feed_forward.experts.2.w1.weight": "model-00008-of-00010.safetensors",
|
305 |
+
"model.layers.24.feed_forward.experts.2.w2.weight": "model-00008-of-00010.safetensors",
|
306 |
+
"model.layers.24.feed_forward.experts.2.w3.weight": "model-00008-of-00010.safetensors",
|
307 |
+
"model.layers.24.feed_forward.experts.3.w1.weight": "model-00008-of-00010.safetensors",
|
308 |
+
"model.layers.24.feed_forward.experts.3.w2.weight": "model-00008-of-00010.safetensors",
|
309 |
+
"model.layers.24.feed_forward.experts.3.w3.weight": "model-00008-of-00010.safetensors",
|
310 |
+
"model.layers.24.feed_forward.gate.weight": "model-00008-of-00010.safetensors",
|
311 |
+
"model.layers.24.ffn_norm.weight": "model-00008-of-00010.safetensors",
|
312 |
+
"model.layers.25.attention.wo.weight": "model-00008-of-00010.safetensors",
|
313 |
+
"model.layers.25.attention.wqkv.weight": "model-00008-of-00010.safetensors",
|
314 |
+
"model.layers.25.attention_norm.weight": "model-00008-of-00010.safetensors",
|
315 |
+
"model.layers.25.feed_forward.experts.0.w1.weight": "model-00008-of-00010.safetensors",
|
316 |
+
"model.layers.25.feed_forward.experts.0.w2.weight": "model-00008-of-00010.safetensors",
|
317 |
+
"model.layers.25.feed_forward.experts.0.w3.weight": "model-00008-of-00010.safetensors",
|
318 |
+
"model.layers.25.feed_forward.experts.1.w1.weight": "model-00008-of-00010.safetensors",
|
319 |
+
"model.layers.25.feed_forward.experts.1.w2.weight": "model-00008-of-00010.safetensors",
|
320 |
+
"model.layers.25.feed_forward.experts.1.w3.weight": "model-00008-of-00010.safetensors",
|
321 |
+
"model.layers.25.feed_forward.experts.2.w1.weight": "model-00008-of-00010.safetensors",
|
322 |
+
"model.layers.25.feed_forward.experts.2.w2.weight": "model-00008-of-00010.safetensors",
|
323 |
+
"model.layers.25.feed_forward.experts.2.w3.weight": "model-00008-of-00010.safetensors",
|
324 |
+
"model.layers.25.feed_forward.experts.3.w1.weight": "model-00008-of-00010.safetensors",
|
325 |
+
"model.layers.25.feed_forward.experts.3.w2.weight": "model-00008-of-00010.safetensors",
|
326 |
+
"model.layers.25.feed_forward.experts.3.w3.weight": "model-00008-of-00010.safetensors",
|
327 |
+
"model.layers.25.feed_forward.gate.weight": "model-00008-of-00010.safetensors",
|
328 |
+
"model.layers.25.ffn_norm.weight": "model-00008-of-00010.safetensors",
|
329 |
+
"model.layers.26.attention.wo.weight": "model-00009-of-00010.safetensors",
|
330 |
+
"model.layers.26.attention.wqkv.weight": "model-00008-of-00010.safetensors",
|
331 |
+
"model.layers.26.attention_norm.weight": "model-00009-of-00010.safetensors",
|
332 |
+
"model.layers.26.feed_forward.experts.0.w1.weight": "model-00009-of-00010.safetensors",
|
333 |
+
"model.layers.26.feed_forward.experts.0.w2.weight": "model-00009-of-00010.safetensors",
|
334 |
+
"model.layers.26.feed_forward.experts.0.w3.weight": "model-00009-of-00010.safetensors",
|
335 |
+
"model.layers.26.feed_forward.experts.1.w1.weight": "model-00009-of-00010.safetensors",
|
336 |
+
"model.layers.26.feed_forward.experts.1.w2.weight": "model-00009-of-00010.safetensors",
|
337 |
+
"model.layers.26.feed_forward.experts.1.w3.weight": "model-00009-of-00010.safetensors",
|
338 |
+
"model.layers.26.feed_forward.experts.2.w1.weight": "model-00009-of-00010.safetensors",
|
339 |
+
"model.layers.26.feed_forward.experts.2.w2.weight": "model-00009-of-00010.safetensors",
|
340 |
+
"model.layers.26.feed_forward.experts.2.w3.weight": "model-00009-of-00010.safetensors",
|
341 |
+
"model.layers.26.feed_forward.experts.3.w1.weight": "model-00009-of-00010.safetensors",
|
342 |
+
"model.layers.26.feed_forward.experts.3.w2.weight": "model-00009-of-00010.safetensors",
|
343 |
+
"model.layers.26.feed_forward.experts.3.w3.weight": "model-00009-of-00010.safetensors",
|
344 |
+
"model.layers.26.feed_forward.gate.weight": "model-00009-of-00010.safetensors",
|
345 |
+
"model.layers.26.ffn_norm.weight": "model-00009-of-00010.safetensors",
|
346 |
+
"model.layers.27.attention.wo.weight": "model-00009-of-00010.safetensors",
|
347 |
+
"model.layers.27.attention.wqkv.weight": "model-00009-of-00010.safetensors",
|
348 |
+
"model.layers.27.attention_norm.weight": "model-00009-of-00010.safetensors",
|
349 |
+
"model.layers.27.feed_forward.experts.0.w1.weight": "model-00009-of-00010.safetensors",
|
350 |
+
"model.layers.27.feed_forward.experts.0.w2.weight": "model-00009-of-00010.safetensors",
|
351 |
+
"model.layers.27.feed_forward.experts.0.w3.weight": "model-00009-of-00010.safetensors",
|
352 |
+
"model.layers.27.feed_forward.experts.1.w1.weight": "model-00009-of-00010.safetensors",
|
353 |
+
"model.layers.27.feed_forward.experts.1.w2.weight": "model-00009-of-00010.safetensors",
|
354 |
+
"model.layers.27.feed_forward.experts.1.w3.weight": "model-00009-of-00010.safetensors",
|
355 |
+
"model.layers.27.feed_forward.experts.2.w1.weight": "model-00009-of-00010.safetensors",
|
356 |
+
"model.layers.27.feed_forward.experts.2.w2.weight": "model-00009-of-00010.safetensors",
|
357 |
+
"model.layers.27.feed_forward.experts.2.w3.weight": "model-00009-of-00010.safetensors",
|
358 |
+
"model.layers.27.feed_forward.experts.3.w1.weight": "model-00009-of-00010.safetensors",
|
359 |
+
"model.layers.27.feed_forward.experts.3.w2.weight": "model-00009-of-00010.safetensors",
|
360 |
+
"model.layers.27.feed_forward.experts.3.w3.weight": "model-00009-of-00010.safetensors",
|
361 |
+
"model.layers.27.feed_forward.gate.weight": "model-00009-of-00010.safetensors",
|
362 |
+
"model.layers.27.ffn_norm.weight": "model-00009-of-00010.safetensors",
|
363 |
+
"model.layers.28.attention.wo.weight": "model-00009-of-00010.safetensors",
|
364 |
+
"model.layers.28.attention.wqkv.weight": "model-00009-of-00010.safetensors",
|
365 |
+
"model.layers.28.attention_norm.weight": "model-00009-of-00010.safetensors",
|
366 |
+
"model.layers.28.feed_forward.experts.0.w1.weight": "model-00009-of-00010.safetensors",
|
367 |
+
"model.layers.28.feed_forward.experts.0.w2.weight": "model-00009-of-00010.safetensors",
|
368 |
+
"model.layers.28.feed_forward.experts.0.w3.weight": "model-00009-of-00010.safetensors",
|
369 |
+
"model.layers.28.feed_forward.experts.1.w1.weight": "model-00009-of-00010.safetensors",
|
370 |
+
"model.layers.28.feed_forward.experts.1.w2.weight": "model-00009-of-00010.safetensors",
|
371 |
+
"model.layers.28.feed_forward.experts.1.w3.weight": "model-00009-of-00010.safetensors",
|
372 |
+
"model.layers.28.feed_forward.experts.2.w1.weight": "model-00009-of-00010.safetensors",
|
373 |
+
"model.layers.28.feed_forward.experts.2.w2.weight": "model-00009-of-00010.safetensors",
|
374 |
+
"model.layers.28.feed_forward.experts.2.w3.weight": "model-00009-of-00010.safetensors",
|
375 |
+
"model.layers.28.feed_forward.experts.3.w1.weight": "model-00009-of-00010.safetensors",
|
376 |
+
"model.layers.28.feed_forward.experts.3.w2.weight": "model-00009-of-00010.safetensors",
|
377 |
+
"model.layers.28.feed_forward.experts.3.w3.weight": "model-00009-of-00010.safetensors",
|
378 |
+
"model.layers.28.feed_forward.gate.weight": "model-00009-of-00010.safetensors",
|
379 |
+
"model.layers.28.ffn_norm.weight": "model-00009-of-00010.safetensors",
|
380 |
+
"model.layers.29.attention.wo.weight": "model-00009-of-00010.safetensors",
|
381 |
+
"model.layers.29.attention.wqkv.weight": "model-00009-of-00010.safetensors",
|
382 |
+
"model.layers.29.attention_norm.weight": "model-00010-of-00010.safetensors",
|
383 |
+
"model.layers.29.feed_forward.experts.0.w1.weight": "model-00009-of-00010.safetensors",
|
384 |
+
"model.layers.29.feed_forward.experts.0.w2.weight": "model-00009-of-00010.safetensors",
|
385 |
+
"model.layers.29.feed_forward.experts.0.w3.weight": "model-00009-of-00010.safetensors",
|
386 |
+
"model.layers.29.feed_forward.experts.1.w1.weight": "model-00009-of-00010.safetensors",
|
387 |
+
"model.layers.29.feed_forward.experts.1.w2.weight": "model-00010-of-00010.safetensors",
|
388 |
+
"model.layers.29.feed_forward.experts.1.w3.weight": "model-00010-of-00010.safetensors",
|
389 |
+
"model.layers.29.feed_forward.experts.2.w1.weight": "model-00010-of-00010.safetensors",
|
390 |
+
"model.layers.29.feed_forward.experts.2.w2.weight": "model-00010-of-00010.safetensors",
|
391 |
+
"model.layers.29.feed_forward.experts.2.w3.weight": "model-00010-of-00010.safetensors",
|
392 |
+
"model.layers.29.feed_forward.experts.3.w1.weight": "model-00010-of-00010.safetensors",
|
393 |
+
"model.layers.29.feed_forward.experts.3.w2.weight": "model-00010-of-00010.safetensors",
|
394 |
+
"model.layers.29.feed_forward.experts.3.w3.weight": "model-00010-of-00010.safetensors",
|
395 |
+
"model.layers.29.feed_forward.gate.weight": "model-00009-of-00010.safetensors",
|
396 |
+
"model.layers.29.ffn_norm.weight": "model-00010-of-00010.safetensors",
|
397 |
+
"model.layers.3.attention.wo.weight": "model-00002-of-00010.safetensors",
|
398 |
+
"model.layers.3.attention.wqkv.weight": "model-00002-of-00010.safetensors",
|
399 |
+
"model.layers.3.attention_norm.weight": "model-00002-of-00010.safetensors",
|
400 |
+
"model.layers.3.feed_forward.experts.0.w1.weight": "model-00002-of-00010.safetensors",
|
401 |
+
"model.layers.3.feed_forward.experts.0.w2.weight": "model-00002-of-00010.safetensors",
|
402 |
+
"model.layers.3.feed_forward.experts.0.w3.weight": "model-00002-of-00010.safetensors",
|
403 |
+
"model.layers.3.feed_forward.experts.1.w1.weight": "model-00002-of-00010.safetensors",
|
404 |
+
"model.layers.3.feed_forward.experts.1.w2.weight": "model-00002-of-00010.safetensors",
|
405 |
+
"model.layers.3.feed_forward.experts.1.w3.weight": "model-00002-of-00010.safetensors",
|
406 |
+
"model.layers.3.feed_forward.experts.2.w1.weight": "model-00002-of-00010.safetensors",
|
407 |
+
"model.layers.3.feed_forward.experts.2.w2.weight": "model-00002-of-00010.safetensors",
|
408 |
+
"model.layers.3.feed_forward.experts.2.w3.weight": "model-00002-of-00010.safetensors",
|
409 |
+
"model.layers.3.feed_forward.experts.3.w1.weight": "model-00002-of-00010.safetensors",
|
410 |
+
"model.layers.3.feed_forward.experts.3.w2.weight": "model-00002-of-00010.safetensors",
|
411 |
+
"model.layers.3.feed_forward.experts.3.w3.weight": "model-00002-of-00010.safetensors",
|
412 |
+
"model.layers.3.feed_forward.gate.weight": "model-00002-of-00010.safetensors",
|
413 |
+
"model.layers.3.ffn_norm.weight": "model-00002-of-00010.safetensors",
|
414 |
+
"model.layers.30.attention.wo.weight": "model-00010-of-00010.safetensors",
|
415 |
+
"model.layers.30.attention.wqkv.weight": "model-00010-of-00010.safetensors",
|
416 |
+
"model.layers.30.attention_norm.weight": "model-00010-of-00010.safetensors",
|
417 |
+
"model.layers.30.feed_forward.experts.0.w1.weight": "model-00010-of-00010.safetensors",
|
418 |
+
"model.layers.30.feed_forward.experts.0.w2.weight": "model-00010-of-00010.safetensors",
|
419 |
+
"model.layers.30.feed_forward.experts.0.w3.weight": "model-00010-of-00010.safetensors",
|
420 |
+
"model.layers.30.feed_forward.experts.1.w1.weight": "model-00010-of-00010.safetensors",
|
421 |
+
"model.layers.30.feed_forward.experts.1.w2.weight": "model-00010-of-00010.safetensors",
|
422 |
+
"model.layers.30.feed_forward.experts.1.w3.weight": "model-00010-of-00010.safetensors",
|
423 |
+
"model.layers.30.feed_forward.experts.2.w1.weight": "model-00010-of-00010.safetensors",
|
424 |
+
"model.layers.30.feed_forward.experts.2.w2.weight": "model-00010-of-00010.safetensors",
|
425 |
+
"model.layers.30.feed_forward.experts.2.w3.weight": "model-00010-of-00010.safetensors",
|
426 |
+
"model.layers.30.feed_forward.experts.3.w1.weight": "model-00010-of-00010.safetensors",
|
427 |
+
"model.layers.30.feed_forward.experts.3.w2.weight": "model-00010-of-00010.safetensors",
|
428 |
+
"model.layers.30.feed_forward.experts.3.w3.weight": "model-00010-of-00010.safetensors",
|
429 |
+
"model.layers.30.feed_forward.gate.weight": "model-00010-of-00010.safetensors",
|
430 |
+
"model.layers.30.ffn_norm.weight": "model-00010-of-00010.safetensors",
|
431 |
+
"model.layers.31.attention.wo.weight": "model-00010-of-00010.safetensors",
|
432 |
+
"model.layers.31.attention.wqkv.weight": "model-00010-of-00010.safetensors",
|
433 |
+
"model.layers.31.attention_norm.weight": "model-00010-of-00010.safetensors",
|
434 |
+
"model.layers.31.feed_forward.experts.0.w1.weight": "model-00010-of-00010.safetensors",
|
435 |
+
"model.layers.31.feed_forward.experts.0.w2.weight": "model-00010-of-00010.safetensors",
|
436 |
+
"model.layers.31.feed_forward.experts.0.w3.weight": "model-00010-of-00010.safetensors",
|
437 |
+
"model.layers.31.feed_forward.experts.1.w1.weight": "model-00010-of-00010.safetensors",
|
438 |
+
"model.layers.31.feed_forward.experts.1.w2.weight": "model-00010-of-00010.safetensors",
|
439 |
+
"model.layers.31.feed_forward.experts.1.w3.weight": "model-00010-of-00010.safetensors",
|
440 |
+
"model.layers.31.feed_forward.experts.2.w1.weight": "model-00010-of-00010.safetensors",
|
441 |
+
"model.layers.31.feed_forward.experts.2.w2.weight": "model-00010-of-00010.safetensors",
|
442 |
+
"model.layers.31.feed_forward.experts.2.w3.weight": "model-00010-of-00010.safetensors",
|
443 |
+
"model.layers.31.feed_forward.experts.3.w1.weight": "model-00010-of-00010.safetensors",
|
444 |
+
"model.layers.31.feed_forward.experts.3.w2.weight": "model-00010-of-00010.safetensors",
|
445 |
+
"model.layers.31.feed_forward.experts.3.w3.weight": "model-00010-of-00010.safetensors",
|
446 |
+
"model.layers.31.feed_forward.gate.weight": "model-00010-of-00010.safetensors",
|
447 |
+
"model.layers.31.ffn_norm.weight": "model-00010-of-00010.safetensors",
|
448 |
+
"model.layers.4.attention.wo.weight": "model-00002-of-00010.safetensors",
|
449 |
+
"model.layers.4.attention.wqkv.weight": "model-00002-of-00010.safetensors",
|
450 |
+
"model.layers.4.attention_norm.weight": "model-00002-of-00010.safetensors",
|
451 |
+
"model.layers.4.feed_forward.experts.0.w1.weight": "model-00002-of-00010.safetensors",
|
452 |
+
"model.layers.4.feed_forward.experts.0.w2.weight": "model-00002-of-00010.safetensors",
|
453 |
+
"model.layers.4.feed_forward.experts.0.w3.weight": "model-00002-of-00010.safetensors",
|
454 |
+
"model.layers.4.feed_forward.experts.1.w1.weight": "model-00002-of-00010.safetensors",
|
455 |
+
"model.layers.4.feed_forward.experts.1.w2.weight": "model-00002-of-00010.safetensors",
|
456 |
+
"model.layers.4.feed_forward.experts.1.w3.weight": "model-00002-of-00010.safetensors",
|
457 |
+
"model.layers.4.feed_forward.experts.2.w1.weight": "model-00002-of-00010.safetensors",
|
458 |
+
"model.layers.4.feed_forward.experts.2.w2.weight": "model-00002-of-00010.safetensors",
|
459 |
+
"model.layers.4.feed_forward.experts.2.w3.weight": "model-00002-of-00010.safetensors",
|
460 |
+
"model.layers.4.feed_forward.experts.3.w1.weight": "model-00002-of-00010.safetensors",
|
461 |
+
"model.layers.4.feed_forward.experts.3.w2.weight": "model-00002-of-00010.safetensors",
|
462 |
+
"model.layers.4.feed_forward.experts.3.w3.weight": "model-00002-of-00010.safetensors",
|
463 |
+
"model.layers.4.feed_forward.gate.weight": "model-00002-of-00010.safetensors",
|
464 |
+
"model.layers.4.ffn_norm.weight": "model-00002-of-00010.safetensors",
|
465 |
+
"model.layers.5.attention.wo.weight": "model-00002-of-00010.safetensors",
|
466 |
+
"model.layers.5.attention.wqkv.weight": "model-00002-of-00010.safetensors",
|
467 |
+
"model.layers.5.attention_norm.weight": "model-00002-of-00010.safetensors",
|
468 |
+
"model.layers.5.feed_forward.experts.0.w1.weight": "model-00002-of-00010.safetensors",
|
469 |
+
"model.layers.5.feed_forward.experts.0.w2.weight": "model-00002-of-00010.safetensors",
|
470 |
+
"model.layers.5.feed_forward.experts.0.w3.weight": "model-00002-of-00010.safetensors",
|
471 |
+
"model.layers.5.feed_forward.experts.1.w1.weight": "model-00002-of-00010.safetensors",
|
472 |
+
"model.layers.5.feed_forward.experts.1.w2.weight": "model-00002-of-00010.safetensors",
|
473 |
+
"model.layers.5.feed_forward.experts.1.w3.weight": "model-00002-of-00010.safetensors",
|
474 |
+
"model.layers.5.feed_forward.experts.2.w1.weight": "model-00002-of-00010.safetensors",
|
475 |
+
"model.layers.5.feed_forward.experts.2.w2.weight": "model-00002-of-00010.safetensors",
|
476 |
+
"model.layers.5.feed_forward.experts.2.w3.weight": "model-00002-of-00010.safetensors",
|
477 |
+
"model.layers.5.feed_forward.experts.3.w1.weight": "model-00002-of-00010.safetensors",
|
478 |
+
"model.layers.5.feed_forward.experts.3.w2.weight": "model-00002-of-00010.safetensors",
|
479 |
+
"model.layers.5.feed_forward.experts.3.w3.weight": "model-00002-of-00010.safetensors",
|
480 |
+
"model.layers.5.feed_forward.gate.weight": "model-00002-of-00010.safetensors",
|
481 |
+
"model.layers.5.ffn_norm.weight": "model-00002-of-00010.safetensors",
|
482 |
+
"model.layers.6.attention.wo.weight": "model-00002-of-00010.safetensors",
|
483 |
+
"model.layers.6.attention.wqkv.weight": "model-00002-of-00010.safetensors",
|
484 |
+
"model.layers.6.attention_norm.weight": "model-00003-of-00010.safetensors",
|
485 |
+
"model.layers.6.feed_forward.experts.0.w1.weight": "model-00003-of-00010.safetensors",
|
486 |
+
"model.layers.6.feed_forward.experts.0.w2.weight": "model-00003-of-00010.safetensors",
|
487 |
+
"model.layers.6.feed_forward.experts.0.w3.weight": "model-00003-of-00010.safetensors",
|
488 |
+
"model.layers.6.feed_forward.experts.1.w1.weight": "model-00003-of-00010.safetensors",
|
489 |
+
"model.layers.6.feed_forward.experts.1.w2.weight": "model-00003-of-00010.safetensors",
|
490 |
+
"model.layers.6.feed_forward.experts.1.w3.weight": "model-00003-of-00010.safetensors",
|
491 |
+
"model.layers.6.feed_forward.experts.2.w1.weight": "model-00003-of-00010.safetensors",
|
492 |
+
"model.layers.6.feed_forward.experts.2.w2.weight": "model-00003-of-00010.safetensors",
|
493 |
+
"model.layers.6.feed_forward.experts.2.w3.weight": "model-00003-of-00010.safetensors",
|
494 |
+
"model.layers.6.feed_forward.experts.3.w1.weight": "model-00003-of-00010.safetensors",
|
495 |
+
"model.layers.6.feed_forward.experts.3.w2.weight": "model-00003-of-00010.safetensors",
|
496 |
+
"model.layers.6.feed_forward.experts.3.w3.weight": "model-00003-of-00010.safetensors",
|
497 |
+
"model.layers.6.feed_forward.gate.weight": "model-00002-of-00010.safetensors",
|
498 |
+
"model.layers.6.ffn_norm.weight": "model-00003-of-00010.safetensors",
|
499 |
+
"model.layers.7.attention.wo.weight": "model-00003-of-00010.safetensors",
|
500 |
+
"model.layers.7.attention.wqkv.weight": "model-00003-of-00010.safetensors",
|
501 |
+
"model.layers.7.attention_norm.weight": "model-00003-of-00010.safetensors",
|
502 |
+
"model.layers.7.feed_forward.experts.0.w1.weight": "model-00003-of-00010.safetensors",
|
503 |
+
"model.layers.7.feed_forward.experts.0.w2.weight": "model-00003-of-00010.safetensors",
|
504 |
+
"model.layers.7.feed_forward.experts.0.w3.weight": "model-00003-of-00010.safetensors",
|
505 |
+
"model.layers.7.feed_forward.experts.1.w1.weight": "model-00003-of-00010.safetensors",
|
506 |
+
"model.layers.7.feed_forward.experts.1.w2.weight": "model-00003-of-00010.safetensors",
|
507 |
+
"model.layers.7.feed_forward.experts.1.w3.weight": "model-00003-of-00010.safetensors",
|
508 |
+
"model.layers.7.feed_forward.experts.2.w1.weight": "model-00003-of-00010.safetensors",
|
509 |
+
"model.layers.7.feed_forward.experts.2.w2.weight": "model-00003-of-00010.safetensors",
|
510 |
+
"model.layers.7.feed_forward.experts.2.w3.weight": "model-00003-of-00010.safetensors",
|
511 |
+
"model.layers.7.feed_forward.experts.3.w1.weight": "model-00003-of-00010.safetensors",
|
512 |
+
"model.layers.7.feed_forward.experts.3.w2.weight": "model-00003-of-00010.safetensors",
|
513 |
+
"model.layers.7.feed_forward.experts.3.w3.weight": "model-00003-of-00010.safetensors",
|
514 |
+
"model.layers.7.feed_forward.gate.weight": "model-00003-of-00010.safetensors",
|
515 |
+
"model.layers.7.ffn_norm.weight": "model-00003-of-00010.safetensors",
|
516 |
+
"model.layers.8.attention.wo.weight": "model-00003-of-00010.safetensors",
|
517 |
+
"model.layers.8.attention.wqkv.weight": "model-00003-of-00010.safetensors",
|
518 |
+
"model.layers.8.attention_norm.weight": "model-00003-of-00010.safetensors",
|
519 |
+
"model.layers.8.feed_forward.experts.0.w1.weight": "model-00003-of-00010.safetensors",
|
520 |
+
"model.layers.8.feed_forward.experts.0.w2.weight": "model-00003-of-00010.safetensors",
|
521 |
+
"model.layers.8.feed_forward.experts.0.w3.weight": "model-00003-of-00010.safetensors",
|
522 |
+
"model.layers.8.feed_forward.experts.1.w1.weight": "model-00003-of-00010.safetensors",
|
523 |
+
"model.layers.8.feed_forward.experts.1.w2.weight": "model-00003-of-00010.safetensors",
|
524 |
+
"model.layers.8.feed_forward.experts.1.w3.weight": "model-00003-of-00010.safetensors",
|
525 |
+
"model.layers.8.feed_forward.experts.2.w1.weight": "model-00003-of-00010.safetensors",
|
526 |
+
"model.layers.8.feed_forward.experts.2.w2.weight": "model-00003-of-00010.safetensors",
|
527 |
+
"model.layers.8.feed_forward.experts.2.w3.weight": "model-00003-of-00010.safetensors",
|
528 |
+
"model.layers.8.feed_forward.experts.3.w1.weight": "model-00003-of-00010.safetensors",
|
529 |
+
"model.layers.8.feed_forward.experts.3.w2.weight": "model-00003-of-00010.safetensors",
|
530 |
+
"model.layers.8.feed_forward.experts.3.w3.weight": "model-00003-of-00010.safetensors",
|
531 |
+
"model.layers.8.feed_forward.gate.weight": "model-00003-of-00010.safetensors",
|
532 |
+
"model.layers.8.ffn_norm.weight": "model-00003-of-00010.safetensors",
|
533 |
+
"model.layers.9.attention.wo.weight": "model-00003-of-00010.safetensors",
|
534 |
+
"model.layers.9.attention.wqkv.weight": "model-00003-of-00010.safetensors",
|
535 |
+
"model.layers.9.attention_norm.weight": "model-00004-of-00010.safetensors",
|
536 |
+
"model.layers.9.feed_forward.experts.0.w1.weight": "model-00003-of-00010.safetensors",
|
537 |
+
"model.layers.9.feed_forward.experts.0.w2.weight": "model-00003-of-00010.safetensors",
|
538 |
+
"model.layers.9.feed_forward.experts.0.w3.weight": "model-00003-of-00010.safetensors",
|
539 |
+
"model.layers.9.feed_forward.experts.1.w1.weight": "model-00003-of-00010.safetensors",
|
540 |
+
"model.layers.9.feed_forward.experts.1.w2.weight": "model-00004-of-00010.safetensors",
|
541 |
+
"model.layers.9.feed_forward.experts.1.w3.weight": "model-00004-of-00010.safetensors",
|
542 |
+
"model.layers.9.feed_forward.experts.2.w1.weight": "model-00004-of-00010.safetensors",
|
543 |
+
"model.layers.9.feed_forward.experts.2.w2.weight": "model-00004-of-00010.safetensors",
|
544 |
+
"model.layers.9.feed_forward.experts.2.w3.weight": "model-00004-of-00010.safetensors",
|
545 |
+
"model.layers.9.feed_forward.experts.3.w1.weight": "model-00004-of-00010.safetensors",
|
546 |
+
"model.layers.9.feed_forward.experts.3.w2.weight": "model-00004-of-00010.safetensors",
|
547 |
+
"model.layers.9.feed_forward.experts.3.w3.weight": "model-00004-of-00010.safetensors",
|
548 |
+
"model.layers.9.feed_forward.gate.weight": "model-00003-of-00010.safetensors",
|
549 |
+
"model.layers.9.ffn_norm.weight": "model-00004-of-00010.safetensors",
|
550 |
+
"model.norm.weight": "model-00010-of-00010.safetensors",
|
551 |
+
"model.tok_embeddings.weight": "model-00001-of-00010.safetensors",
|
552 |
+
"output.weight": "model-00010-of-00010.safetensors"
|
553 |
+
}
|
554 |
+
}
|
modeling_internlm.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>",
|
5 |
+
"<|action_start|>",
|
6 |
+
"<|action_end|>",
|
7 |
+
"<|interpreter|>",
|
8 |
+
"<|plugin|>"
|
9 |
+
],
|
10 |
+
"bos_token": {
|
11 |
+
"content": "<s>",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
},
|
17 |
+
"eos_token": {
|
18 |
+
"content": "</s>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
},
|
24 |
+
"pad_token": {
|
25 |
+
"content": "</s>",
|
26 |
+
"lstrip": false,
|
27 |
+
"normalized": false,
|
28 |
+
"rstrip": false,
|
29 |
+
"single_word": false
|
30 |
+
},
|
31 |
+
"unk_token": {
|
32 |
+
"content": "<unk>",
|
33 |
+
"lstrip": false,
|
34 |
+
"normalized": false,
|
35 |
+
"rstrip": false,
|
36 |
+
"single_word": false
|
37 |
+
}
|
38 |
+
}
|
tokenization_internlm2.py
ADDED
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# coding=utf-8
|
2 |
+
# Copyright (c) The InternLM team and The HuggingFace Inc. team. All rights reserved.
|
3 |
+
#
|
4 |
+
# This code is based on transformers/src/transformers/models/llama/tokenization_llama.py
|
5 |
+
#
|
6 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7 |
+
# you may not use this file except in compliance with the License.
|
8 |
+
# You may obtain a copy of the License at
|
9 |
+
#
|
10 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11 |
+
#
|
12 |
+
# Unless required by applicable law or agreed to in writing, software
|
13 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
+
# See the License for the specific language governing permissions and
|
16 |
+
# limitations under the License.
|
17 |
+
|
18 |
+
"""Tokenization classes for InternLM."""
|
19 |
+
import os
|
20 |
+
from shutil import copyfile
|
21 |
+
from typing import Any, Dict, List, Optional, Tuple
|
22 |
+
|
23 |
+
import sentencepiece as spm
|
24 |
+
from transformers.tokenization_utils import PreTrainedTokenizer
|
25 |
+
from transformers.utils import logging
|
26 |
+
|
27 |
+
logger = logging.get_logger(__name__)
|
28 |
+
|
29 |
+
VOCAB_FILES_NAMES = {"vocab_file": "./tokenizer.model"}
|
30 |
+
|
31 |
+
PRETRAINED_VOCAB_FILES_MAP = {}
|
32 |
+
|
33 |
+
|
34 |
+
# Modified from transformers.model.llama.tokenization_llama.LlamaTokenizer
|
35 |
+
class InternLM2Tokenizer(PreTrainedTokenizer):
|
36 |
+
"""
|
37 |
+
Construct a InternLM2 tokenizer. Based on byte-level Byte-Pair-Encoding.
|
38 |
+
|
39 |
+
Args:
|
40 |
+
vocab_file (`str`):
|
41 |
+
Path to the vocabulary file.
|
42 |
+
"""
|
43 |
+
|
44 |
+
vocab_files_names = VOCAB_FILES_NAMES
|
45 |
+
pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP
|
46 |
+
model_input_names = ["input_ids", "attention_mask"]
|
47 |
+
_auto_class = "AutoTokenizer"
|
48 |
+
|
49 |
+
def __init__(
|
50 |
+
self,
|
51 |
+
vocab_file,
|
52 |
+
unk_token="<unk>",
|
53 |
+
bos_token="<s>",
|
54 |
+
eos_token="</s>",
|
55 |
+
pad_token="</s>",
|
56 |
+
sp_model_kwargs: Optional[Dict[str, Any]] = None,
|
57 |
+
add_bos_token=True,
|
58 |
+
add_eos_token=False,
|
59 |
+
decode_with_prefix_space=False,
|
60 |
+
clean_up_tokenization_spaces=False,
|
61 |
+
**kwargs,
|
62 |
+
):
|
63 |
+
self.sp_model_kwargs = {} if sp_model_kwargs is None else sp_model_kwargs
|
64 |
+
self.vocab_file = vocab_file
|
65 |
+
self.add_bos_token = add_bos_token
|
66 |
+
self.add_eos_token = add_eos_token
|
67 |
+
self.decode_with_prefix_space = decode_with_prefix_space
|
68 |
+
self.sp_model = spm.SentencePieceProcessor(**self.sp_model_kwargs)
|
69 |
+
self.sp_model.Load(vocab_file)
|
70 |
+
self._no_prefix_space_tokens = None
|
71 |
+
super().__init__(
|
72 |
+
bos_token=bos_token,
|
73 |
+
eos_token=eos_token,
|
74 |
+
unk_token=unk_token,
|
75 |
+
pad_token=pad_token,
|
76 |
+
clean_up_tokenization_spaces=clean_up_tokenization_spaces,
|
77 |
+
**kwargs,
|
78 |
+
)
|
79 |
+
|
80 |
+
@property
|
81 |
+
def no_prefix_space_tokens(self):
|
82 |
+
if self._no_prefix_space_tokens is None:
|
83 |
+
vocab = self.convert_ids_to_tokens(list(range(self.vocab_size)))
|
84 |
+
self._no_prefix_space_tokens = {i for i, tok in enumerate(vocab) if not tok.startswith("▁")}
|
85 |
+
return self._no_prefix_space_tokens
|
86 |
+
|
87 |
+
@property
|
88 |
+
def vocab_size(self):
|
89 |
+
"""Returns vocab size"""
|
90 |
+
return self.sp_model.get_piece_size()
|
91 |
+
|
92 |
+
@property
|
93 |
+
def bos_token_id(self) -> Optional[int]:
|
94 |
+
return self.sp_model.bos_id()
|
95 |
+
|
96 |
+
@property
|
97 |
+
def eos_token_id(self) -> Optional[int]:
|
98 |
+
return self.sp_model.eos_id()
|
99 |
+
|
100 |
+
def get_vocab(self):
|
101 |
+
"""Returns vocab as a dict"""
|
102 |
+
vocab = {self.convert_ids_to_tokens(i): i for i in range(self.vocab_size)}
|
103 |
+
vocab.update(self.added_tokens_encoder)
|
104 |
+
return vocab
|
105 |
+
|
106 |
+
def _tokenize(self, text):
|
107 |
+
"""Returns a tokenized string."""
|
108 |
+
return self.sp_model.encode(text, out_type=str)
|
109 |
+
|
110 |
+
def _convert_token_to_id(self, token):
|
111 |
+
"""Converts a token (str) in an id using the vocab."""
|
112 |
+
return self.sp_model.piece_to_id(token)
|
113 |
+
|
114 |
+
def _convert_id_to_token(self, index):
|
115 |
+
"""Converts an index (integer) in a token (str) using the vocab."""
|
116 |
+
token = self.sp_model.IdToPiece(index)
|
117 |
+
return token
|
118 |
+
|
119 |
+
def _maybe_add_prefix_space(self, tokens, decoded):
|
120 |
+
if tokens and tokens[0] not in self.no_prefix_space_tokens:
|
121 |
+
return " " + decoded
|
122 |
+
else:
|
123 |
+
return decoded
|
124 |
+
|
125 |
+
def convert_tokens_to_string(self, tokens):
|
126 |
+
"""Converts a sequence of tokens (string) in a single string."""
|
127 |
+
current_sub_tokens = []
|
128 |
+
out_string = ""
|
129 |
+
prev_is_special = False
|
130 |
+
for token in tokens:
|
131 |
+
# make sure that special tokens are not decoded using sentencepiece model
|
132 |
+
if token in self.all_special_tokens:
|
133 |
+
if not prev_is_special:
|
134 |
+
out_string += " "
|
135 |
+
out_string += self.sp_model.decode(current_sub_tokens) + token
|
136 |
+
prev_is_special = True
|
137 |
+
current_sub_tokens = []
|
138 |
+
else:
|
139 |
+
current_sub_tokens.append(token)
|
140 |
+
prev_is_special = False
|
141 |
+
out_string += self.sp_model.decode(current_sub_tokens)
|
142 |
+
out_string = self.clean_up_tokenization(out_string)
|
143 |
+
out_string = self._maybe_add_prefix_space(tokens=tokens, decoded=out_string)
|
144 |
+
return out_string[1:]
|
145 |
+
|
146 |
+
def save_vocabulary(self, save_directory, filename_prefix: Optional[str] = None) -> Tuple[str]:
|
147 |
+
"""
|
148 |
+
Save the vocabulary and special tokens file to a directory.
|
149 |
+
|
150 |
+
Args:
|
151 |
+
save_directory (`str`):
|
152 |
+
The directory in which to save the vocabulary.
|
153 |
+
|
154 |
+
Returns:
|
155 |
+
`Tuple(str)`: Paths to the files saved.
|
156 |
+
"""
|
157 |
+
if not os.path.isdir(save_directory):
|
158 |
+
logger.error(f"Vocabulary path ({save_directory}) should be a directory")
|
159 |
+
return
|
160 |
+
out_vocab_file = os.path.join(
|
161 |
+
save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["vocab_file"]
|
162 |
+
)
|
163 |
+
|
164 |
+
if os.path.abspath(self.vocab_file) != os.path.abspath(out_vocab_file) and os.path.isfile(self.vocab_file):
|
165 |
+
copyfile(self.vocab_file, out_vocab_file)
|
166 |
+
elif not os.path.isfile(self.vocab_file):
|
167 |
+
with open(out_vocab_file, "wb") as fi:
|
168 |
+
content_spiece_model = self.sp_model.serialized_model_proto()
|
169 |
+
fi.write(content_spiece_model)
|
170 |
+
|
171 |
+
return (out_vocab_file,)
|
172 |
+
|
173 |
+
def build_inputs_with_special_tokens(self, token_ids_0, token_ids_1=None):
|
174 |
+
if self.add_bos_token:
|
175 |
+
bos_token_ids = [self.bos_token_id]
|
176 |
+
else:
|
177 |
+
bos_token_ids = []
|
178 |
+
|
179 |
+
output = bos_token_ids + token_ids_0
|
180 |
+
|
181 |
+
if token_ids_1 is not None:
|
182 |
+
output = output + token_ids_1
|
183 |
+
|
184 |
+
if self.add_eos_token:
|
185 |
+
output = output + [self.eos_token_id]
|
186 |
+
|
187 |
+
return output
|
188 |
+
|
189 |
+
def get_special_tokens_mask(
|
190 |
+
self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None, already_has_special_tokens: bool = False
|
191 |
+
) -> List[int]:
|
192 |
+
"""
|
193 |
+
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
|
194 |
+
special tokens using the tokenizer `prepare_for_model` method.
|
195 |
+
|
196 |
+
Args:
|
197 |
+
token_ids_0 (`List[int]`):
|
198 |
+
List of IDs.
|
199 |
+
token_ids_1 (`List[int]`, *optional*):
|
200 |
+
Optional second list of IDs for sequence pairs.
|
201 |
+
already_has_special_tokens (`bool`, *optional*, defaults to `False`):
|
202 |
+
Whether or not the token list is already formatted with special tokens for the model.
|
203 |
+
|
204 |
+
Returns:
|
205 |
+
`List[int]`: A list of integers in the range [0, 1]: 1 for a special token, 0 for a sequence token.
|
206 |
+
"""
|
207 |
+
if already_has_special_tokens:
|
208 |
+
return super().get_special_tokens_mask(
|
209 |
+
token_ids_0=token_ids_0, token_ids_1=token_ids_1, already_has_special_tokens=True
|
210 |
+
)
|
211 |
+
|
212 |
+
if token_ids_1 is None:
|
213 |
+
return [1] + ([0] * len(token_ids_0)) + [1]
|
214 |
+
return [1] + ([0] * len(token_ids_0)) + [1, 1] + ([0] * len(token_ids_1)) + [1]
|
215 |
+
|
216 |
+
def create_token_type_ids_from_sequences(
|
217 |
+
self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
|
218 |
+
) -> List[int]:
|
219 |
+
"""
|
220 |
+
Create a mask from the two sequences passed to be used in a sequence-pair classification task. T5 does not make
|
221 |
+
use of token type ids, therefore a list of zeros is returned.
|
222 |
+
|
223 |
+
Args:
|
224 |
+
token_ids_0 (`List[int]`):
|
225 |
+
List of IDs.
|
226 |
+
token_ids_1 (`List[int]`, *optional*):
|
227 |
+
Optional second list of IDs for sequence pairs.
|
228 |
+
|
229 |
+
Returns:
|
230 |
+
`List[int]`: List of zeros.
|
231 |
+
"""
|
232 |
+
eos = [self.eos_token_id]
|
233 |
+
|
234 |
+
if token_ids_1 is None:
|
235 |
+
return len(token_ids_0 + eos) * [0]
|
236 |
+
return len(token_ids_0 + eos + token_ids_1 + eos) * [0]
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0657b9b7d5a442264c8be0d934dbaf363bfb55d03c29f92c1716684a62a275d8
|
3 |
+
size 132
|
tokenizer_config.json
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"92538": {
|
28 |
+
"content": "<|plugin|>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"92539": {
|
36 |
+
"content": "<|interpreter|>",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"92540": {
|
44 |
+
"content": "<|action_end|>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
"92541": {
|
52 |
+
"content": "<|action_start|>",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": false,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": true
|
58 |
+
},
|
59 |
+
"92542": {
|
60 |
+
"content": "<|im_end|>",
|
61 |
+
"lstrip": false,
|
62 |
+
"normalized": false,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": false,
|
65 |
+
"special": true
|
66 |
+
},
|
67 |
+
"92543": {
|
68 |
+
"content": "<|im_start|>",
|
69 |
+
"lstrip": false,
|
70 |
+
"normalized": false,
|
71 |
+
"rstrip": false,
|
72 |
+
"single_word": false,
|
73 |
+
"special": true
|
74 |
+
}
|
75 |
+
},
|
76 |
+
"additional_special_tokens": [
|
77 |
+
"<|im_start|>",
|
78 |
+
"<|im_end|>",
|
79 |
+
"<|action_start|>",
|
80 |
+
"<|action_end|>",
|
81 |
+
"<|interpreter|>",
|
82 |
+
"<|plugin|>"
|
83 |
+
],
|
84 |
+
"auto_map": {
|
85 |
+
"AutoTokenizer": [
|
86 |
+
"tokenization_internlm2.InternLM2Tokenizer",
|
87 |
+
null
|
88 |
+
]
|
89 |
+
},
|
90 |
+
"bos_token": "<s>",
|
91 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
92 |
+
"clean_up_tokenization_spaces": false,
|
93 |
+
"eos_token": "</s>",
|
94 |
+
"model_max_length": 1000000000000000019884624838656,
|
95 |
+
"pad_token": "</s>",
|
96 |
+
"tokenizer_class": "InternLM2Tokenizer",
|
97 |
+
"unk_token": "<unk>"
|
98 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.0,
|
3 |
+
"train_loss": 1.1182698494837005,
|
4 |
+
"train_runtime": 99534.9844,
|
5 |
+
"train_samples_per_second": 13.655,
|
6 |
+
"train_steps_per_second": 0.107
|
7 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b62b3e65ee30d1d8e51245eb90c9414cc707ab9cda99c090291e44eed308f3f
|
3 |
+
size 129
|