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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/pegasus-large") model = AutoModelForSeq2SeqLM.from_pretrained("google/pegasus-large", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from google/pegasus-large: direct link, hf CLI and curl.
- Browser
- Download file 2.28 GB
-
https://huggingface.co/google/pegasus-large/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://google/pegasus-large/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/google/pegasus-large/resolve/main/pytorch_model.bin
2.28 GB
- Xet hash:
- 696d9dc0fa5fd57628b4f123008920db0429a85a96f148c5f337e026f645c039
- Size of remote file:
- 2.28 GB
- SHA256:
- a5a41538cce7eef11d2d126df0fc08eaee806b00074b16de49f9a230b8394778
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.