Instructions to use google/pegasus-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pegasus-large 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-large")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/pegasus-large") model = AutoModelForSeq2SeqLM.from_pretrained("google/pegasus-large") - Inference
- Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 4d42aaa02b6962688c9bb4846e7260c35ed9b1bfd834e3f9ec619bbc49c454c6
- Size of remote file:
- 2.28 GB
- SHA256:
- 0cefc7e73b7854284c67f1f691f15fb5c033dd8f0639cc64c0f68d39d6230750
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.