Instructions to use 0x70DA/pegasus-cnn_dailymail with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0x70DA/pegasus-cnn_dailymail 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="0x70DA/pegasus-cnn_dailymail", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("0x70DA/pegasus-cnn_dailymail") model = AutoModelForSeq2SeqLM.from_pretrained("0x70DA/pegasus-cnn_dailymail", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#7 opened over 1 year ago
by
SFconvertbot
Add evaluation results on the section config and train split of ccdv/pubmed-summarization
#6 opened almost 3 years ago
by
autoevaluator
Add evaluation results on the samsum config and test split of samsum
#5 opened almost 3 years ago
by
autoevaluator
Add evaluation results on the 3.0.0 config and test split of cnn_dailymail
#4 opened almost 3 years ago
by
autoevaluator
Add evaluation results on the 3.0.0 config and test split of cnn_dailymail
#3 opened almost 3 years ago
by
autoevaluator
Add evaluation results on the 3.0.0 config and test split of cnn_dailymail
#2 opened almost 3 years ago
by
autoevaluator
Add evaluation results on the 3.0.0 config and test split of cnn_dailymail
#1 opened almost 3 years ago
by
autoevaluator