GardeniaM commited on
Commit
8677f74
1 Parent(s): 6b01677

Upload RetNetForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +37 -0
  2. generation_config.json +6 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_fn": "swish",
4
+ "architectures": [
5
+ "RetNetForCausalLM"
6
+ ],
7
+ "decoder_embed_dim": 512,
8
+ "decoder_ffn_embed_dim": 864,
9
+ "decoder_layers": 6,
10
+ "decoder_normalize_before": true,
11
+ "decoder_retention_heads": 2,
12
+ "decoder_value_embed_dim": 864,
13
+ "deepnorm": false,
14
+ "drop_path_rate": 0.0,
15
+ "dropout": 0.0,
16
+ "eos_token_id": 0,
17
+ "forward_impl": "parallel",
18
+ "initializer_range": 0.02,
19
+ "is_decoder": true,
20
+ "layernorm_embedding": true,
21
+ "layernorm_eps": 1e-06,
22
+ "model_type": "retnet",
23
+ "no_scale_embedding": false,
24
+ "output_retentions": false,
25
+ "pad_token_id": 0,
26
+ "recurrent_chunk_size": 512,
27
+ "subln": true,
28
+ "tie_word_embeddings": false,
29
+ "torch_dtype": "float16",
30
+ "transformers_version": "4.35.0.dev0",
31
+ "use_cache": true,
32
+ "use_ffn_rms_norm": false,
33
+ "use_glu": true,
34
+ "use_lm_decay": false,
35
+ "vocab_size": 65536,
36
+ "z_loss_coeff": 0.0
37
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": 0,
4
+ "pad_token_id": 0,
5
+ "transformers_version": "4.35.0.dev0"
6
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e62aaf95ed22c56840af0847845795fb776404dfdcd6b34d967154990642baa
3
+ size 172383553