Upload RetNetForCausalLM
Browse files- config.json +9 -1
- generation_config.json +1 -1
- model.safetensors +1 -1
- tokenizer.json +1 -0
config.json
CHANGED
@@ -5,9 +5,12 @@
|
|
5 |
],
|
6 |
"attn_mode": "fused_chunk",
|
7 |
"bos_token_id": 1,
|
|
|
|
|
8 |
"eos_token_id": 2,
|
9 |
"expand_k": 1,
|
10 |
"expand_v": 2,
|
|
|
11 |
"fuse_cross_entropy": true,
|
12 |
"fuse_norm": true,
|
13 |
"hidden_act": "swish",
|
@@ -17,12 +20,17 @@
|
|
17 |
"intermediate_size": null,
|
18 |
"max_position_embeddings": 2048,
|
19 |
"model_type": "retnet",
|
|
|
20 |
"num_heads": 8,
|
21 |
"num_hidden_layers": 24,
|
|
|
22 |
"rms_norm_eps": 1e-06,
|
|
|
23 |
"tie_word_embeddings": false,
|
24 |
"torch_dtype": "bfloat16",
|
25 |
-
"transformers_version": "4.
|
26 |
"use_cache": true,
|
|
|
|
|
27 |
"vocab_size": 32000
|
28 |
}
|
|
|
5 |
],
|
6 |
"attn_mode": "fused_chunk",
|
7 |
"bos_token_id": 1,
|
8 |
+
"conv_size": 4,
|
9 |
+
"elementwise_affine": true,
|
10 |
"eos_token_id": 2,
|
11 |
"expand_k": 1,
|
12 |
"expand_v": 2,
|
13 |
+
"feature_map": null,
|
14 |
"fuse_cross_entropy": true,
|
15 |
"fuse_norm": true,
|
16 |
"hidden_act": "swish",
|
|
|
20 |
"intermediate_size": null,
|
21 |
"max_position_embeddings": 2048,
|
22 |
"model_type": "retnet",
|
23 |
+
"norm_eps": 1e-06,
|
24 |
"num_heads": 8,
|
25 |
"num_hidden_layers": 24,
|
26 |
+
"num_kv_heads": null,
|
27 |
"rms_norm_eps": 1e-06,
|
28 |
+
"share_conv_kernel": true,
|
29 |
"tie_word_embeddings": false,
|
30 |
"torch_dtype": "bfloat16",
|
31 |
+
"transformers_version": "4.40.2",
|
32 |
"use_cache": true,
|
33 |
+
"use_output_gate": true,
|
34 |
+
"use_short_conv": false,
|
35 |
"vocab_size": 32000
|
36 |
}
|
generation_config.json
CHANGED
@@ -2,5 +2,5 @@
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 1,
|
4 |
"eos_token_id": 2,
|
5 |
-
"transformers_version": "4.
|
6 |
}
|
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 1,
|
4 |
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.40.2"
|
6 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 2703481256
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0692b44dbc3850d56fa98aceaeb15529852eb0c49b7cb98986000ad3d708e189
|
3 |
size 2703481256
|
tokenizer.json
CHANGED
@@ -134,6 +134,7 @@
|
|
134 |
"end_of_word_suffix": null,
|
135 |
"fuse_unk": true,
|
136 |
"byte_fallback": true,
|
|
|
137 |
"vocab": {
|
138 |
"<unk>": 0,
|
139 |
"<s>": 1,
|
|
|
134 |
"end_of_word_suffix": null,
|
135 |
"fuse_unk": true,
|
136 |
"byte_fallback": true,
|
137 |
+
"ignore_merges": false,
|
138 |
"vocab": {
|
139 |
"<unk>": 0,
|
140 |
"<s>": 1,
|