Summarization
Transformers
Safetensors
English
bart
text2text-generation
text-generation
fine-tuned-model
Eval Results (legacy)
Instructions to use Fathi7ma/news_text_summarizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fathi7ma/news_text_summarizer with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("summarization", model="Fathi7ma/news_text_summarizer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Fathi7ma/news_text_summarizer") model = AutoModelForSeq2SeqLM.from_pretrained("Fathi7ma/news_text_summarizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,14 +27,6 @@ model-index:
|
|
| 27 |
value: 26.24
|
| 28 |
---
|
| 29 |
|
| 30 |
-
|
| 31 |
-
# general_text_summarizer_cpu
|
| 32 |
-
|
| 33 |
-
This model — **`general_text_summarizer_cpu`** — is a fine-tuned version of [sshleifer/distilbart-cnn-12-6](https://huggingface.co/sshleifer/distilbart-cnn-12-6), optimized for **general-purpose text summarization** on **CPU-based environments** (e.g., laptops, M1/M2 Macs, or CPU-only servers).
|
| 34 |
-
|
| 35 |
-
It was trained using the **CNN/DailyMail** dataset, which contains a wide variety of news and article-style texts.
|
| 36 |
-
The goal was to create a model that can summarize **any type of text**, including articles, essays, scientific paragraphs, or long narratives.
|
| 37 |
-
|
| 38 |
## Model description
|
| 39 |
|
| 40 |
general_text_summarizer_cpu is a lightweight text summarization model fine-tuned on a general-purpose English dataset.
|
|
|
|
| 27 |
value: 26.24
|
| 28 |
---
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
## Model description
|
| 31 |
|
| 32 |
general_text_summarizer_cpu is a lightweight text summarization model fine-tuned on a general-purpose English dataset.
|