Downloads · 30 days
49
51% of all-time downloads
Ayush5605/dialogue-summarizer
dialogue-summarizer is a summarization model from Ayush5605. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of google/flan-t5-base (replace with flan-t5-small if that's what you used) for the task of dialogue summarization. It generates concise summaries from conversational dialogues while…
Downloads · 30 days
49
51% of all-time downloads
All-time downloads
97
Public
Parameters
60.5M
242 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors242 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of google/flan-t5-base (replace with flan-t5-small if that's what you used) for the task of dialogue summarization. It generates concise summaries from conversational dialogues while preserving the key information.
The model was fine-tuned on the SAMSum Dataset, which contains messenger-style conversations paired with human-written summaries.
Example:
Input Dialogue
Amanda: Are we still meeting tomorrow?
Jerry: Yes, let's meet at 10 AM.
Amanda: Perfect. See you then!
Generated Summary
Amanda and Jerry confirm their meeting for tomorrow at 10 AM.
Install dependencies:
pip install transformers torch
Load the model:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_name = "Ayush5605/dialogue-summarizer"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
Generate a summary:
dialogue = """
Amanda: Are we still meeting tomorrow?
Jerry: Yes, let's meet at 10 AM.
Amanda: Perfect. See you then!
"""
inputs = tokenizer(
dialogue,
return_tensors="pt",
max_length=512,
truncation=True
)
summary_ids = model.generate(
**inputs,
max_length=150,
num_beams=4,
early_stopping=True
)
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
print(summary)
This model is intended for:
Ayush Auti
If you use this model in your work, please cite the original FLAN-T5 paper and the SAMSum dataset.
@article{flan2022,
title={Scaling Instruction-Finetuned Language Models},
author={Chung, Hyung Won and others},
year={2022}
}
@inproceedings{samsum,
title={SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarization},
author={Gliwa et al.},
year={2019}
}