Instructions to use sshleifer/distilbart-cnn-6-6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sshleifer/distilbart-cnn-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-cnn-6-6")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("sshleifer/distilbart-cnn-6-6") model = AutoModelForSeq2SeqLM.from_pretrained("sshleifer/distilbart-cnn-6-6", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
add flax model
d2fde4c
-
addition of Rust model
a7a3d34
-
Update config.json
2651ddc
-
Update README.md
37bce8e
-
Update README.md
61aa218 -
Update README.md
9a4f0c3 -
Update README.md
a316ad4
-
Update README.md
8a8f617
-
Update config.json
14e5373 -
Update merges.txt
bd210b6 -
Update pytorch_model.bin
7a8d4d7 -
Update tokenizer_config.json
7437419 -
Update vocab.json
ea2be8b -
Update config.json
1d2f1fb -
Update merges.txt
0f4ac54 -
Update tokenizer_config.json
2f8dcd1 -
Update vocab.json
c5c828e -
initial commit
cc83793