janbakker commited on
Commit
57fc294
1 Parent(s): 6445611

Upload BartForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +187 -0
  2. generation_config.json +13 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/bart-base",
3
+ "accelerator": null,
4
+ "accumulate_grad_batches": 2,
5
+ "activation_dropout": 0.1,
6
+ "activation_function": "gelu",
7
+ "add_bias_logits": false,
8
+ "add_context": false,
9
+ "add_final_layer_norm": false,
10
+ "amp_backend": "native",
11
+ "amp_level": null,
12
+ "architectures": [
13
+ "BartForConditionalGeneration"
14
+ ],
15
+ "attention_dropout": 0.1,
16
+ "auto_lr_find": false,
17
+ "auto_scale_batch_size": false,
18
+ "auto_select_gpus": false,
19
+ "batch_size": 8,
20
+ "benchmark": false,
21
+ "bos_token_id": 0,
22
+ "check_val_every_n_epoch": 1,
23
+ "checkpoint": null,
24
+ "checkpoint_callback": null,
25
+ "class_labels": {
26
+ "delete": 3,
27
+ "ignore": 0,
28
+ "rephrase": 1,
29
+ "split": 2
30
+ },
31
+ "classif_dropout": 0.1,
32
+ "classifier_dropout": 0.0,
33
+ "context_dir": null,
34
+ "context_doc_id": null,
35
+ "context_window": 13,
36
+ "d_model": 768,
37
+ "decoder_attention_heads": 12,
38
+ "decoder_ffn_dim": 3072,
39
+ "decoder_layerdrop": 0.0,
40
+ "decoder_layers": 6,
41
+ "decoder_start_token_id": 2,
42
+ "default_root_dir": null,
43
+ "detect_anomaly": false,
44
+ "deterministic": false,
45
+ "devices": null,
46
+ "dropout": 0.1,
47
+ "early_stopping": true,
48
+ "enable_checkpointing": true,
49
+ "enable_model_summary": true,
50
+ "enable_progress_bar": true,
51
+ "encoder_attention_heads": 12,
52
+ "encoder_ffn_dim": 3072,
53
+ "encoder_layerdrop": 0.0,
54
+ "encoder_layers": 6,
55
+ "eos_token_id": 2,
56
+ "eval_beams": 5,
57
+ "eval_max_length": 1024,
58
+ "fast_dev_run": false,
59
+ "flush_logs_every_n_steps": null,
60
+ "forced_bos_token_id": 0,
61
+ "forced_eos_token_id": 2,
62
+ "gpus": 2,
63
+ "gradient_checkpointing": false,
64
+ "gradient_clip_algorithm": null,
65
+ "gradient_clip_val": null,
66
+ "id2label": {
67
+ "0": "LABEL_0",
68
+ "1": "LABEL_1",
69
+ "2": "LABEL_2"
70
+ },
71
+ "init_std": 0.02,
72
+ "ipus": null,
73
+ "is_encoder_decoder": true,
74
+ "label2id": {
75
+ "LABEL_0": 0,
76
+ "LABEL_1": 1,
77
+ "LABEL_2": 2
78
+ },
79
+ "limit_predict_batches": 1.0,
80
+ "limit_test_batches": 1.0,
81
+ "limit_train_batches": 1.0,
82
+ "limit_val_batches": 1.0,
83
+ "log_every_n_steps": 50,
84
+ "log_gpu_memory": null,
85
+ "logger": true,
86
+ "longformer": false,
87
+ "lr": 2e-05,
88
+ "lr_scheduler": false,
89
+ "max_epochs": null,
90
+ "max_length": 1024,
91
+ "max_position_embeddings": 1024,
92
+ "max_samples": -1,
93
+ "max_steps": -1,
94
+ "max_time": null,
95
+ "min_epochs": null,
96
+ "min_steps": null,
97
+ "model_type": "bart",
98
+ "move_metrics_to_cpu": false,
99
+ "multiple_trainloader_mode": "max_size_cycle",
100
+ "name": null,
101
+ "no_repeat_ngram_size": 3,
102
+ "normalize_before": false,
103
+ "normalize_embedding": true,
104
+ "num_beams": 4,
105
+ "num_hidden_layers": 6,
106
+ "num_nodes": 1,
107
+ "num_processes": 1,
108
+ "num_sanity_val_steps": 2,
109
+ "op_col": null,
110
+ "op_tokens": [
111
+ "<COPY>",
112
+ "<REPHRASE>",
113
+ "<SPLIT>",
114
+ "<DELETE>"
115
+ ],
116
+ "overfit_batches": 0.0,
117
+ "pad_token_id": 1,
118
+ "plan_col": "labels",
119
+ "plan_loss": null,
120
+ "plan_prefix": false,
121
+ "plan_sep": false,
122
+ "plugins": null,
123
+ "precision": 32,
124
+ "prefix_only": false,
125
+ "prepare_data_per_node": null,
126
+ "process_position": 0,
127
+ "profiler": null,
128
+ "progress_bar_refresh_rate": null,
129
+ "project": null,
130
+ "reading_lvl": null,
131
+ "reload_dataloaders_every_epoch": false,
132
+ "reload_dataloaders_every_n_epochs": 0,
133
+ "replace_sampler_ddp": true,
134
+ "resume_from_checkpoint": null,
135
+ "save_dir": "models",
136
+ "scale_embedding": false,
137
+ "sent_level": true,
138
+ "simple_context_dir": null,
139
+ "simple_context_doc_id": null,
140
+ "skip_val_gen": true,
141
+ "stochastic_weight_avg": false,
142
+ "strategy": null,
143
+ "sync_batchnorm": false,
144
+ "task_specific_params": {
145
+ "summarization": {
146
+ "length_penalty": 1.0,
147
+ "max_length": 128,
148
+ "min_length": 12,
149
+ "num_beams": 4
150
+ },
151
+ "summarization_cnn": {
152
+ "length_penalty": 2.0,
153
+ "max_length": 142,
154
+ "min_length": 56,
155
+ "num_beams": 4
156
+ },
157
+ "summarization_xsum": {
158
+ "length_penalty": 1.0,
159
+ "max_length": 62,
160
+ "min_length": 11,
161
+ "num_beams": 6
162
+ }
163
+ },
164
+ "terminate_on_nan": null,
165
+ "torch_dtype": "float32",
166
+ "tpu_cores": null,
167
+ "track_grad_norm": -1,
168
+ "train_check_interval": 0.01,
169
+ "train_data_dir": null,
170
+ "train_file": "data/wikiauto_sents_train.csv",
171
+ "train_split": 0.9,
172
+ "train_workers": 32,
173
+ "transformers_version": "4.29.1",
174
+ "use_cache": true,
175
+ "val_check_interval": 1.0,
176
+ "val_file": "data/wikiauto_sents_valid.csv",
177
+ "val_metric": "bleu",
178
+ "val_split": 0.05,
179
+ "val_workers": 8,
180
+ "valid_data_dir": null,
181
+ "vocab_size": 50274,
182
+ "wandb_id": null,
183
+ "weights_save_path": null,
184
+ "weights_summary": "top",
185
+ "x_col": "complex",
186
+ "y_col": "simple"
187
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
5
+ "early_stopping": true,
6
+ "eos_token_id": 2,
7
+ "forced_bos_token_id": 0,
8
+ "forced_eos_token_id": 2,
9
+ "no_repeat_ngram_size": 3,
10
+ "num_beams": 4,
11
+ "pad_token_id": 1,
12
+ "transformers_version": "4.29.1"
13
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49fe539fa4815bcbd07ae262bfdb469aa55cd2fd61854e4fda7b73f5ced8f420
3
+ size 557998941