Downloads · 30 days
17
0% of all-time downloads
luisotorres/bart-finetuned-samsum
bart-finetuned-samsum is a summarization model from luisotorres. Use it when you need a shorter version of a longer text. It is set up for transformers.
This model is a specialized adaptation of the <bfacebook/bart-large-xsum</b, fine-tuned for enhanced performance on dialogue summarization using the <bSamSum</b dataset.
Downloads · 30 days
17
0% of all-time downloads
All-time downloads
6.6K
Public
Parameters
406M
3.3 GB on disk
Likes
3
Public
Click a slice to open those files.
.bin1.6 GB · 50%
From the Hugging Face model README
This model is a specialized adaptation of the <b>facebook/bart-large-xsum</b>, fine-tuned for enhanced performance on dialogue summarization using the <b>SamSum</b> dataset.
from transformers import pipeline
model = pipeline("summarization", model="luisotorres/bart-finetuned-samsum")
conversation = '''Sarah: Do you think it's a good idea to invest in Bitcoin?
Emily: I'm skeptical. The market is very volatile, and you could lose money.
Sarah: True. But there's also a high upside, right?
'''
model(conversation)
evaluation_strategy = "epoch",
save_strategy = 'epoch',
load_best_model_at_end = True,
metric_for_best_model = 'eval_loss',
seed = 42,
learning_rate=2e-5,
per_device_train_batch_size=4,
per_device_eval_batch_size=4,
gradient_accumulation_steps=2,
weight_decay=0.01,
save_total_limit=2,
num_train_epochs=4,
predict_with_generate=True,
fp16=True,
report_to="none"
This model is based on the original <b>BART</b> architecture, as detailed in:
Lewis et al. (2019). BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension. arXiv:1910.13461