Ivan Anisimov commited on
Commit
52966ab
·
1 Parent(s): 813776e

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": 8
113
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db1282ceb98040082dc5bf2a2840ede52e16e06263ba296864c4473e65915858
3
+ size 432907017
training.log ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 08/12/2023 23:18:17 - 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/12/2023 23:18:17 - 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/8_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=8, 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/12/2023 23:18:33 - INFO - __main__ - ***** Running training *****
10
+ 08/12/2023 23:18:33 - INFO - __main__ - Num examples = 19546
11
+ 08/12/2023 23:18:33 - INFO - __main__ - Num Epochs = 10
12
+ 08/12/2023 23:18:33 - INFO - __main__ - Instantaneous batch size per device = 8
13
+ 08/12/2023 23:18:33 - INFO - __main__ - Total train batch size (w. parallel, distributed & accumulation) = 16
14
+ 08/12/2023 23:18:33 - INFO - __main__ - Gradient Accumulation steps = 2
15
+ 08/12/2023 23:18:33 - INFO - __main__ - Total optimization steps = 24440
16
+ 08/12/2023 23:18:33 - INFO - __main__ - student encoder layers = 3
17
+ 08/12/2023 23:18:33 - INFO - __main__ - student decoder layers = 1
18
+ 08/12/2023 23:18:33 - INFO - __main__ - student encoder layers [0, 1, 2] is mapped with teacher encoder layers [0, 2, 5]
19
+ 08/12/2023 23:18:33 - INFO - __main__ - student decoder layers [0] is mapped with teacher decoder layers [5]
20
+ 08/12/2023 23:26:48 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 21.572847829671986}
21
+ 08/12/2023 23:34:51 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 54.29186037002958}
22
+ 08/12/2023 23:43:04 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 61.69900398207265}
23
+ 08/12/2023 23:50:59 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 63.62850416895223}
24
+ 08/12/2023 23:59:06 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 64.56508552124465}
25
+ 08/13/2023 00:07:12 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 64.7503365706928}
26
+ 08/13/2023 00:15:02 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 64.56400845774732}
27
+ 08/13/2023 00:22:51 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 65.14883955028}
28
+ 08/13/2023 00:31:21 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 65.12240366547515}
29
+ 08/13/2023 00:39:52 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 64.96621476538809}
30
+ 08/13/2023 13:19:30 - 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:19:30 - 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:19:30 - 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/8_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=8, 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:19:57 - INFO - __main__ - ***** Running training *****
40
+ 08/13/2023 13:19:57 - INFO - __main__ - Num examples = 19546
41
+ 08/13/2023 13:19:57 - INFO - __main__ - Num Epochs = 10
42
+ 08/13/2023 13:19:57 - INFO - __main__ - Instantaneous batch size per device = 8
43
+ 08/13/2023 13:19:57 - INFO - __main__ - Total train batch size (w. parallel, distributed & accumulation) = 16
44
+ 08/13/2023 13:19:57 - INFO - __main__ - Gradient Accumulation steps = 2
45
+ 08/13/2023 13:19:57 - INFO - __main__ - Total optimization steps = 24440
46
+ 08/13/2023 13:19:57 - INFO - __main__ - student encoder layers = 3
47
+ 08/13/2023 13:19:57 - INFO - __main__ - student decoder layers = 1
48
+ 08/13/2023 13:19:57 - INFO - __main__ - student encoder layers [0, 1, 2] is mapped with teacher encoder layers [0, 2, 5]
49
+ 08/13/2023 13:19:57 - INFO - __main__ - student decoder layers [0] is mapped with teacher decoder layers [5]
50
+ 08/13/2023 16:31:44 - 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 16:31:44 - 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/8_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=8, 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 16:32:04 - INFO - __main__ - ***** Running training *****
59
+ 08/13/2023 16:32:04 - INFO - __main__ - Num examples = 19546
60
+ 08/13/2023 16:32:04 - INFO - __main__ - Num Epochs = 10
61
+ 08/13/2023 16:32:04 - INFO - __main__ - Instantaneous batch size per device = 8
62
+ 08/13/2023 16:32:04 - INFO - __main__ - Total train batch size (w. parallel, distributed & accumulation) = 16
63
+ 08/13/2023 16:32:04 - INFO - __main__ - Gradient Accumulation steps = 2
64
+ 08/13/2023 16:32:04 - INFO - __main__ - Total optimization steps = 24440
65
+ 08/13/2023 16:32:04 - INFO - __main__ - student encoder layers = 3
66
+ 08/13/2023 16:32:04 - INFO - __main__ - student decoder layers = 1
67
+ 08/13/2023 16:32:04 - INFO - __main__ - student encoder layers [0, 1, 2] is mapped with teacher encoder layers [0, 2, 5]
68
+ 08/13/2023 16:32:04 - INFO - __main__ - student decoder layers [0] is mapped with teacher decoder layers [5]
69
+ 08/13/2023 16:42:11 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 14.204618561425352}
70
+ 08/13/2023 16:52:21 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 14.451229182170009}
71
+ 08/13/2023 17:02:34 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 15.582597700705236}
72
+ 08/13/2023 17:12:46 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 16.570258107614887}
73
+ 08/13/2023 17:22:59 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 17.896398309811964}
74
+ 08/13/2023 17:32:49 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 19.05405184103676}
75
+ 08/13/2023 17:42:51 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 20.369355928033364}
76
+ 08/13/2023 17:53:04 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 20.83913646867499}
77
+ 08/13/2023 18:03:09 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 21.37904589790436}
78
+ 08/13/2023 18:13:24 - INFO - __main__ - evaluation result: {'accuracy': 0.9501243829727173, 'similarity': 0.5612009167671204, 'fluency': 0.8357802033424377, 'joint': 0.4501223564147949, 'chrF': 21.84488138786117}