Kyjac commited on
Commit
d6cc0f3
1 Parent(s): 2e36c7b

Upload 12 files

Browse files
README.md CHANGED
@@ -1,3 +1,73 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - samsum
7
+ metrics:
8
+ - rouge
9
+ model-index:
10
+ - name: tst-summarization
11
+ results:
12
+ - task:
13
+ name: Summarization
14
+ type: summarization
15
+ dataset:
16
+ name: samsum
17
+ type: samsum
18
+ config: samsum
19
+ split: train
20
+ args: samsum
21
+ metrics:
22
+ - name: Rouge1
23
+ type: rouge
24
+ value: 44.9509
25
  ---
26
+
27
+
28
+ # tst-summarization
29
+
30
+ This model is a fine-tuned version of [t5-small](https://huggingface.co/t5-small) on the samsum dataset.
31
+ It achieves the following results on the evaluation set:
32
+ - Loss: 1.6972
33
+ - Rouge1: 44.9509
34
+ - Rouge2: 21.7162
35
+ - Rougel: 37.7582
36
+ - Rougelsum: 41.7239
37
+ - Gen Len: 22.7714
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 5e-05
57
+ - train_batch_size: 4
58
+ - eval_batch_size: 4
59
+ - seed: 42
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - num_epochs: 3.0
63
+
64
+ ### Training results
65
+
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.25.1
71
+ - Pytorch 1.13.1+cpu
72
+ - Datasets 2.8.0
73
+ - Tokenizers 0.13.2
all_results.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_gen_len": 22.771393643031786,
4
+ "eval_loss": 1.6972110271453857,
5
+ "eval_rouge1": 44.9509,
6
+ "eval_rouge2": 21.7162,
7
+ "eval_rougeL": 37.7582,
8
+ "eval_rougeLsum": 41.7239,
9
+ "eval_runtime": 499.5513,
10
+ "eval_samples": 818,
11
+ "eval_samples_per_second": 1.637,
12
+ "eval_steps_per_second": 0.41,
13
+ "train_loss": 1.8986893418320963,
14
+ "train_runtime": 35727.9633,
15
+ "train_samples": 14731,
16
+ "train_samples_per_second": 1.237,
17
+ "train_steps_per_second": 0.309
18
+ }
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "t5-small",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "d_ff": 2048,
7
+ "d_kv": 64,
8
+ "d_model": 512,
9
+ "decoder_start_token_id": 0,
10
+ "dense_act_fn": "relu",
11
+ "dropout_rate": 0.1,
12
+ "eos_token_id": 1,
13
+ "feed_forward_proj": "relu",
14
+ "initializer_factor": 1.0,
15
+ "is_encoder_decoder": true,
16
+ "is_gated_act": false,
17
+ "layer_norm_epsilon": 1e-06,
18
+ "model_type": "t5",
19
+ "n_positions": 512,
20
+ "num_decoder_layers": 6,
21
+ "num_heads": 8,
22
+ "num_layers": 6,
23
+ "output_past": true,
24
+ "pad_token_id": 0,
25
+ "relative_attention_max_distance": 128,
26
+ "relative_attention_num_buckets": 32,
27
+ "task_specific_params": {
28
+ "summarization": {
29
+ "early_stopping": true,
30
+ "length_penalty": 2.0,
31
+ "max_length": 200,
32
+ "min_length": 30,
33
+ "no_repeat_ngram_size": 3,
34
+ "num_beams": 4,
35
+ "prefix": "summarize: "
36
+ },
37
+ "translation_en_to_de": {
38
+ "early_stopping": true,
39
+ "max_length": 300,
40
+ "num_beams": 4,
41
+ "prefix": "translate English to German: "
42
+ },
43
+ "translation_en_to_fr": {
44
+ "early_stopping": true,
45
+ "max_length": 300,
46
+ "num_beams": 4,
47
+ "prefix": "translate English to French: "
48
+ },
49
+ "translation_en_to_ro": {
50
+ "early_stopping": true,
51
+ "max_length": 300,
52
+ "num_beams": 4,
53
+ "prefix": "translate English to Romanian: "
54
+ }
55
+ },
56
+ "torch_dtype": "float32",
57
+ "transformers_version": "4.25.1",
58
+ "use_cache": true,
59
+ "vocab_size": 32128
60
+ }
eval_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_gen_len": 22.771393643031786,
4
+ "eval_loss": 1.6972110271453857,
5
+ "eval_rouge1": 44.9509,
6
+ "eval_rouge2": 21.7162,
7
+ "eval_rougeL": 37.7582,
8
+ "eval_rougeLsum": 41.7239,
9
+ "eval_runtime": 499.5513,
10
+ "eval_samples": 818,
11
+ "eval_samples_per_second": 1.637,
12
+ "eval_steps_per_second": 0.41
13
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6164c212a1425a049e6a8fc60ad8f2094314b54bd228eed0f0e8341db89b3ec
3
+ size 242069785
special_tokens_map.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<extra_id_0>",
4
+ "<extra_id_1>",
5
+ "<extra_id_2>",
6
+ "<extra_id_3>",
7
+ "<extra_id_4>",
8
+ "<extra_id_5>",
9
+ "<extra_id_6>",
10
+ "<extra_id_7>",
11
+ "<extra_id_8>",
12
+ "<extra_id_9>",
13
+ "<extra_id_10>",
14
+ "<extra_id_11>",
15
+ "<extra_id_12>",
16
+ "<extra_id_13>",
17
+ "<extra_id_14>",
18
+ "<extra_id_15>",
19
+ "<extra_id_16>",
20
+ "<extra_id_17>",
21
+ "<extra_id_18>",
22
+ "<extra_id_19>",
23
+ "<extra_id_20>",
24
+ "<extra_id_21>",
25
+ "<extra_id_22>",
26
+ "<extra_id_23>",
27
+ "<extra_id_24>",
28
+ "<extra_id_25>",
29
+ "<extra_id_26>",
30
+ "<extra_id_27>",
31
+ "<extra_id_28>",
32
+ "<extra_id_29>",
33
+ "<extra_id_30>",
34
+ "<extra_id_31>",
35
+ "<extra_id_32>",
36
+ "<extra_id_33>",
37
+ "<extra_id_34>",
38
+ "<extra_id_35>",
39
+ "<extra_id_36>",
40
+ "<extra_id_37>",
41
+ "<extra_id_38>",
42
+ "<extra_id_39>",
43
+ "<extra_id_40>",
44
+ "<extra_id_41>",
45
+ "<extra_id_42>",
46
+ "<extra_id_43>",
47
+ "<extra_id_44>",
48
+ "<extra_id_45>",
49
+ "<extra_id_46>",
50
+ "<extra_id_47>",
51
+ "<extra_id_48>",
52
+ "<extra_id_49>",
53
+ "<extra_id_50>",
54
+ "<extra_id_51>",
55
+ "<extra_id_52>",
56
+ "<extra_id_53>",
57
+ "<extra_id_54>",
58
+ "<extra_id_55>",
59
+ "<extra_id_56>",
60
+ "<extra_id_57>",
61
+ "<extra_id_58>",
62
+ "<extra_id_59>",
63
+ "<extra_id_60>",
64
+ "<extra_id_61>",
65
+ "<extra_id_62>",
66
+ "<extra_id_63>",
67
+ "<extra_id_64>",
68
+ "<extra_id_65>",
69
+ "<extra_id_66>",
70
+ "<extra_id_67>",
71
+ "<extra_id_68>",
72
+ "<extra_id_69>",
73
+ "<extra_id_70>",
74
+ "<extra_id_71>",
75
+ "<extra_id_72>",
76
+ "<extra_id_73>",
77
+ "<extra_id_74>",
78
+ "<extra_id_75>",
79
+ "<extra_id_76>",
80
+ "<extra_id_77>",
81
+ "<extra_id_78>",
82
+ "<extra_id_79>",
83
+ "<extra_id_80>",
84
+ "<extra_id_81>",
85
+ "<extra_id_82>",
86
+ "<extra_id_83>",
87
+ "<extra_id_84>",
88
+ "<extra_id_85>",
89
+ "<extra_id_86>",
90
+ "<extra_id_87>",
91
+ "<extra_id_88>",
92
+ "<extra_id_89>",
93
+ "<extra_id_90>",
94
+ "<extra_id_91>",
95
+ "<extra_id_92>",
96
+ "<extra_id_93>",
97
+ "<extra_id_94>",
98
+ "<extra_id_95>",
99
+ "<extra_id_96>",
100
+ "<extra_id_97>",
101
+ "<extra_id_98>",
102
+ "<extra_id_99>"
103
+ ],
104
+ "eos_token": "</s>",
105
+ "pad_token": "<pad>",
106
+ "unk_token": "<unk>"
107
+ }
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86
3
+ size 791656
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<extra_id_0>",
4
+ "<extra_id_1>",
5
+ "<extra_id_2>",
6
+ "<extra_id_3>",
7
+ "<extra_id_4>",
8
+ "<extra_id_5>",
9
+ "<extra_id_6>",
10
+ "<extra_id_7>",
11
+ "<extra_id_8>",
12
+ "<extra_id_9>",
13
+ "<extra_id_10>",
14
+ "<extra_id_11>",
15
+ "<extra_id_12>",
16
+ "<extra_id_13>",
17
+ "<extra_id_14>",
18
+ "<extra_id_15>",
19
+ "<extra_id_16>",
20
+ "<extra_id_17>",
21
+ "<extra_id_18>",
22
+ "<extra_id_19>",
23
+ "<extra_id_20>",
24
+ "<extra_id_21>",
25
+ "<extra_id_22>",
26
+ "<extra_id_23>",
27
+ "<extra_id_24>",
28
+ "<extra_id_25>",
29
+ "<extra_id_26>",
30
+ "<extra_id_27>",
31
+ "<extra_id_28>",
32
+ "<extra_id_29>",
33
+ "<extra_id_30>",
34
+ "<extra_id_31>",
35
+ "<extra_id_32>",
36
+ "<extra_id_33>",
37
+ "<extra_id_34>",
38
+ "<extra_id_35>",
39
+ "<extra_id_36>",
40
+ "<extra_id_37>",
41
+ "<extra_id_38>",
42
+ "<extra_id_39>",
43
+ "<extra_id_40>",
44
+ "<extra_id_41>",
45
+ "<extra_id_42>",
46
+ "<extra_id_43>",
47
+ "<extra_id_44>",
48
+ "<extra_id_45>",
49
+ "<extra_id_46>",
50
+ "<extra_id_47>",
51
+ "<extra_id_48>",
52
+ "<extra_id_49>",
53
+ "<extra_id_50>",
54
+ "<extra_id_51>",
55
+ "<extra_id_52>",
56
+ "<extra_id_53>",
57
+ "<extra_id_54>",
58
+ "<extra_id_55>",
59
+ "<extra_id_56>",
60
+ "<extra_id_57>",
61
+ "<extra_id_58>",
62
+ "<extra_id_59>",
63
+ "<extra_id_60>",
64
+ "<extra_id_61>",
65
+ "<extra_id_62>",
66
+ "<extra_id_63>",
67
+ "<extra_id_64>",
68
+ "<extra_id_65>",
69
+ "<extra_id_66>",
70
+ "<extra_id_67>",
71
+ "<extra_id_68>",
72
+ "<extra_id_69>",
73
+ "<extra_id_70>",
74
+ "<extra_id_71>",
75
+ "<extra_id_72>",
76
+ "<extra_id_73>",
77
+ "<extra_id_74>",
78
+ "<extra_id_75>",
79
+ "<extra_id_76>",
80
+ "<extra_id_77>",
81
+ "<extra_id_78>",
82
+ "<extra_id_79>",
83
+ "<extra_id_80>",
84
+ "<extra_id_81>",
85
+ "<extra_id_82>",
86
+ "<extra_id_83>",
87
+ "<extra_id_84>",
88
+ "<extra_id_85>",
89
+ "<extra_id_86>",
90
+ "<extra_id_87>",
91
+ "<extra_id_88>",
92
+ "<extra_id_89>",
93
+ "<extra_id_90>",
94
+ "<extra_id_91>",
95
+ "<extra_id_92>",
96
+ "<extra_id_93>",
97
+ "<extra_id_94>",
98
+ "<extra_id_95>",
99
+ "<extra_id_96>",
100
+ "<extra_id_97>",
101
+ "<extra_id_98>",
102
+ "<extra_id_99>"
103
+ ],
104
+ "eos_token": "</s>",
105
+ "extra_ids": 100,
106
+ "model_max_length": 512,
107
+ "name_or_path": "t5-small",
108
+ "pad_token": "<pad>",
109
+ "special_tokens_map_file": null,
110
+ "tokenizer_class": "T5Tokenizer",
111
+ "unk_token": "<unk>"
112
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 1.8986893418320963,
4
+ "train_runtime": 35727.9633,
5
+ "train_samples": 14731,
6
+ "train_samples_per_second": 1.237,
7
+ "train_steps_per_second": 0.309
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 11049,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.14,
12
+ "learning_rate": 4.7737351796542676e-05,
13
+ "loss": 2.2042,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.27,
18
+ "learning_rate": 4.547470359308535e-05,
19
+ "loss": 2.087,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.41,
24
+ "learning_rate": 4.321205538962802e-05,
25
+ "loss": 2.0242,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.54,
30
+ "learning_rate": 4.09494071861707e-05,
31
+ "loss": 1.978,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.68,
36
+ "learning_rate": 3.868675898271337e-05,
37
+ "loss": 1.9701,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.81,
42
+ "learning_rate": 3.6424110779256044e-05,
43
+ "loss": 1.9814,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.95,
48
+ "learning_rate": 3.416146257579871e-05,
49
+ "loss": 1.9524,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 1.09,
54
+ "learning_rate": 3.189881437234139e-05,
55
+ "loss": 1.9124,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 1.22,
60
+ "learning_rate": 2.963616616888406e-05,
61
+ "loss": 1.8723,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 1.36,
66
+ "learning_rate": 2.7373517965426738e-05,
67
+ "loss": 1.8591,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 1.49,
72
+ "learning_rate": 2.511086976196941e-05,
73
+ "loss": 1.8822,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 1.63,
78
+ "learning_rate": 2.2848221558512085e-05,
79
+ "loss": 1.8402,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 1.76,
84
+ "learning_rate": 2.058557335505476e-05,
85
+ "loss": 1.8634,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 1.9,
90
+ "learning_rate": 1.8322925151597432e-05,
91
+ "loss": 1.8638,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 2.04,
96
+ "learning_rate": 1.6060276948140106e-05,
97
+ "loss": 1.8548,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 2.17,
102
+ "learning_rate": 1.3797628744682778e-05,
103
+ "loss": 1.8085,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 2.31,
108
+ "learning_rate": 1.1534980541225452e-05,
109
+ "loss": 1.8086,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 2.44,
114
+ "learning_rate": 9.272332337768125e-06,
115
+ "loss": 1.809,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 2.58,
120
+ "learning_rate": 7.009684134310799e-06,
121
+ "loss": 1.8238,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 2.72,
126
+ "learning_rate": 4.747035930853471e-06,
127
+ "loss": 1.7984,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 2.85,
132
+ "learning_rate": 2.4843877273961445e-06,
133
+ "loss": 1.7959,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 2.99,
138
+ "learning_rate": 2.21739523938818e-07,
139
+ "loss": 1.7938,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 3.0,
144
+ "step": 11049,
145
+ "total_flos": 3178708656685056.0,
146
+ "train_loss": 1.8986893418320963,
147
+ "train_runtime": 35727.9633,
148
+ "train_samples_per_second": 1.237,
149
+ "train_steps_per_second": 0.309
150
+ }
151
+ ],
152
+ "max_steps": 11049,
153
+ "num_train_epochs": 3,
154
+ "total_flos": 3178708656685056.0,
155
+ "trial_name": null,
156
+ "trial_params": null
157
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd9a89c6ebbd8e47ba52737012f367c6beb08f81f9ee6f271467eaf73ffc4b27
3
+ size 3515