alexfabbri/multi_news
Updated • 6k • 79
How to use MK-5/t5-small-Abstractive-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="MK-5/t5-small-Abstractive-Summarizer") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("MK-5/t5-small-Abstractive-Summarizer")
model = AutoModelForSeq2SeqLM.from_pretrained("MK-5/t5-small-Abstractive-Summarizer")This model is a fine-tuned version of t5-small on the multi_news 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 | Rouge1 | Rouge2 | Rougel | Rougelsum |
|---|---|---|---|---|---|---|---|
| 3.118 | 1.0 | 113 | 2.7677 | 15.1343 | 4.7712 | 11.8812 | 13.386 |
| 2.7857 | 2.0 | 226 | 2.7609 | 15.7641 | 4.8705 | 12.0955 | 13.9779 |
| 2.6158 | 3.0 | 339 | 2.7494 | 15.1515 | 4.4523 | 11.7147 | 13.4181 |
| 2.4962 | 4.0 | 452 | 2.7743 | 15.344 | 5.1073 | 12.1574 | 13.7917 |
| 2.4304 | 5.0 | 565 | 2.7737 | 15.7032 | 5.2433 | 12.282 | 14.0946 |
Base model
google-t5/t5-small