Instructions to use praf-choub/bart-CaPE-cnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use praf-choub/bart-CaPE-cnn 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="praf-choub/bart-CaPE-cnn")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("praf-choub/bart-CaPE-cnn") model = AutoModelForSeq2SeqLM.from_pretrained("praf-choub/bart-CaPE-cnn", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
0757e02
-
Create README.md
7db28de -
Upload pytorch_model.bin with git-lfs
9e4b008 -
Upload vocab.json
9af7cd8 -
Upload tokenizer.json
a4b6e40 -
Upload tokenizer_config.json
9bc072e -
Upload special_tokens_map.json
fa01aea -
Upload merges.txt
b7bae06 -
Upload config.json
5f4462f -
initial commit
d79dfa4