alexfabbri/multi_news
Updated • 5.82k • 79
How to use KostiuchenkoArtem/bart_large_multi_modified 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="KostiuchenkoArtem/bart_large_multi_modified") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("KostiuchenkoArtem/bart_large_multi_modified")
model = AutoModelForSeq2SeqLM.from_pretrained("KostiuchenkoArtem/bart_large_multi_modified")This model is a fine-tuned version of facebook/bart-large-cnn on 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:
| Train Loss | Validation Loss | Epoch |
|---|---|---|
| 2.2231 | 2.1476 | 0 |
| 1.8945 | 2.1223 | 1 |