Summarization
Transformers
PyTorch
TensorFlow
JAX
Rust
Safetensors
English
bart
text2text-generation
Eval Results (legacy)
Instructions to use facebook/bart-large-cnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/bart-large-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="facebook/bart-large-cnn")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-cnn") model = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-large-cnn", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix: Replace non-executable >>> prompt style with valid syntax in example code
Verified signature## Description The original example code contains REPL-style `>>>` prompts, which violate Hugging Face's standard for executable Model Card examples. ## Changes All lines prefixed with `>>>` were replaced with syntactically valid Python code or comments. For expected outputs, lines such as: Replaced: ```python >>> [{'summary_text': 'Liana Barrientos, 39, is charged with two counts of "offering a false instrument for filing in the first degree" In total, she has been married 10 times, with nine of her marriages occurring between 1999 and 2002. She is believed to still be married to four men.'}] ``` with: ```python # >>> [{'summary_text': 'Liana Barrientos, 39, is charged with two counts of "offering a false instrument for filing in the first degree" In total, she has been married 10 times, with nine of her marriages occurring between 1999 and 2002. She is believed to still be married to four men.'}] ``` ## Testing The code has been successfully tested and runs without error. ##…b66cc28
-
[service] explicitly set pipeline_tag: summarization
Verified signature37f520f
-
Adding `safetensors` variant of this model (#63)
- Adding `safetensors` variant of this model (70ececc3e57b7f46f39dc36dfd67684b2139d474) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>08436bb
-
Added ending ticks to format BibTeX Block properly. (#48)
- Added ending ticks to format BibTeX Block properly. (27adafbaf40a58fc672d9551425ffe756901f0e3) Co-authored-by: Rutam Mishra <RutamHere@users.noreply.huggingface.co>deb0f97
-
Adding generation config file(s)
3d22493
-
metadata: link to `cnn_dailymail` dataset
45b6053
-
add language tag (#4)
- add language tag (6d13d2fa9b8b83e9b1be84e207669b0b846c9e9b) Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>c5121e4
-
Add evaluation results on the 3.0.0 config of cnn_dailymail (#3)
- Add evaluation results on the 3.0.0 config of cnn_dailymail (5472544826529b15cd37d5544b725db4f4044813) Co-authored-by: Evaluation Bot <autoevaluator@users.noreply.huggingface.co>9137060
-
Update code example
6d60e92 -
Update README.md
5481f4b
-
add flax model
7676c09
-
Move tokenizer.json
from roberta-large1861475
-
remove .ipynb_checkpoints directory
be915e7 -
Update config.json
fda2efb
-
update config
a7534bb
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/facebook/bart-large-cnn/README.md4f75298
-
Update tf_model.h5
bf4bbf6
-
Update config.json
24c5cf0
-
Update merges.txt
b22a717 -
Update vocab.json
fc8bf23
-
Update rust_model.ot
669d04b -
Update config.json
747f184
-
Update config.json
2b4ddf1
-
Update config.json
7420138
-
Update pytorch_model.bin
a83c2a2 -
Update config.json
6d02de5
-
Update config.json
d23db95
-
Update config.json
6fd4954 -
Update config.json
949bc3d
-
Update config.json
95c9327
-
Update config.json
5542b75
-
Update config.json
c8fb06f -
initial commit
14b3123