Irisba/ClimateChangeMeasures
Viewer • Updated • 273 • 5
How to use Irisba/mbart-ClimateChangeMeasures-en-es with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "translation" 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("translation", model="Irisba/mbart-ClimateChangeMeasures-en-es") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Irisba/mbart-ClimateChangeMeasures-en-es")
model = AutoModelForSeq2SeqLM.from_pretrained("Irisba/mbart-ClimateChangeMeasures-en-es")This model is a fine-tuned version of facebook/mbart-large-50 on an unknown dataset. It achieves the following results on the evaluation set:
This model has been trained to translate texts from English to Spanish, specifically focused on environmental topics and green policies. Fine-tuning was done on a relatively small dataset, which makes the results variable depending on the complexity and context of the translation.
The dataset is the following one: ClimateChangeMeasures
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|---|---|---|---|---|---|
| No log | 1.0 | 28 | 3.5296 | 12.3925 | 26.1455 |
| No log | 2.0 | 56 | 3.4070 | 13.6296 | 28.6364 |
Base model
facebook/mbart-large-50