How to use from the
Use from the
Transformers library
# 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="Helsinki-NLP/opus-mt-fr-es")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fr-es")
model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fr-es", device_map="auto")
Quick Links

opus-mt-fr-es

Benchmarks

testset BLEU chr-F
newssyscomb2009.fr.es 34.3 0.601
news-test2008.fr.es 32.5 0.583
newstest2009.fr.es 31.6 0.586
newstest2010.fr.es 36.5 0.616
newstest2011.fr.es 38.3 0.622
newstest2012.fr.es 38.1 0.619
newstest2013.fr.es 34.0 0.587
Tatoeba.fr.es 53.2 0.709
Downloads last month
59,248
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Helsinki-NLP/opus-mt-fr-es

Finetunes
3 models
Quantizations
3 models

Spaces using Helsinki-NLP/opus-mt-fr-es 48