community-datasets/scielo
Viewer • Updated • 3.26M • 253 • 4
How to use domenicrosati/opus-mt-en-es-scielo 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="domenicrosati/opus-mt-en-es-scielo") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("domenicrosati/opus-mt-en-es-scielo")
model = AutoModelForSeq2SeqLM.from_pretrained("domenicrosati/opus-mt-en-es-scielo")This model is a fine-tuned version of domenicrosati/opus-mt-en-es-scielo on the scielo 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 | Bleu |
|---|---|---|---|---|
| 1.0943 | 1.0 | 10001 | 1.2189 | 41.5373 |