alexfabbri/multi_news
Updated • 5.61k • 79
How to use cs608/multi-news-model 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="cs608/multi-news-model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("cs608/multi-news-model")
model = AutoModelForSeq2SeqLM.from_pretrained("cs608/multi-news-model")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("cs608/multi-news-model")
model = AutoModelForSeq2SeqLM.from_pretrained("cs608/multi-news-model")This model is a fine-tuned version of facebook/bart-base 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 |
|---|---|---|---|---|---|---|---|
| 2.8402 | 1.0 | 1349 | 2.5256 | 9.7548 | 3.5429 | 7.5078 | 8.9174 |
| 2.5581 | 2.0 | 2698 | 2.5011 | 9.7256 | 3.6262 | 7.5644 | 8.8904 |
| 2.3908 | 3.0 | 4047 | 2.4948 | 9.7569 | 3.5976 | 7.5209 | 8.8919 |
| 2.2744 | 4.0 | 5396 | 2.4875 | 9.9116 | 3.7758 | 7.6823 | 9.0881 |
| 2.1908 | 5.0 | 6745 | 2.4960 | 9.8777 | 3.6509 | 7.597 | 9.0495 |
# 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="cs608/multi-news-model")