Instructions to use ARTeLab/mbart-summarization-ilpost with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ARTeLab/mbart-summarization-ilpost 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="ARTeLab/mbart-summarization-ilpost")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ARTeLab/mbart-summarization-ilpost") model = AutoModelForSeq2SeqLM.from_pretrained("ARTeLab/mbart-summarization-ilpost", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 341 Bytes
e10840f | 1 2 3 4 5 6 7 8 9 10 11 12 | {
"predict_gen_len": 39.8843,
"predict_loss": 2.3640177249908447,
"predict_rouge1": 38.9101,
"predict_rouge2": 21.384,
"predict_rougeL": 32.0517,
"predict_rougeLsum": 35.0743,
"predict_runtime": 3307.2928,
"predict_samples": 4400,
"predict_samples_per_second": 1.33,
"predict_steps_per_second": 1.33
} |