Views
No views yet
facebook/bart-large-cnn on the knkarthick/samsum mirror of the SAMSum conversation summarization dataset.num_beams=8, max_length=128, length_penalty=0.8:| Metric | Value |
|---|---|
| ROUGE-1 | 0.4015 |
| ROUGE-2 | 0.2030 |
| ROUGE-L | 0.3053 |
AutoModelForSeq2SeqLM + AutoTokenizer. Tokenizer files are in the same repo.1from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline
2
3model = AutoModelForSeq2SeqLM.from_pretrained("biggdaddyy/bart-samsum-finetuned")
4tokenizer = AutoTokenizer.from_pretrained("biggdaddyy/bart-samsum-finetuned")
5
6pipe = pipeline("summarization", model=model, tokenizer=tokenizer)
7print(pipe(
8 "Hannah: Hey, do you have Betty's number?\n"
9 "Amanda: Lemme check.\n"
10 "Amanda: Sorry, can't find it.\n"
11 "Hannah: Ok, I'll text Larry.",
12 max_length=128, num_beams=8, length_penalty=0.8, early_stopping=True,
13)[0]["summary_text"])per_device_train_batch_size=1, gradient_accumulation_steps=16 (effective batch 16)warmup_steps=100, weight_decay=0.01use_cpu=True, gradient_checkpointing=True)