Instructions to use anarodrdi/mbart-translation-es-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anarodrdi/mbart-translation-es-en 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="anarodrdi/mbart-translation-es-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("anarodrdi/mbart-translation-es-en") model = AutoModelForSeq2SeqLM.from_pretrained("anarodrdi/mbart-translation-es-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
mbart-translation-es-en
This model is a fine-tuned version of facebook/mbart-large-cc25 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 2.3163
- Bleu: 10.3319
- Gen Len: 39.004
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5.6e-05
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- optimizer: Use OptimizerNames.ADAFACTOR and the args are: No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|---|---|---|---|---|---|
| No log | 1.0 | 282 | 2.2880 | 9.6536 | 35.612 |
| 9.6336 | 2.0 | 564 | 2.2393 | 11.2544 | 30.958 |
| 9.6336 | 3.0 | 846 | 2.3163 | 10.3319 | 39.004 |
Framework versions
- Transformers 5.3.0
- Pytorch 2.10.0+cu128
- Datasets 4.8.3
- Tokenizers 0.22.2
- Downloads last month
- 6
Model tree for anarodrdi/mbart-translation-es-en
Base model
facebook/mbart-large-cc25