Upload MemoryLLM
Browse files- config.json +57 -0
- generation_config.json +9 -0
- model-00001-of-00008.safetensors +3 -0
- model-00002-of-00008.safetensors +3 -0
- model-00003-of-00008.safetensors +3 -0
- model-00004-of-00008.safetensors +3 -0
- model-00005-of-00008.safetensors +3 -0
- model-00006-of-00008.safetensors +3 -0
- model-00007-of-00008.safetensors +3 -0
- model-00008-of-00008.safetensors +3 -0
- model.safetensors.index.json +0 -0
config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "memoryllm-8b",
|
3 |
+
"add_bos_embedding": true,
|
4 |
+
"add_decoder_lora": true,
|
5 |
+
"architectures": [
|
6 |
+
"MemoryLLM"
|
7 |
+
],
|
8 |
+
"attention_bias": false,
|
9 |
+
"attention_dropout": 0.0,
|
10 |
+
"bos_token_id": 128000,
|
11 |
+
"drop_memory_per_layer": true,
|
12 |
+
"eos_token_id": 128001,
|
13 |
+
"hidden_act": "silu",
|
14 |
+
"hidden_size": 4096,
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 14336,
|
17 |
+
"lora_config": {
|
18 |
+
"inference_mode": false,
|
19 |
+
"lora_alpha": 32,
|
20 |
+
"lora_dropout": 0.1,
|
21 |
+
"r": 16,
|
22 |
+
"target_modules": [
|
23 |
+
"q_proj",
|
24 |
+
"v_proj",
|
25 |
+
"k_proj",
|
26 |
+
"up_proj",
|
27 |
+
"down_proj",
|
28 |
+
"gate_proj"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"max_length": 512,
|
32 |
+
"max_position_embeddings": 8192,
|
33 |
+
"max_seq_length": 2048,
|
34 |
+
"mlp_bias": false,
|
35 |
+
"model_type": "llama",
|
36 |
+
"new_memory_embedding_fullset": true,
|
37 |
+
"num_attention_heads": 32,
|
38 |
+
"num_blocks": 50,
|
39 |
+
"num_hidden_layers": 32,
|
40 |
+
"num_key_value_heads": 8,
|
41 |
+
"num_memory_tokens": 12800,
|
42 |
+
"num_tokens": 256,
|
43 |
+
"pad_token_id": 128001,
|
44 |
+
"pretraining_tp": 1,
|
45 |
+
"rms_norm_eps": 1e-05,
|
46 |
+
"rope_scaling": {
|
47 |
+
"factor": 1.8125,
|
48 |
+
"type": "linear"
|
49 |
+
},
|
50 |
+
"rope_theta": 500000.0,
|
51 |
+
"shrink_to_one_embedding": true,
|
52 |
+
"tie_word_embeddings": false,
|
53 |
+
"torch_dtype": "float32",
|
54 |
+
"transformers_version": "4.43.0.dev0",
|
55 |
+
"use_cache": true,
|
56 |
+
"vocab_size": 128256
|
57 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 128000,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": 128001,
|
5 |
+
"max_length": 4096,
|
6 |
+
"temperature": 0.6,
|
7 |
+
"top_p": 0.9,
|
8 |
+
"transformers_version": "4.43.0.dev0"
|
9 |
+
}
|
model-00001-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8e08962581754c00a1629d551316f96657cadd2e74347f145c733a48f8c7772
|
3 |
+
size 6710886520
|
model-00002-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6106190f4ebbcd495a788dbac3a905ccfbfc4e88497393facb2c018bc82f6331
|
3 |
+
size 4917689241
|
model-00003-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f295de529ad2fcf6e82c0c70f289d6fc609fc2e9e054b887ff430233502bd2f
|
3 |
+
size 4883929088
|
model-00004-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bd32f16d2abdf2cc5f11cc7ac48d8e98b3c45cbb4e30f7c5b89474d2d01e1084
|
3 |
+
size 4816854808
|
model-00005-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:377706345fd2e811011b2fc316a9cdc185660d7657b9ba7721e2d964f7cb29fd
|
3 |
+
size 4883929264
|
model-00006-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1618014f1e97e50f3feb2451ebac0a7081251529c9afbd9b09dae7d9533e373c
|
3 |
+
size 4816854856
|
model-00007-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d210c8100af2339cedf5f45a2018dc8b490a59b0b9d8e8c89150d22e3a29ca4f
|
3 |
+
size 4883929264
|
model-00008-of-00008.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a491996b7f24ef0153397115891857332dc82cb4767a75f881eb59ff99b4805
|
3 |
+
size 3220526344
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|