Venkatesh4342
commited on
Commit
•
73eea7c
1
Parent(s):
af62a6e
End of training
Browse files- README.md +84 -0
- generation_config.json +12 -0
README.md
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: google/pegasus-cnn_dailymail
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- samsum
|
7 |
+
metrics:
|
8 |
+
- rouge
|
9 |
+
model-index:
|
10 |
+
- name: pegasus-samsum
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Sequence-to-sequence Language Modeling
|
14 |
+
type: text2text-generation
|
15 |
+
dataset:
|
16 |
+
name: samsum
|
17 |
+
type: samsum
|
18 |
+
config: samsum
|
19 |
+
split: validation
|
20 |
+
args: samsum
|
21 |
+
metrics:
|
22 |
+
- name: Rouge1
|
23 |
+
type: rouge
|
24 |
+
value: 0.4616
|
25 |
+
---
|
26 |
+
|
27 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
28 |
+
should probably proofread and complete it, then remove this comment. -->
|
29 |
+
|
30 |
+
# pegasus-samsum
|
31 |
+
|
32 |
+
This model is a fine-tuned version of [google/pegasus-cnn_dailymail](https://huggingface.co/google/pegasus-cnn_dailymail) on the samsum dataset.
|
33 |
+
It achieves the following results on the evaluation set:
|
34 |
+
- Loss: 1.3665
|
35 |
+
- Rouge1: 0.4616
|
36 |
+
- Rouge2: 0.2275
|
37 |
+
- Rougel: 0.3725
|
38 |
+
- Rougelsum: 0.3738
|
39 |
+
- Gen Len: 35.6667
|
40 |
+
|
41 |
+
## Model description
|
42 |
+
|
43 |
+
More information needed
|
44 |
+
|
45 |
+
## Intended uses & limitations
|
46 |
+
|
47 |
+
More information needed
|
48 |
+
|
49 |
+
## Training and evaluation data
|
50 |
+
|
51 |
+
More information needed
|
52 |
+
|
53 |
+
## Training procedure
|
54 |
+
|
55 |
+
### Training hyperparameters
|
56 |
+
|
57 |
+
The following hyperparameters were used during training:
|
58 |
+
- learning_rate: 5.750420024069848e-05
|
59 |
+
- train_batch_size: 8
|
60 |
+
- eval_batch_size: 8
|
61 |
+
- seed: 42
|
62 |
+
- gradient_accumulation_steps: 16
|
63 |
+
- total_train_batch_size: 128
|
64 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
65 |
+
- lr_scheduler_type: linear
|
66 |
+
- lr_scheduler_warmup_steps: 500
|
67 |
+
- num_epochs: 4
|
68 |
+
|
69 |
+
### Training results
|
70 |
+
|
71 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
72 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|:-------:|
|
73 |
+
| 2.2186 | 0.87 | 100 | 1.7567 | 0.3571 | 0.1437 | 0.2779 | 0.2797 | 46.7733 |
|
74 |
+
| 1.7368 | 1.74 | 200 | 1.4933 | 0.4347 | 0.2053 | 0.3459 | 0.3461 | 35.4533 |
|
75 |
+
| 1.6744 | 2.61 | 300 | 1.4059 | 0.4547 | 0.2179 | 0.3629 | 0.3634 | 35.68 |
|
76 |
+
| 1.5978 | 3.47 | 400 | 1.3665 | 0.4616 | 0.2275 | 0.3725 | 0.3738 | 35.6667 |
|
77 |
+
|
78 |
+
|
79 |
+
### Framework versions
|
80 |
+
|
81 |
+
- Transformers 4.33.1
|
82 |
+
- Pytorch 2.0.1+cu118
|
83 |
+
- Datasets 2.14.5
|
84 |
+
- Tokenizers 0.13.3
|
generation_config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 0,
|
3 |
+
"decoder_start_token_id": 0,
|
4 |
+
"eos_token_id": 1,
|
5 |
+
"forced_eos_token_id": 1,
|
6 |
+
"length_penalty": 0.8,
|
7 |
+
"max_length": 128,
|
8 |
+
"min_length": 32,
|
9 |
+
"num_beams": 8,
|
10 |
+
"pad_token_id": 0,
|
11 |
+
"transformers_version": "4.33.1"
|
12 |
+
}
|