Instructions to use google/pegasus-cnn_dailymail with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/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="google/pegasus-cnn_dailymail")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/pegasus-cnn_dailymail") model = AutoModelForSeq2SeqLM.from_pretrained("google/pegasus-cnn_dailymail") - Inference
- Notebooks
- Google Colab
- Kaggle
Update License and Dataset field in the model card
#11
by lucbelanger - opened
Since the google-research pegasus code is licensed under Apache 2.0 I assume the models are also Apache 2.0. If it's not the case can you provide the proper license since I want to use this model to do some evaluation and my organization wants to know the license terms before I can download and use the model.
I also update the datasets field since it's fine-tuned with the cnn dailymail corpus.