abisee/cnn_dailymail
Viewer • Updated • 936k • 165k • 343
How to use Alred/t5-base-finetuned-summarization-cnn-ver2 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="Alred/t5-base-finetuned-summarization-cnn-ver2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Alred/t5-base-finetuned-summarization-cnn-ver2")
model = AutoModelForSeq2SeqLM.from_pretrained("Alred/t5-base-finetuned-summarization-cnn-ver2")This model is a fine-tuned version of t5-base on the cnn_dailymail dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Bertscore-mean-precision | Bertscore-mean-recall | Bertscore-mean-f1 | Bertscore-median-precision | Bertscore-median-recall | Bertscore-median-f1 |
|---|---|---|---|---|---|---|---|---|---|
| 1.4581 | 1.0 | 5742 | 1.6800 | 0.8904 | 0.8615 | 0.8755 | 0.8887 | 0.8597 | 0.8737 |
| 1.2356 | 2.0 | 11484 | 1.7274 | 0.8924 | 0.8626 | 0.8771 | 0.8911 | 0.8607 | 0.8753 |
| 1.1073 | 3.0 | 17226 | 1.7601 | 0.8926 | 0.8628 | 0.8772 | 0.8906 | 0.8600 | 0.8751 |