knkarthick/samsum
Viewer • Updated • 16.4k • 9.7k • 42
How to use noviciusss/flan-t5-base-samsum with PEFT:
from peft import PeftModel
from transformers import AutoModelForSeq2SeqLM
base_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-base")
model = PeftModel.from_pretrained(base_model, "noviciusss/flan-t5-base-samsum")How to use noviciusss/flan-t5-base-samsum with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "summarization" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline
pipe = pipeline("summarization", model="noviciusss/flan-t5-base-samsum") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("noviciusss/flan-t5-base-samsum", dtype="auto")This model is a fine-tuned version of google/flan-t5-base on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Bertscore Precision | Bertscore Recall | Bertscore F1 | Meteor | Bleu |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.0 | 1.0 | 1842 | nan | 49.01 | 25.06 | 40.97 | 45.4 | 73.48 | 71.67 | 72.25 | 42.51 | 18.19 |
| 0.0 | 2.0 | 3684 | nan | 49.01 | 25.06 | 40.97 | 45.4 | 73.48 | 71.67 | 72.25 | 42.51 | 18.19 |
| 0.0 | 3.0 | 5526 | nan | 49.01 | 25.06 | 40.97 | 45.4 | 73.48 | 71.67 | 72.25 | 42.51 | 18.19 |
Base model
google/flan-t5-base