Downloads · 30 days
22
0% of all-time downloads
oguuzhansahin/flan-t5-large-samsum
flan-t5-large-samsum is a summarization model from oguuzhansahin. Use it when you need a shorter version of a longer text. It is set up for transformers.
The following hyperparameters were used during training: - learningrate: 5e-05 - trainbatchsize: 4 - evalbatchsize: 4 - seed: 2023 - numepochs: 5 - MAXLENGTHDIALOGUE = 768 - MAXLENGTHSUMMARY = 128
Downloads · 30 days
22
0% of all-time downloads
All-time downloads
4.6K
Public
Repo size
12.5 GB
Likes
2
Public
Click a slice to open those files.
.pt6.3 GB · 67%
From the Hugging Face model README
from transformers import pipeline
summarizer = pipeline("summarization", model="oguuzhansahin/flan-t5-large-samsum", device=0)
sample_dialogue = "Barbara: got everything?
Haylee: yeah almost
Haylee: i'm in dairy section
Haylee: but can't find this youghurt u wanted
Barbara: the coconut milk one? Haylee: yeah
Barbara: hmmm yeah that's a mystery. cause it's not dairy but it's yoghurt xD
Haylee: exactly xD Haylee: ok i asked sb. they put it next to eggs lol
Barbara: lol"
res = summarizer(sample)
print(res)
[{'summary_text': "Haylee is in the dairy section. She can't find the coconut milk yog"}]
The following hyperparameters were used during training:
| Epoch | Training Loss | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|---|---|---|---|---|---|---|
| 1 | 1.182841 | 1.202841 | 48.847000 | 25.428200 | 41.734300 | 44.999900 |
| 2 | 1.029400 | 1.217544 | 49.175000 | 25.914800 | 41.729000 | 45.258300 |
| 3 | 0.902600 | 1.239609 | 49.177600 | 25.581100 | 41.680700 | 44.997300 |
| 4 | 0.808000 | 1.274836 | 49.310200 | 25.902800 | 42.103600 | 45.485000 |
| 5 | 0.748200 | 1.304448 | 49.154700 | 25.520400 | 41.904900 | 45.234200 |