Upload 3 files
Browse files- config.json +10 -3
- configuration_flash_head_llama.py +1 -0
- modeling_flash_head_llama.py +1 -0
config.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
"attention_bias": false,
|
| 6 |
"attention_dropout": 0.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
"bos_token_id": 128000,
|
|
|
|
|
|
|
| 8 |
"eos_token_id": [
|
| 9 |
128001,
|
| 10 |
128008,
|
|
@@ -19,7 +25,8 @@
|
|
| 19 |
"intermediate_size": 8192,
|
| 20 |
"max_position_embeddings": 131072,
|
| 21 |
"mlp_bias": false,
|
| 22 |
-
"model_type": "
|
|
|
|
| 23 |
"num_attention_heads": 24,
|
| 24 |
"num_hidden_layers": 28,
|
| 25 |
"num_key_value_heads": 8,
|
|
@@ -38,4 +45,4 @@
|
|
| 38 |
"transformers_version": "4.55.2",
|
| 39 |
"use_cache": true,
|
| 40 |
"vocab_size": 128256
|
| 41 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"FlashHeadLlamaForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_bias": false,
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "configuration_flash_head_llama.FlashHeadLlamaConfig",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_flash_head_llama.FlashHeadLlamaForCausalLM"
|
| 10 |
+
},
|
| 11 |
"bos_token_id": 128000,
|
| 12 |
+
"creation_time": 1753881288.934019,
|
| 13 |
+
"enforce_equal_cluster_sizes": true,
|
| 14 |
"eos_token_id": [
|
| 15 |
128001,
|
| 16 |
128008,
|
|
|
|
| 25 |
"intermediate_size": 8192,
|
| 26 |
"max_position_embeddings": 131072,
|
| 27 |
"mlp_bias": false,
|
| 28 |
+
"model_type": "flash_head_llama",
|
| 29 |
+
"n_clusters": 8016,
|
| 30 |
"num_attention_heads": 24,
|
| 31 |
"num_hidden_layers": 28,
|
| 32 |
"num_key_value_heads": 8,
|
|
|
|
| 45 |
"transformers_version": "4.55.2",
|
| 46 |
"use_cache": true,
|
| 47 |
"vocab_size": 128256
|
| 48 |
+
}
|
configuration_flash_head_llama.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from embedl.models.llama.modeling_flash_head import FlashHeadLlamaConfig
|
modeling_flash_head_llama.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from embedl.models.llama.modeling_flash_head import FlashHeadLlamaForCausalLM
|