Instructions to use google/pegasus-arxiv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pegasus-arxiv 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-arxiv")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/pegasus-arxiv") model = AutoModelForSeq2SeqLM.from_pretrained("google/pegasus-arxiv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding generation config file(s)
3f02921
-
Update config.json
8d68b51
-
Update pytorch_model.bin
942ae0c -
Update config.json
c570c51 -
Update config.json
13a62cc
-
Update README.md
f71642e -
Update README.md
7515c52 -
Update README.md
ba65c77
-
Update config.json
96edd43 -
Update special_tokens_map.json
b29a6e0 -
Update spiece.model
e239a13 -
Update tokenizer_config.json
d275783 -
initial commit
4fb6e02