Downloads · 30 days
25
21% of all-time downloads
Fathi7ma/news_text_summarizer
news_text_summarizer is a summarization model from Fathi7ma. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of sshleifer/distilbart-cnn-12-6, trained to generate concise and fluent summaries of general English text — including news articles, essays, stories, and blog posts.
Downloads · 30 days
25
21% of all-time downloads
All-time downloads
119
Public
Parameters
306M
1.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.2 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of sshleifer/distilbart-cnn-12-6, trained to generate concise and fluent summaries of general English text — including news articles, essays, stories, and blog posts.
This model is suitable for lightweight summarization tasks on laptops or limited-resource machines.
from transformers import pipeline
summarizer = pipeline("summarization", model="Fathi7ma/general_text_summarizer_cpu")
text = """ Climate change continues to affect weather patterns across the globe. Scientists warn that without immediate action, rising temperatures may lead to irreversible damage to ecosystems and human livelihoods. """
summary = summarizer(text, max_length=80, min_length=25, do_sample=False) print(summary[0]['summary_text'])
This model can summarize: • News articles • Research abstracts • Reports and blogs • Long paragraphs of general English text
Example domains: general news, education, business summaries, and everyday content.
• Dataset: A subset of CNN/DailyMail, filtered and balanced for general summarization.
• Approx. 10,000 samples used for CPU-efficient fine-tuning.
• Texts are trimmed and normalized for readability.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|---|---|---|---|---|---|---|---|
| 2.2534 | 1.0 | 600 | 2.1023 | 36.61 | 16.51 | 26.24 | 33.45 |