echarlaix HF staff commited on
Commit
dd3f74d
1 Parent(s): b0629ec
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.1,
3
+ "activation_function": "gelu",
4
+ "add_cross_attention": true,
5
+ "architectures": [
6
+ "ProphetNetForConditionalGeneration"
7
+ ],
8
+ "attention_dropout": 0.1,
9
+ "bos_token_id": 1,
10
+ "decoder_ffn_dim": 32,
11
+ "decoder_start_token_id": 0,
12
+ "disable_ngram_loss": false,
13
+ "dropout": 0.1,
14
+ "encoder_ffn_dim": 32,
15
+ "eos_token_id": 2,
16
+ "eps": 0.0,
17
+ "gradient_checkpointing": false,
18
+ "hidden_size": 16,
19
+ "init_std": 0.02,
20
+ "is_encoder_decoder": true,
21
+ "max_position_embeddings": 64,
22
+ "model_type": "prophetnet",
23
+ "ngram": 2,
24
+ "num_buckets": 32,
25
+ "num_decoder_attention_heads": 4,
26
+ "num_decoder_layers": 4,
27
+ "num_encoder_attention_heads": 4,
28
+ "num_encoder_layers": 4,
29
+ "pad_token_id": 0,
30
+ "relative_max_distance": 128,
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.27.1",
33
+ "use_cache": true,
34
+ "vocab_size": 30522
35
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "decoder_start_token_id": 0,
5
+ "eos_token_id": 2,
6
+ "max_length": 64,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "4.27.1"
9
+ }
prophetnet.tokenizer ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83891082b506f21e650629d0ec1e05f31eeb2911106c743c4b1c71c97597df18
3
+ size 2147309
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "mask_token": "[MASK]",
3
+ "pad_token": "[PAD]",
4
+ "sep_token": "[SEP]",
5
+ "unk_token": "[UNK]"
6
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_basic_tokenize": true,
3
+ "do_lower_case": true,
4
+ "mask_token": "[MASK]",
5
+ "model_max_length": 512,
6
+ "never_split": null,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "special_tokens_map_file": "/home/lysandre/.cache/huggingface/transformers/73e9134d07adccf5cf38d24c2f241f87e3febd91b209b279fff2741c9ff2ab4f.6fa7d8b91dc65e73f96549c829087df43aa7359e1d576908a012e7747d67c6c2",
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "ProphetNetTokenizer",
13
+ "tokenizer_file": null,
14
+ "unk_token": "[UNK]",
15
+ "x_sep_token": "[X_SEP]"
16
+ }