sshleifer/distilbart-cnn-12-6
Xenova/distilbart-cnn-12-6
summarization · BartForConditionalGeneration
1. Interactive Abstractive Summarization Studio
pipeline("summarization", "Xenova/distilbart-cnn-12-6", { device: "wasm", dtype: "q8" })
via shared Transformers.js 3.7.5 in a dedicated Web Worker, passing
min_length, max_length, num_beams, and
no_repeat_ngram_size: 3.
Choose a calibrated article or paste/drop your own document below:
.txt, .md, .csv, .json)
Or paste text anywhere on the page — zero network upload.
2. See Inside: Decode Timeline & 50,264-Vocab Byte-Level BPE
When num_beams = 1, TextStreamer records the real millisecond interval
between decoder steps. Below the timeline, inspect how BART's 50,264-token byte-level BPE
splits the input (Ġ marks word-leading spaces, <s>=0,
<pad>=1, </s>=2) and check the 1,024-token encoder window.
Byte-level BPE breakdown will appear after running DistilBART CNN 12-6.
3. Why 12-Encoder / 6-Decoder DistilBART Matters & Worker Source
Sam Shleifer & Alexander Rush (2020, Shrink-and-Finetune) showed that keeping all 12
bidirectional encoder layers of bart-large-cnn preserves reading comprehension
while cutting the sequential autoregressive decoder from 12 layers down to 6. Compared to
distilbart-cnn-6-6 (6+6 layers), distilbart-cnn-12-6 spends extra
compute in the parallel encoder pass to boost ROUGE quality while keeping autoregressive
generation fast inside WebAssembly.