defunct-datasets/amazon_reviews_multi
Updated • 4.52k • 102
How to use mamMartin/mt5-small-finetuned-amazon-es 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="mamMartin/mt5-small-finetuned-amazon-es") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("mamMartin/mt5-small-finetuned-amazon-es")
model = AutoModelForSeq2SeqLM.from_pretrained("mamMartin/mt5-small-finetuned-amazon-es")This model is a fine-tuned version of google/mt5-small on the amazon_reviews_multi 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 |
|---|---|---|---|---|---|---|---|
| 10.7598 | 1.0 | 439 | 3.3647 | 6.8015 | 1.522 | 6.7566 | 6.6935 |
| 4.6043 | 2.0 | 878 | 3.0154 | 13.0236 | 4.258 | 12.8286 | 12.8619 |
| 4.0593 | 3.0 | 1317 | 2.9726 | 12.6059 | 5.7546 | 12.2192 | 12.2128 |
| 3.82 | 4.0 | 1756 | 2.9247 | 14.4714 | 5.7779 | 14.1695 | 14.1091 |
| 3.6676 | 5.0 | 2195 | 2.9124 | 13.3845 | 6.7018 | 13.2512 | 13.1154 |
| 3.5678 | 6.0 | 2634 | 2.8913 | 12.9049 | 6.2959 | 12.7556 | 12.6255 |
| 3.4971 | 7.0 | 3073 | 2.8911 | 12.7622 | 6.5549 | 12.631 | 12.4987 |
| 3.4737 | 8.0 | 3512 | 2.8877 | 12.5959 | 6.541 | 12.4351 | 12.2872 |