Instructions to use google/pegasus-billsum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pegasus-billsum 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-billsum")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/pegasus-billsum") model = AutoModelForSeq2SeqLM.from_pretrained("google/pegasus-billsum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding generation config file(s)
2d7cdeb
-
Update config.json
6866f35
-
Update pytorch_model.bin
bfb2d51 -
Update config.json
e8260e5
-
Update README.md
65e0a33 -
Update README.md
954d6c4 -
Update README.md
3d2128e
-
Update config.json
4040f18 -
Update special_tokens_map.json
8bcb3b2 -
Update spiece.model
6d4c1ec -
Update tokenizer_config.json
67ab55c -
initial commit
6747a81