Upload LlamaForCausalLM
Browse files- config.json +18 -17
- generation_config.json +2 -5
- model-00001-of-00002.safetensors +2 -2
- model-00002-of-00002.safetensors +2 -2
- model.safetensors.index.json +20 -55
config.json
CHANGED
|
@@ -1,36 +1,37 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"LlamaForCausalLM"
|
| 5 |
],
|
| 6 |
"attention_bias": false,
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
-
"
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
"head_dim": 128,
|
| 11 |
"hidden_act": "silu",
|
| 12 |
"hidden_size": 3072,
|
| 13 |
"initializer_range": 0.02,
|
| 14 |
-
"intermediate_size":
|
| 15 |
-
"max_position_embeddings":
|
| 16 |
"mlp_bias": false,
|
| 17 |
"model_type": "llama",
|
| 18 |
"num_attention_heads": 24,
|
| 19 |
-
"num_hidden_layers":
|
| 20 |
-
"num_key_value_heads":
|
|
|
|
| 21 |
"pretraining_tp": 1,
|
|
|
|
| 22 |
"rms_norm_eps": 1e-05,
|
| 23 |
-
"rope_scaling":
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
"rope_type": "llama3"
|
| 29 |
-
},
|
| 30 |
-
"rope_theta": 500000.0,
|
| 31 |
-
"tie_word_embeddings": true,
|
| 32 |
"torch_dtype": "bfloat16",
|
| 33 |
"transformers_version": "4.44.1",
|
| 34 |
"use_cache": true,
|
| 35 |
-
"vocab_size":
|
| 36 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "TestModel3B/",
|
| 3 |
"architectures": [
|
| 4 |
"LlamaForCausalLM"
|
| 5 |
],
|
| 6 |
"attention_bias": false,
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
+
"attn_config": {
|
| 9 |
+
"attn_impl": "flash_v2"
|
| 10 |
+
},
|
| 11 |
+
"bos_token_id": 100257,
|
| 12 |
+
"eos_token_id": 100257,
|
| 13 |
"head_dim": 128,
|
| 14 |
"hidden_act": "silu",
|
| 15 |
"hidden_size": 3072,
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 8490,
|
| 18 |
+
"max_position_embeddings": 2048,
|
| 19 |
"mlp_bias": false,
|
| 20 |
"model_type": "llama",
|
| 21 |
"num_attention_heads": 24,
|
| 22 |
+
"num_hidden_layers": 24,
|
| 23 |
+
"num_key_value_heads": 24,
|
| 24 |
+
"pop_states_at_layer": null,
|
| 25 |
"pretraining_tp": 1,
|
| 26 |
+
"return_states_at_layer": null,
|
| 27 |
"rms_norm_eps": 1e-05,
|
| 28 |
+
"rope_scaling": null,
|
| 29 |
+
"rope_theta": 10000.0,
|
| 30 |
+
"start_at_layer": null,
|
| 31 |
+
"stash_states_at_layer": null,
|
| 32 |
+
"tie_word_embeddings": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
"torch_dtype": "bfloat16",
|
| 34 |
"transformers_version": "4.44.1",
|
| 35 |
"use_cache": true,
|
| 36 |
+
"vocab_size": 100263
|
| 37 |
}
|
generation_config.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
-
"bos_token_id":
|
| 4 |
-
"
|
| 5 |
-
"eos_token_id": 128001,
|
| 6 |
-
"temperature": 0.6,
|
| 7 |
-
"top_p": 0.9,
|
| 8 |
"transformers_version": "4.44.1"
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 100257,
|
| 4 |
+
"eos_token_id": 100257,
|
|
|
|
|
|
|
|
|
|
| 5 |
"transformers_version": "4.44.1"
|
| 6 |
}
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62c02b7bd683c9b5cebf3e3bdc7f91553de2c140f5d0324869387fedc0bb1ded
|
| 3 |
+
size 4971811976
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02f7b227d5d308000a136d4614881d0586e879b58c86a4080fa175b465eb530d
|
| 3 |
+
size 1828189840
|
model.safetensors.index.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
-
"total_size":
|
| 4 |
},
|
| 5 |
"weight_map": {
|
|
|
|
| 6 |
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
| 7 |
"model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 8 |
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
|
@@ -94,24 +95,24 @@
|
|
| 94 |
"model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 95 |
"model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 96 |
"model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 97 |
-
"model.layers.18.input_layernorm.weight": "model-
|
| 98 |
-
"model.layers.18.mlp.down_proj.weight": "model-
|
| 99 |
"model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 100 |
"model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 101 |
-
"model.layers.18.post_attention_layernorm.weight": "model-
|
| 102 |
"model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 103 |
"model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 104 |
"model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 105 |
"model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 106 |
-
"model.layers.19.input_layernorm.weight": "model-
|
| 107 |
-
"model.layers.19.mlp.down_proj.weight": "model-
|
| 108 |
-
"model.layers.19.mlp.gate_proj.weight": "model-
|
| 109 |
-
"model.layers.19.mlp.up_proj.weight": "model-
|
| 110 |
-
"model.layers.19.post_attention_layernorm.weight": "model-
|
| 111 |
-
"model.layers.19.self_attn.k_proj.weight": "model-
|
| 112 |
-
"model.layers.19.self_attn.o_proj.weight": "model-
|
| 113 |
-
"model.layers.19.self_attn.q_proj.weight": "model-
|
| 114 |
-
"model.layers.19.self_attn.v_proj.weight": "model-
|
| 115 |
"model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 116 |
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 117 |
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
|
@@ -123,13 +124,13 @@
|
|
| 123 |
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 124 |
"model.layers.20.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 125 |
"model.layers.20.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 126 |
-
"model.layers.20.mlp.gate_proj.weight": "model-
|
| 127 |
-
"model.layers.20.mlp.up_proj.weight": "model-
|
| 128 |
"model.layers.20.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 129 |
-
"model.layers.20.self_attn.k_proj.weight": "model-
|
| 130 |
-
"model.layers.20.self_attn.o_proj.weight": "model-
|
| 131 |
-
"model.layers.20.self_attn.q_proj.weight": "model-
|
| 132 |
-
"model.layers.20.self_attn.v_proj.weight": "model-
|
| 133 |
"model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 134 |
"model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 135 |
"model.layers.21.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
|
@@ -157,42 +158,6 @@
|
|
| 157 |
"model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 158 |
"model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 159 |
"model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 160 |
-
"model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 161 |
-
"model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 162 |
-
"model.layers.24.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 163 |
-
"model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 164 |
-
"model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 165 |
-
"model.layers.24.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 166 |
-
"model.layers.24.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 167 |
-
"model.layers.24.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 168 |
-
"model.layers.24.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 169 |
-
"model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 170 |
-
"model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 171 |
-
"model.layers.25.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 172 |
-
"model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 173 |
-
"model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 174 |
-
"model.layers.25.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 175 |
-
"model.layers.25.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 176 |
-
"model.layers.25.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 177 |
-
"model.layers.25.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 178 |
-
"model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 179 |
-
"model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 180 |
-
"model.layers.26.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 181 |
-
"model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 182 |
-
"model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 183 |
-
"model.layers.26.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 184 |
-
"model.layers.26.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 185 |
-
"model.layers.26.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 186 |
-
"model.layers.26.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 187 |
-
"model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 188 |
-
"model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 189 |
-
"model.layers.27.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 190 |
-
"model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 191 |
-
"model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 192 |
-
"model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 193 |
-
"model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 194 |
-
"model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 195 |
-
"model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 196 |
"model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 197 |
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 198 |
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
|
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
+
"total_size": 6799976448
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
+
"lm_head.weight": "model-00002-of-00002.safetensors",
|
| 7 |
"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
| 8 |
"model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 9 |
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
|
|
|
| 95 |
"model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 96 |
"model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 97 |
"model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 98 |
+
"model.layers.18.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 99 |
+
"model.layers.18.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 100 |
"model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 101 |
"model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 102 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 103 |
"model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 104 |
"model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 105 |
"model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 106 |
"model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 107 |
+
"model.layers.19.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 108 |
+
"model.layers.19.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 109 |
+
"model.layers.19.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 110 |
+
"model.layers.19.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 111 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 112 |
+
"model.layers.19.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 113 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 114 |
+
"model.layers.19.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 115 |
+
"model.layers.19.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 116 |
"model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 117 |
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 118 |
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
|
|
|
| 124 |
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 125 |
"model.layers.20.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 126 |
"model.layers.20.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 127 |
+
"model.layers.20.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
| 128 |
+
"model.layers.20.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
|
| 129 |
"model.layers.20.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 130 |
+
"model.layers.20.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
|
| 131 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 132 |
+
"model.layers.20.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 133 |
+
"model.layers.20.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
| 134 |
"model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
|
| 135 |
"model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
|
| 136 |
"model.layers.21.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
|
|
|
|
| 158 |
"model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
|
| 159 |
"model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
|
| 160 |
"model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
"model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 162 |
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 163 |
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|