defunct-datasets/amazon_reviews_multi
Updated • 4.67k • 102
How to use Natet/mt5-small-finetuned-amazon-en-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="Natet/mt5-small-finetuned-amazon-en-es") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Natet/mt5-small-finetuned-amazon-en-es")
model = AutoModelForSeq2SeqLM.from_pretrained("Natet/mt5-small-finetuned-amazon-en-es")This model is a fine-tuned version of google/mt5-small on the amazon_reviews_multi dataset (https://huggingface.co/datasets/amazon_reviews_multi), with a filter applied to reviews about books.
The filter_books function is used to filter examples in the data and returns only those that belong to the "book" or "digital ebook purchase" category.
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 |
|---|---|---|---|---|---|---|---|
| 7.376 | 1.0 | 1209 | 3.3114 | 13.6834 | 5.4759 | 13.2778 | 13.3315 |
| 3.9197 | 2.0 | 2418 | 3.1662 | 15.4107 | 7.396 | 15.0443 | 15.0493 |
| 3.5954 | 3.0 | 3627 | 3.0844 | 15.4126 | 7.2537 | 15.0816 | 15.1281 |
| 3.4243 | 4.0 | 4836 | 3.0384 | 15.9869 | 7.7568 | 15.7054 | 15.6149 |
| 3.3145 | 5.0 | 6045 | 3.0512 | 17.3119 | 8.412 | 16.8461 | 16.7631 |
| 3.2597 | 6.0 | 7254 | 3.0237 | 16.7165 | 7.9706 | 16.4276 | 16.3935 |
| 3.2094 | 7.0 | 8463 | 3.0308 | 17.4737 | 8.7048 | 17.0836 | 17.0624 |
| 3.1886 | 8.0 | 9672 | 3.0270 | 16.8614 | 8.3352 | 16.5595 | 16.5755 |
Base model
google/mt5-small