Instructions to use google/pegasus-newsroom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pegasus-newsroom 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-newsroom")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/pegasus-newsroom") model = AutoModelForSeq2SeqLM.from_pretrained("google/pegasus-newsroom", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding generation config file(s)
e073742
-
Update config.json
0c90cf8
-
Update pytorch_model.bin
612ea73
-
Update README.md
a6f6f0e -
Update README.md
c4d4d9f -
Update README.md
06f88c6
-
Update config.json
4c2ac7d -
Update special_tokens_map.json
ea9406f -
Update spiece.model
aa0edd8 -
Update tokenizer_config.json
c734d81 -
initial commit
06c3c40