HooshvareLab/pn_summary
Updated • 227 • 10
How to use ahmeddbahaa/mt5-base-finetuned-fa 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="ahmeddbahaa/mt5-base-finetuned-fa") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("ahmeddbahaa/mt5-base-finetuned-fa")
model = AutoModelForSeq2SeqLM.from_pretrained("ahmeddbahaa/mt5-base-finetuned-fa")This model is a fine-tuned version of google/mt5-base on the pn_summary 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 | Rouge-1 | Rouge-2 | Rouge-l | Gen Len | Bertscore |
|---|---|---|---|---|---|---|---|---|
| 3.3828 | 1.0 | 1875 | 2.8114 | 32.17 | 19.47 | 30.12 | 18.99 | 74.25 |
| 2.8204 | 2.0 | 3750 | 2.7080 | 32.67 | 19.92 | 30.56 | 19.0 | 74.31 |
| 2.6907 | 3.0 | 5625 | 2.6724 | 33.22 | 20.44 | 31.11 | 19.0 | 74.47 |
| 2.6029 | 4.0 | 7500 | 2.6513 | 33.46 | 20.75 | 31.38 | 19.0 | 74.54 |
| 2.5414 | 5.0 | 9375 | 2.6477 | 33.68 | 20.91 | 31.62 | 19.0 | 74.58 |