Instructions to use sshleifer/distilbart-xsum-6-6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sshleifer/distilbart-xsum-6-6 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="sshleifer/distilbart-xsum-6-6")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("sshleifer/distilbart-xsum-6-6") model = AutoModelForSeq2SeqLM.from_pretrained("sshleifer/distilbart-xsum-6-6", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
add flax model
9a31391
-
Update config.json
c811332
-
Update README.md
857cd4c
-
Update README.md
bd8dc7a -
Update README.md
1a90bea -
Update README.md
b2f0755
-
Update README.md
693f952
-
Update config.json
ef98af8 -
Update merges.txt
1727090 -
Update pytorch_model.bin
ee4bc55 -
Update tokenizer_config.json
d02de09 -
Update vocab.json
2af12fc
-
Update config.json
4f377ac -
initial commit
3da0b30