Downloads · 30 days
7
8% of all-time downloads
adedamola26/bart-finetuned-samsum
bart-finetuned-samsum is a summarization model from adedamola26. Use it when you need a shorter version of a longer text. It is set up for transformers.
This model was trained by fine-tuning the facebook/bart-large-xsum model using these parameters and the samsum dataset.
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
88
Public
Repo size
3.3 GB
Likes
0
Public
Click a slice to open those files.
.bin1.6 GB · 100%
From the Hugging Face model README
This model was trained by fine-tuning the facebook/bart-large-xsum model using these parameters and the samsum dataset.
from transformers import pipeline
model = pipeline("summarization", model="adedamolade26/bart-finetuned-samsum")
conversation = '''Jack: Cocktails later?
May: YES!!!
May: You read my mind...
Jack: Possibly a little tightly strung today?
May: Sigh... without question.
Jack: Thought so.
May: A little drink will help!
Jack: Maybe two!
'''
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"
Model Training process was adapted from Luis Fernando Torres's Kaggle Notebook: 📝 Text Summarization with Large Language Models