Downloads · 30 days
13
4% of all-time downloads
d0p3/t5-small-dailycnn
t5-small-dailycnn is a text generation model from d0p3. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
13
4% of all-time downloads
All-time downloads
354
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
Description
This model is a fine-tuned version of the T5-small model for article and news summarization. It has been trained on the CNN/Dailymail dataset to generate concise summaries of news articles.
How to Use
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("d0p3/t5-small-dailycnn")
model = AutoModelForSeq2SeqLM.from_pretrained("d0p3/t5-small-dailycnn")
text = """
(Your long article text to summarize goes here.)
"""
inputs = tokenizer("summarize: " + text, return_tensors="pt", max_length=512, truncation=True)
summary_ids = model.generate(inputs["input_ids"], num_beams=4, max_length=128)
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
print(summary)
Training Details
Limitations
Ethical Considerations
Please use this model responsibly. Consider how the generated summaries may inadvertently perpetuate harmful stereotypes or misinformation.
Contact
Feel free to leave feedback or issues on this Hugging Face repository.
Key Points:
Let me know if you'd like any modifications or additions to tailor this README further!