reciTAL/mlsum
Updated • 1.39k • 55
How to use SandraB/mt5-small-mlsum_training_sample 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="SandraB/mt5-small-mlsum_training_sample") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("SandraB/mt5-small-mlsum_training_sample")
model = AutoModelForSeq2SeqLM.from_pretrained("SandraB/mt5-small-mlsum_training_sample")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 |
|---|---|---|---|---|---|---|---|
| 1.3193 | 1.0 | 6875 | 2.1352 | 25.8941 | 17.4672 | 24.2858 | 24.924 |
| 1.2413 | 2.0 | 13750 | 2.0528 | 26.6221 | 18.1166 | 24.8233 | 25.5111 |
| 1.1844 | 3.0 | 20625 | 1.9783 | 27.0518 | 18.3457 | 25.2288 | 25.8919 |
| 1.0403 | 4.0 | 27500 | 1.9487 | 27.8154 | 18.9701 | 25.9435 | 26.6578 |
| 0.9582 | 5.0 | 34375 | 1.9374 | 27.6863 | 18.7723 | 25.7667 | 26.4694 |
| 0.8992 | 6.0 | 41250 | 1.9353 | 27.8959 | 18.919 | 26.0434 | 26.7262 |
| 0.8109 | 7.0 | 48125 | 1.9492 | 28.0644 | 18.8873 | 26.0628 | 26.757 |
| 0.7705 | 8.0 | 55000 | 1.9727 | 28.2078 | 19.0712 | 26.2267 | 26.9462 |