bart-large-cnn

facebook/bart-large-cnn is a large‑sized BART (Bidirectional and Auto‑Regressive Transformers) checkpoint that has been fine‑tuned on the CNN/DailyMail

facebook 2.7M downloads mit Summarization
Frameworkstransformerspytorchtfjaxrustsafetensors
Languagesen
Datasetscnn_dailymail
Tagsbarttext2text-generationsummarizationmodel-index
Downloads
2.7M
License
mit
Pipeline
Summarization
Author
facebook

Run bart-large-cnn locally on a Q4KM hard drive

Accelerate your deployment with Q4KM hard drives pre‑loaded with facebook/bart‑large‑cnn . These high‑speed SSDs ship with the model, tokenizer, and a ready‑to‑run inference script, letting you start...

Shop Q4KM Drives

Technical Overview

facebook/bart-large-cnn is a large‑sized BART (Bidirectional and Auto‑Regressive Transformers) checkpoint that has been fine‑tuned on the CNN/DailyMail news summarization dataset. It belongs to the summarization pipeline tag and is optimized for generating concise, fluent summaries from long English articles.

Key features and capabilities include:

  • Seq2Seq architecture with a BERT‑style bidirectional encoder and a GPT‑style autoregressive decoder.
  • 400 million parameters (≈ 1.5 GB of model weights in FP16), enabling high‑quality abstractive summarization.
  • Pre‑trained on massive English corpora, then fine‑tuned on 287 k article‑summary pairs from CNN/DailyMail (3.0.0 config).
  • Supports the Hugging Face pipeline API for one‑line inference.
  • Works out‑of‑the‑box with PyTorch, TensorFlow, JAX and Rust back‑ends, and can be stored as Safetensors for fast loading.

Architecture highlights:

  • 12‑layer encoder, 12‑layer decoder, hidden size 1024, 16 attention heads.
  • Pre‑training objective: denoising sequence‑to‑sequence (random token masking, sentence permutation, and text infilling).
  • Fine‑tuning objective: standard cross‑entropy loss on the summarization task (average loss ≈ 2.53).

Intended use cases revolve around any scenario where a short, human‑readable summary of a longer English text is needed: news aggregation, document digest, email summarization, content recommendation, and assistive reading tools.

Benchmark Performance

The most relevant benchmark for an abstractive summarizer is the CNN/DailyMail ROUGE suite. The facebook/bart-large-cnn checkpoint reports the following verified scores on the training split (the same evaluation protocol is used for the test split in the original paper):

  • ROUGE‑1: 42.95 % (precision/recall‑balanced)
  • ROUGE‑2: 20.81 %
  • ROUGE‑L: 30.62 %
  • ROUGE‑LSUM: 40.04 %
  • Average generated length: 78.6 tokens

These numbers place BART‑large‑cnn among the top‑performing open‑source summarizers, closely rivaling T5‑large and Pegasus‑large while offering faster inference due to its balanced encoder‑decoder design. High ROUGE‑LSUM indicates strong ability to capture the overall gist, which is crucial for downstream applications that rely on accurate content condensation.

Hardware Requirements

VRAM for inference:

  • FP16 (half‑precision) inference: ~2.5 GB GPU memory for a batch size of 1.
  • FP32 (single‑precision) inference: ~4 GB GPU memory.
  • For higher throughput (batch ≥ 8) a GPU with 12 GB–16 GB VRAM is recommended.

Recommended GPU specifications:

  • NVIDIA RTX 3080 / A6000 / V100 (10 GB + VRAM) – excellent for real‑time summarization.
  • AMD Radeon RX 6800 XT (16 GB) – also supported via the torch backend.

CPU requirements:

  • Modern x86‑64 CPU with ≥ 8 cores (e.g., Intel i7‑12700K, AMD Ryzen 7 5800X) for batch inference when GPU is unavailable.
  • Minimum 16 GB RAM to hold the model and intermediate tensors.

Storage needs:

  • Model checkpoint size: ~1.6 GB (safetensors) or ~2.4 GB (PyTorch .bin).
  • Additional ~200 MB for tokenizer files and config JSON.

Performance characteristics:

  • Typical latency: 150–250 ms per article (≈ 800 tokens) on an RTX 3080.
  • Throughput: ~4–6 summaries per second on a single 12 GB GPU.

Use Cases

Primary intended applications:

  • News article summarization for media platforms.
  • Automatic generation of executive briefs from long reports.
  • Summarizing customer support tickets to highlight key issues.
  • Creating concise previews for e‑learning modules.

Real‑world examples:

  • Media monitoring services ingest hundreds of articles daily and use BART‑large‑cnn to produce 2‑sentence digests for analysts.
  • Legal tech firms summarize lengthy case files, enabling lawyers to skim essential facts quickly.
  • Healthcare portals generate short overviews of medical research papers for clinicians.

Industries or domains:

  • Publishing & journalism
  • Finance & market research
  • Education & e‑learning
  • Customer experience & support

Integration possibilities:

  • Direct use via the Hugging Face pipeline in Python, JavaScript, or Rust.
  • Deployment on Azure (supported endpoint) for scalable cloud inference.
  • Embedding in mobile apps using ONNX or TensorFlow Lite after conversion.

Training Details

Training methodology:

  • Initial pre‑training on a large English corpus using a denoising objective (random token masking, sentence permutation, and text infilling).
  • Subsequent fine‑tuning on the CNN/DailyMail dataset (≈ 287 k article‑summary pairs) with a standard cross‑entropy loss.
  • Optimizer: AdamW with a learning rate of 3e‑5, linear warm‑up for the first 2 k steps, then decay.
  • Batch size: 16–32 sequences per GPU (FP16 mixed‑precision training).

Datasets used:

Training compute requirements:

  • Estimated 8–10 days on 8 × NVIDIA V100 (32 GB) GPUs.
  • Total FLOPs ≈ 2 × 10¹⁵ (2 PFLOPs) for the fine‑tuning stage.

Fine‑tuning capabilities:

  • Can be further fine‑tuned on domain‑specific summarization data (e.g., legal contracts, scientific abstracts) using the same Seq2SeqTrainer API.
  • Supports parameter‑efficient methods such as LoRA or adapters for rapid adaptation with < GPU memory.

Licensing Information

The model card lists the MIT license as the official license, while the repository metadata shows a generic “unknown” entry. In practice, the MIT statement is the governing license for the model weights and associated code.

What the MIT license allows:

  • Free use for personal, academic, and commercial purposes.
  • No royalty or fee requirements.
  • Permission to modify, redistribute, and create derivative works.

Commercial usage:

  • Yes – you can embed the model in SaaS products, mobile apps, or any revenue‑generating service.
  • Only requirement: retain the original copyright notice and license text in your distribution.

Restrictions or requirements:

  • No warranty; the model is provided “as is”.
  • When publishing research or a product that uses the model, an attribution to “facebook/bart-large-cnn” and a link to the Hugging Face model card is recommended.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives