cnndm-summ
bart-base fine-tuned for one epoch on 40k CNN/DailyMail 3.0.0 articles (fp16, label smoothing 0.1,
input cut at 512 tokens). the input starts with a length prefix: summarize short: , summarize medium: or
summarize long: , chosen from the tertiles of the reference length (41 and 55 words).
on a fixed random 2,000-article test subset with the medium prefix and beam 4: rouge-1 40.5, rouge-2 18.0, rouge-lsum 37.1. the browser version (smaller vocabulary, int8) is in cnndm-summ-onnx.
from transformers import pipeline
s = pipeline("summarization", model="manasrpandya/cnndm-summ")
s("summarize medium: " + article, num_beams=4, max_length=142, no_repeat_ngram_size=3)
code: https://github.com/manasrpandya/NLP_CV_Lab/tree/main/projects/03-summarization