reciTAL/mlsum
Updated • 1.35k • 55
How to use cleblainclb/mt5-small-finetuned-mlsum 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="cleblainclb/mt5-small-finetuned-mlsum") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("cleblainclb/mt5-small-finetuned-mlsum")
model = AutoModelForSeq2SeqLM.from_pretrained("cleblainclb/mt5-small-finetuned-mlsum")This model is a fine-tuned version of google/mt5-small on the mlsum 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 |
|---|---|---|---|---|---|---|---|
| 5.6087 | 1.0 | 1005 | 2.4269 | 29.6042 | 15.5378 | 25.5964 | 25.6503 |
| 3.4099 | 2.0 | 2010 | 2.2734 | 23.8963 | 12.2351 | 21.4806 | 21.4861 |
| 3.169 | 3.0 | 3015 | 2.2310 | 26.7408 | 13.7129 | 23.7543 | 23.8443 |
| 3.0327 | 4.0 | 4020 | 2.2084 | 23.2971 | 11.5675 | 20.911 | 21.0564 |
| 2.9777 | 5.0 | 5025 | 2.1938 | 23.8523 | 11.7959 | 21.1838 | 21.2463 |
Base model
google/mt5-small