Downloads · 30 days
0
MuntasirHossain/flan-t5-large-samsum-qlora-merged
flan-t5-large-samsum-qlora-merged is a summarization model from MuntasirHossain. Use it when you need a shorter version of a longer text. It is set up for peft. The card lists the license as apache-2.0.
Parameter-efficient fine-tuning (PEFT) with QLoRA was employed to fine-tune the base google/flan-t5-large model on the samsum dataset containing dialoges. After the fine-tuning, the PEFT model adapter was merged with…
Downloads · 30 days
0
Access
Public
Updated Mar 12, 2024
Parameters
784M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
How the weights are stored.
I8579M · 74%
From the Hugging Face model README
Parameter-efficient fine-tuning (PEFT) with QLoRA was employed to fine-tune the base google/flan-t5-large model on the samsum dataset containing dialoges. After the fine-tuning, the PEFT model adapter was merged with the base model. The model is intended for generative summarization tasks and achieved the following scores on the test dataset:
Load the model:
from transformers import pipeline
pipeline_model = pipeline("summarization", model="MuntasirHossain/flan-t5-large-samsum-qlora-merged")
summary = pipeline_model(text, max_new_tokens = 50)
print(summary[0]['summary_text'])
Example Inference:
# random sample text from the samsum test dataset
text = """
Emma: Hi, we're going with Peter to Amiens tomorrow.
Daniel: oh! Cool.
Emma: Wanna join?
Daniel: Sure, I'm fed up with Paris.
Emma: We're too. The noise, traffic etc. Would be nice to see some countrysides.
Daniel: I don't think Amiens is exactly countrysides though :P
Emma: Nope. Hahahah. But not a megalopolis either!
Daniel: Right! Let's do it!
Emma: But we should leave early. The days are shorter now.
Daniel: Yes, the stupid winter time.
Emma: Exactly!
Daniel: Where should we meet then?
Emma: Come to my place by 9am.
Daniel: oohhh. It means I have to get up before 7!
Emma: Yup. The early bird gets the worm (in Amiens).
Daniel: You sound like my grandmother.
Emma: HAHAHA. I'll even add: no parties tonight, no drinking dear Daniel
Daniel: I really hope Amiens is worth it!
"""
summary = pipeline_model(text, max_new_tokens = 50)
print(summary[0]['summary_text'])
Emma and Peter are going to Amiens tomorrow. Daniel will join them. They will meet at Emma's place by 9 am. They will not have any parties tonight.
The following hyperparameters were used during training: