Upload RetNetForCausalLM
Browse files- config.json +43 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "p1atdev/sdprompt-retnet-v2-medium",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_fn": "swish",
|
5 |
+
"architectures": [
|
6 |
+
"RetNetForCausalLM"
|
7 |
+
],
|
8 |
+
"auto_map": {
|
9 |
+
"AutoConfig": "p1atdev/retnet-medium--configuration_retnet.RetNetConfig",
|
10 |
+
"AutoModelForCausalLM": "p1atdev/retnet-medium--modeling_retnet.RetNetForCausalLM"
|
11 |
+
},
|
12 |
+
"decoder_embed_dim": 1024,
|
13 |
+
"decoder_ffn_embed_dim": 1728,
|
14 |
+
"decoder_layers": 16,
|
15 |
+
"decoder_normalize_before": true,
|
16 |
+
"decoder_retention_heads": 4,
|
17 |
+
"decoder_value_embed_dim": 1728,
|
18 |
+
"deepnorm": false,
|
19 |
+
"drop_path_rate": 0.0,
|
20 |
+
"dropout": 0.0,
|
21 |
+
"eos_token_id": 1,
|
22 |
+
"forward_impl": "parallel",
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"is_decoder": true,
|
25 |
+
"layernorm_embedding": true,
|
26 |
+
"layernorm_eps": 1e-06,
|
27 |
+
"model_type": "retnet",
|
28 |
+
"no_scale_embedding": false,
|
29 |
+
"output_retentions": false,
|
30 |
+
"pad_token_id": 4,
|
31 |
+
"recurrent_chunk_size": 512,
|
32 |
+
"subln": true,
|
33 |
+
"tie_word_embeddings": false,
|
34 |
+
"torch_dtype": "bfloat16",
|
35 |
+
"transformers_version": "4.36.1",
|
36 |
+
"unk_token_id": 2,
|
37 |
+
"use_cache": false,
|
38 |
+
"use_ffn_rms_norm": false,
|
39 |
+
"use_glu": true,
|
40 |
+
"use_lm_decay": false,
|
41 |
+
"vocab_size": 24986,
|
42 |
+
"z_loss_coeff": 0.0
|
43 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"eos_token_id": 1,
|
4 |
+
"pad_token_id": 4,
|
5 |
+
"transformers_version": "4.36.1"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8beb5c37ef55aed3dcaeccc4151f500ccd174a908336933e4d5030991613280a
|
3 |
+
size 509278888
|