valhalla commited on
Commit
a7534bb
1 Parent(s): 4f75298

update config

Browse files
.ipynb_checkpoints/config-checkpoint.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_num_labels": 3,
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "gelu",
5
+ "add_final_layer_norm": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "classif_dropout": 0.0,
9
+ "d_model": 1024,
10
+ "decoder_attention_heads": 16,
11
+ "decoder_ffn_dim": 4096,
12
+ "decoder_layerdrop": 0.0,
13
+ "decoder_layers": 12,
14
+ "decoder_start_token_id": 2,
15
+ "dropout": 0.1,
16
+ "early_stopping": true,
17
+ "encoder_attention_heads": 16,
18
+ "encoder_ffn_dim": 4096,
19
+ "encoder_layerdrop": 0.0,
20
+ "encoder_layers": 12,
21
+ "eos_token_id": 2,
22
+ "force_bos_token_to_be_generated": true,
23
+ "id2label": {
24
+ "0": "LABEL_0",
25
+ "1": "LABEL_1",
26
+ "2": "LABEL_2"
27
+ },
28
+ "init_std": 0.02,
29
+ "is_encoder_decoder": true,
30
+ "label2id": {
31
+ "LABEL_0": 0,
32
+ "LABEL_1": 1,
33
+ "LABEL_2": 2
34
+ },
35
+ "length_penalty": 2.0,
36
+ "max_length": 142,
37
+ "max_position_embeddings": 1024,
38
+ "min_length": 56,
39
+ "model_type": "bart",
40
+ "no_repeat_ngram_size": 3,
41
+ "normalize_before": false,
42
+ "num_beams": 4,
43
+ "num_hidden_layers": 12,
44
+ "output_past": true,
45
+ "pad_token_id": 1,
46
+ "prefix": " ",
47
+ "scale_embedding": false,
48
+ "task_specific_params": {
49
+ "summarization": {
50
+ "early_stopping": true,
51
+ "length_penalty": 2.0,
52
+ "max_length": 142,
53
+ "min_length": 56,
54
+ "no_repeat_ngram_size": 3,
55
+ "num_beams": 4
56
+ }
57
+ },
58
+ "vocab_size": 50264
59
+ }
config.json CHANGED
@@ -19,7 +19,8 @@
19
  "encoder_layerdrop": 0.0,
20
  "encoder_layers": 12,
21
  "eos_token_id": 2,
22
- "force_bos_token_to_be_generated": true,
 
23
  "id2label": {
24
  "0": "LABEL_0",
25
  "1": "LABEL_1",
 
19
  "encoder_layerdrop": 0.0,
20
  "encoder_layers": 12,
21
  "eos_token_id": 2,
22
+ "forced_bos_token_id": 0,
23
+ "forced_eos_token_id": 2,
24
  "id2label": {
25
  "0": "LABEL_0",
26
  "1": "LABEL_1",