Helsinki-NLP/tatoeba
Updated • 1.37k • 55
How to use arielb30/opus-mt-en-ro 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="arielb30/opus-mt-en-ro") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("arielb30/opus-mt-en-ro")
model = AutoModelForSeq2SeqLM.from_pretrained("arielb30/opus-mt-en-ro", device_map="auto")This model was trained from scratch on the tatoeba 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 | Model Preparation Time | Bleu |
|---|---|---|---|---|---|
| 0.5958 | 1.0 | 427 | 0.5168 | 0.0032 | 56.1356 |
| 0.4699 | 2.0 | 854 | 0.5128 | 0.0032 | 56.0514 |
| 0.4118 | 3.0 | 1281 | 0.5130 | 0.0032 | 56.6443 |