hirotasoshu commited on
Commit
0b6ebb1
1 Parent(s): 25e68f3

fix prophetnet

Browse files
config.json CHANGED
@@ -14,6 +14,7 @@
14
  "encoder_ffn_dim": 32,
15
  "eos_token_id": 2,
16
  "eps": 0.0,
 
17
  "hidden_size": 16,
18
  "init_std": 0.02,
19
  "is_encoder_decoder": true,
 
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,
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "decoder_start_token_id": 0,
5
+ "eos_token_id": 2,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "4.27.1"
8
+ }
prophetnet.tokenizer ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:63fa47af3b39f2ee752935c7cfd88c6e6a24e353201c5334a02ce651f5ab3928
3
  size 195309
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4631deee07278f1666108f3cbde7a697e7c149d0a4924502dfca336a9fb3507
3
  size 195309
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
+ }