Instructions to use google/pegasus-reddit_tifu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/pegasus-reddit_tifu 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-reddit_tifu")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/pegasus-reddit_tifu") model = AutoModelForSeq2SeqLM.from_pretrained("google/pegasus-reddit_tifu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding generation config file(s)
4765a0b
-
Update config.json
b786930
-
Update pytorch_model.bin
32d55df
-
Update README.md
2bccce8 -
Update README.md
7475a4c -
Update README.md
7e8cd8c
-
Update config.json
df33f0b -
Update special_tokens_map.json
3d58a96 -
Update spiece.model
7abac7b -
Update tokenizer_config.json
8bd0464 -
initial commit
e091bd7