Ivan Anisimov commited on
Commit
4be731e
1 Parent(s): 44887a6

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json +113 -0
  2. pytorch_model.bin +3 -0
  3. training.log +78 -0
config.json ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "",
3
+ "activation_dropout": 0.1,
4
+ "activation_function": "gelu",
5
+ "add_bias_logits": false,
6
+ "add_cross_attention": false,
7
+ "add_final_layer_norm": false,
8
+ "architectures": [
9
+ "BartForConditionalGeneration"
10
+ ],
11
+ "attention_dropout": 0.1,
12
+ "bad_words_ids": null,
13
+ "bos_token_id": 0,
14
+ "chunk_size_feed_forward": 0,
15
+ "classif_dropout": 0.1,
16
+ "classifier_dropout": 0.0,
17
+ "clip_val": 2.5,
18
+ "cross_attention_hidden_size": null,
19
+ "d_model": 1024,
20
+ "decoder_attention_heads": 16,
21
+ "decoder_ffn_dim": 4096,
22
+ "decoder_layerdrop": 0.0,
23
+ "decoder_layers": 1,
24
+ "decoder_start_token_id": 2,
25
+ "diversity_penalty": 0.0,
26
+ "do_sample": false,
27
+ "dropout": 0.1,
28
+ "early_stopping": true,
29
+ "encoder_attention_heads": 16,
30
+ "encoder_ffn_dim": 4096,
31
+ "encoder_layerdrop": 0.0,
32
+ "encoder_layers": 3,
33
+ "encoder_no_repeat_ngram_size": 0,
34
+ "eos_token_id": 2,
35
+ "finetuning_task": null,
36
+ "forced_bos_token_id": 0,
37
+ "forced_eos_token_id": 2,
38
+ "gradient_checkpointing": false,
39
+ "id2label": {
40
+ "0": "LABEL_0",
41
+ "1": "LABEL_1",
42
+ "2": "LABEL_2"
43
+ },
44
+ "init_std": 0.02,
45
+ "input_bits": 8,
46
+ "is_decoder": false,
47
+ "is_encoder_decoder": true,
48
+ "label2id": {
49
+ "LABEL_0": 0,
50
+ "LABEL_1": 1,
51
+ "LABEL_2": 2
52
+ },
53
+ "length_penalty": 1.0,
54
+ "max_length": 20,
55
+ "max_position_embeddings": 1024,
56
+ "min_length": 0,
57
+ "model_type": "bart",
58
+ "no_repeat_ngram_size": 3,
59
+ "normalize_before": false,
60
+ "num_beam_groups": 1,
61
+ "num_beams": 4,
62
+ "num_hidden_layers": 12,
63
+ "num_return_sequences": 1,
64
+ "output_attentions": false,
65
+ "output_hidden_states": false,
66
+ "output_scores": false,
67
+ "pad_token_id": 1,
68
+ "prefix": null,
69
+ "problem_type": null,
70
+ "pruned_heads": {},
71
+ "quantize_act": true,
72
+ "remove_invalid_values": false,
73
+ "repetition_penalty": 1.0,
74
+ "return_dict": true,
75
+ "return_dict_in_generate": false,
76
+ "scale_embedding": false,
77
+ "sep_token_id": null,
78
+ "task_specific_params": {
79
+ "summarization": {
80
+ "length_penalty": 1.0,
81
+ "max_length": 128,
82
+ "min_length": 12,
83
+ "num_beams": 4
84
+ },
85
+ "summarization_cnn": {
86
+ "length_penalty": 2.0,
87
+ "max_length": 142,
88
+ "min_length": 56,
89
+ "num_beams": 4
90
+ },
91
+ "summarization_xsum": {
92
+ "length_penalty": 1.0,
93
+ "max_length": 62,
94
+ "min_length": 11,
95
+ "num_beams": 6
96
+ }
97
+ },
98
+ "temperature": 1.0,
99
+ "tie_encoder_decoder": false,
100
+ "tie_word_embeddings": true,
101
+ "tokenizer_class": null,
102
+ "top_k": 50,
103
+ "top_p": 1.0,
104
+ "torch_dtype": "float32",
105
+ "torchscript": false,
106
+ "transformers_version": "4.7.0.dev0",
107
+ "typical_p": 1.0,
108
+ "use_bfloat16": false,
109
+ "use_cache": true,
110
+ "vocab_size": 50265,
111
+ "vocab_size_or_config_json_file": -1,
112
+ "weight_bits": 16
113
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82d38521aafb43be1c0b9f93be9c8f4011558be849ca4a9414bb949a32b09d0a
3
+ size 432907017
training.log ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 08/13/2023 00:40:06 - INFO - __main__ - Distributed environment: NO
2
+ Num processes: 1
3
+ Process index: 0
4
+ Local process index: 0
5
+ Device: cuda
6
+ Use FP16 precision: False
7
+
8
+ 08/13/2023 00:40:06 - WARNING - __main__ - Namespace(dataset_name='s-nlp/paradetox', dataset_config_name=None, train_file=None, ignore_pad_token_for_loss=True, max_source_length=1024, source_prefix=None, preprocessing_num_workers=None, overwrite_cache=None, max_target_length=128, val_max_target_length=None, pad_to_max_length=False, model_name_or_path='s-nlp/bart-base-detox', config_name=None, tokenizer_name=None, text_column=None, summary_column=None, use_slow_tokenizer=False, per_device_train_batch_size=8, per_device_eval_batch_size=4, learning_rate=3e-05, weight_decay=0.0, num_train_epochs=10, max_train_steps=None, gradient_accumulation_steps=2, lr_scheduler_type=<SchedulerType.LINEAR: 'linear'>, warmup_ratio=0.05, output_dir='./output_s-nlp/paradetox_bart_base_detox/16_8_3_1_10_3e-05_fp16', seed=28, model_type=None, teacher_model='s-nlp/bart-base-detox', student_model='s-nlp/bart-base-detox', pred_distill=True, intermediate_distill=True, weight_bits=16, input_bits=8, clip_val=2.5, length_penalty=150, max_length=62, min_length=11, num_beams=6, do_train=True, do_test=True, test_teacher=False, distill_encoder=3, distill_decoder=1, log_steps=20, local_rank=0, weighted=False, new_distill_map=False, task_weight=1, logits_weight=1, hid_weight=1)
9
+ 08/13/2023 00:40:24 - INFO - __main__ - ***** Running training *****
10
+ 08/13/2023 00:40:24 - INFO - __main__ - Num examples = 19546
11
+ 08/13/2023 00:40:24 - INFO - __main__ - Num Epochs = 10
12
+ 08/13/2023 00:40:24 - INFO - __main__ - Instantaneous batch size per device = 8
13
+ 08/13/2023 00:40:24 - INFO - __main__ - Total train batch size (w. parallel, distributed & accumulation) = 16
14
+ 08/13/2023 00:40:24 - INFO - __main__ - Gradient Accumulation steps = 2
15
+ 08/13/2023 00:40:24 - INFO - __main__ - Total optimization steps = 24440
16
+ 08/13/2023 00:40:24 - INFO - __main__ - student encoder layers = 3
17
+ 08/13/2023 00:40:24 - INFO - __main__ - student decoder layers = 1
18
+ 08/13/2023 00:40:24 - INFO - __main__ - student encoder layers [0, 1, 2] is mapped with teacher encoder layers [0, 2, 5]
19
+ 08/13/2023 00:40:24 - INFO - __main__ - student decoder layers [0] is mapped with teacher decoder layers [5]
20
+ 08/13/2023 00:48:32 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 22.59420505922646}
21
+ 08/13/2023 00:57:03 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 54.978123489133125}
22
+ 08/13/2023 01:05:13 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 62.023727727095206}
23
+ 08/13/2023 01:13:26 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 63.97172971159594}
24
+ 08/13/2023 01:21:23 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 64.5360970481176}
25
+ 08/13/2023 01:29:39 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 64.94717856121133}
26
+ 08/13/2023 01:37:40 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 64.59791205000518}
27
+ 08/13/2023 01:45:57 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 65.09188210629405}
28
+ 08/13/2023 01:54:25 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 65.43488256903395}
29
+ 08/13/2023 02:02:48 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 65.13437994345524}
30
+ 08/13/2023 13:33:25 - WARNING - __main__ - You're running a t5 model but didn't provide a source prefix, which is the expected, e.g. with `--source_prefix 'summarize: ' `
31
+ 08/13/2023 13:33:25 - INFO - __main__ - Distributed environment: NO
32
+ Num processes: 1
33
+ Process index: 0
34
+ Local process index: 0
35
+ Device: cuda
36
+ Use FP16 precision: False
37
+
38
+ 08/13/2023 13:33:25 - WARNING - __main__ - Namespace(dataset_name='s-nlp/paradetox', dataset_config_name=None, train_file=None, ignore_pad_token_for_loss=True, max_source_length=1024, source_prefix=None, preprocessing_num_workers=None, overwrite_cache=None, max_target_length=128, val_max_target_length=None, pad_to_max_length=False, model_name_or_path='t5-large', config_name=None, tokenizer_name=None, text_column=None, summary_column=None, use_slow_tokenizer=False, per_device_train_batch_size=8, per_device_eval_batch_size=4, learning_rate=3e-05, weight_decay=0.0, num_train_epochs=10, max_train_steps=None, gradient_accumulation_steps=2, lr_scheduler_type=<SchedulerType.LINEAR: 'linear'>, warmup_ratio=0.05, output_dir='./output_s-nlp/paradetox_bart_base_detox/16_8_3_1_10_3e-05_fp16', seed=28, model_type=None, teacher_model='t5-large', student_model='t5-large', pred_distill=True, intermediate_distill=True, weight_bits=16, input_bits=8, clip_val=2.5, length_penalty=150, max_length=62, min_length=11, num_beams=6, do_train=True, do_test=True, test_teacher=False, distill_encoder=3, distill_decoder=1, log_steps=20, local_rank=0, weighted=False, new_distill_map=False, task_weight=1, logits_weight=1, hid_weight=1)
39
+ 08/13/2023 13:33:49 - INFO - __main__ - ***** Running training *****
40
+ 08/13/2023 13:33:49 - INFO - __main__ - Num examples = 19546
41
+ 08/13/2023 13:33:49 - INFO - __main__ - Num Epochs = 10
42
+ 08/13/2023 13:33:49 - INFO - __main__ - Instantaneous batch size per device = 8
43
+ 08/13/2023 13:33:49 - INFO - __main__ - Total train batch size (w. parallel, distributed & accumulation) = 16
44
+ 08/13/2023 13:33:49 - INFO - __main__ - Gradient Accumulation steps = 2
45
+ 08/13/2023 13:33:49 - INFO - __main__ - Total optimization steps = 24440
46
+ 08/13/2023 13:33:49 - INFO - __main__ - student encoder layers = 3
47
+ 08/13/2023 13:33:49 - INFO - __main__ - student decoder layers = 1
48
+ 08/13/2023 13:33:49 - INFO - __main__ - student encoder layers [0, 1, 2] is mapped with teacher encoder layers [0, 2, 5]
49
+ 08/13/2023 13:33:49 - INFO - __main__ - student decoder layers [0] is mapped with teacher decoder layers [5]
50
+ 08/13/2023 18:13:36 - INFO - __main__ - Distributed environment: NO
51
+ Num processes: 1
52
+ Process index: 0
53
+ Local process index: 0
54
+ Device: cuda
55
+ Use FP16 precision: False
56
+
57
+ 08/13/2023 18:13:36 - WARNING - __main__ - Namespace(dataset_name='s-nlp/paradetox', dataset_config_name=None, train_file=None, ignore_pad_token_for_loss=True, max_source_length=1024, source_prefix=None, preprocessing_num_workers=None, overwrite_cache=None, max_target_length=128, val_max_target_length=None, pad_to_max_length=False, model_name_or_path='facebook/bart-large', config_name=None, tokenizer_name=None, text_column=None, summary_column=None, use_slow_tokenizer=False, per_device_train_batch_size=8, per_device_eval_batch_size=4, learning_rate=3e-05, weight_decay=0.0, num_train_epochs=10, max_train_steps=None, gradient_accumulation_steps=2, lr_scheduler_type=<SchedulerType.LINEAR: 'linear'>, warmup_ratio=0.05, output_dir='./output_s-nlp/paradetox_bart_base_detox/16_8_3_1_10_3e-05_fp16', seed=28, model_type=None, teacher_model='facebook/bart-large', student_model='facebook/bart-large', pred_distill=True, intermediate_distill=True, weight_bits=16, input_bits=8, clip_val=2.5, length_penalty=150, max_length=62, min_length=11, num_beams=6, do_train=True, do_test=True, test_teacher=False, distill_encoder=3, distill_decoder=1, log_steps=20, local_rank=0, weighted=False, new_distill_map=False, task_weight=1, logits_weight=1, hid_weight=1)
58
+ 08/13/2023 18:13:57 - INFO - __main__ - ***** Running training *****
59
+ 08/13/2023 18:13:57 - INFO - __main__ - Num examples = 19546
60
+ 08/13/2023 18:13:57 - INFO - __main__ - Num Epochs = 10
61
+ 08/13/2023 18:13:57 - INFO - __main__ - Instantaneous batch size per device = 8
62
+ 08/13/2023 18:13:57 - INFO - __main__ - Total train batch size (w. parallel, distributed & accumulation) = 16
63
+ 08/13/2023 18:13:57 - INFO - __main__ - Gradient Accumulation steps = 2
64
+ 08/13/2023 18:13:57 - INFO - __main__ - Total optimization steps = 24440
65
+ 08/13/2023 18:13:57 - INFO - __main__ - student encoder layers = 3
66
+ 08/13/2023 18:13:57 - INFO - __main__ - student decoder layers = 1
67
+ 08/13/2023 18:13:57 - INFO - __main__ - student encoder layers [0, 1, 2] is mapped with teacher encoder layers [0, 2, 5]
68
+ 08/13/2023 18:13:57 - INFO - __main__ - student decoder layers [0] is mapped with teacher decoder layers [5]
69
+ 08/13/2023 18:23:59 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 13.927599253697903}
70
+ 08/13/2023 18:33:46 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 14.54024753825692}
71
+ 08/13/2023 18:43:47 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 15.696559967829156}
72
+ 08/13/2023 18:53:59 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 17.028561047497664}
73
+ 08/13/2023 19:04:19 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 18.190088344180207}
74
+ 08/13/2023 19:14:34 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 19.35744020416755}
75
+ 08/13/2023 19:24:59 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 20.69450840196689}
76
+ 08/13/2023 19:35:05 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 21.69196456544141}
77
+ 08/13/2023 19:45:14 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 22.46896551649043}
78
+ 08/13/2023 19:55:18 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 22.655778155996654}