abisee/cnn_dailymail
Viewer • Updated • 936k • 180k • 344
How to use ai-maker-space/Transformers-Workshop-BART-Summarization 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="ai-maker-space/Transformers-Workshop-BART-Summarization") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("ai-maker-space/Transformers-Workshop-BART-Summarization")
model = AutoModelForSeq2SeqLM.from_pretrained("ai-maker-space/Transformers-Workshop-BART-Summarization")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("ai-maker-space/Transformers-Workshop-BART-Summarization")
model = AutoModelForSeq2SeqLM.from_pretrained("ai-maker-space/Transformers-Workshop-BART-Summarization")This model is a fine-tuned version of facebook/bart-base on the None 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.6767 | 1.0 | 63 | 1.8911 | 0.1745 | 0.0915 | 0.1536 | 0.1644 |
| 2.0691 | 2.0 | 126 | 1.5904 | 0.1777 | 0.1003 | 0.1579 | 0.1677 |
| 1.8047 | 3.0 | 189 | 1.3652 | 0.1778 | 0.1029 | 0.1587 | 0.1663 |
| 1.6345 | 4.0 | 252 | 1.2317 | 0.1959 | 0.1226 | 0.1751 | 0.1842 |
| 1.4837 | 5.0 | 315 | 1.1099 | 0.2015 | 0.1265 | 0.1796 | 0.1911 |
| 1.3904 | 6.0 | 378 | 1.0267 | 0.2004 | 0.1278 | 0.1799 | 0.1893 |
| 1.2876 | 7.0 | 441 | 0.9788 | 0.1978 | 0.1307 | 0.1784 | 0.1878 |
| 1.2578 | 8.0 | 504 | 0.9584 | 0.1977 | 0.1321 | 0.1792 | 0.1884 |
Base model
facebook/bart-base
# 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="ai-maker-space/Transformers-Workshop-BART-Summarization")