swaze commited on
Commit
a1f68ba
·
verified ·
1 Parent(s): cfd5819

Upload 3 files

Browse files
config.json CHANGED
@@ -1,11 +1,17 @@
1
  {
2
  "architectures": [
3
- "LlamaForCausalLM"
4
  ],
5
  "attention_bias": false,
6
  "attention_dropout": 0.0,
 
 
 
 
7
  "bos_token_id": 128000,
 
8
  "dtype": "bfloat16",
 
9
  "eos_token_id": [
10
  128001,
11
  128008,
@@ -20,7 +26,8 @@
20
  "intermediate_size": 8192,
21
  "max_position_embeddings": 131072,
22
  "mlp_bias": false,
23
- "model_type": "llama",
 
24
  "num_attention_heads": 32,
25
  "num_hidden_layers": 16,
26
  "num_key_value_heads": 8,
@@ -38,4 +45,4 @@
38
  "transformers_version": "4.57.0",
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": 1753785304.4597948,
13
  "dtype": "bfloat16",
14
+ "enforce_equal_cluster_sizes": true,
15
  "eos_token_id": [
16
  128001,
17
  128008,
 
26
  "intermediate_size": 8192,
27
  "max_position_embeddings": 131072,
28
  "mlp_bias": false,
29
+ "model_type": "flash_head_llama",
30
+ "n_clusters": 8016,
31
  "num_attention_heads": 32,
32
  "num_hidden_layers": 16,
33
  "num_key_value_heads": 8,
 
45
  "transformers_version": "4.57.0",
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