EdinburghNLP/orange_sum
Updated • 417 • 5
How to use Benjiccee/BART-CNN-Orangesum 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="Benjiccee/BART-CNN-Orangesum") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Benjiccee/BART-CNN-Orangesum")
model = AutoModelForSeq2SeqLM.from_pretrained("Benjiccee/BART-CNN-Orangesum")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Benjiccee/BART-CNN-Orangesum")
model = AutoModelForSeq2SeqLM.from_pretrained("Benjiccee/BART-CNN-Orangesum")This model is a fine-tuned version of facebook/bart-large-cnn on the orange_sum dataset. It achieves the following results on the evaluation set:
It aims at improving the quality of the summary generated on French texts
this is a fine tuning of the model 'facebook/bart-large-cnn' on the 'orange_sum' dataset gives better results in French while keeping the intrinsic qualities of the BART model
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.9062 | 0.37 | 500 | 1.8412 |
| 1.6596 | 0.75 | 1000 | 1.6370 |
# 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="Benjiccee/BART-CNN-Orangesum")