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-phi-en")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-phi-en")
model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-phi-en")
Quick Links

phi-eng

Benchmarks

testset BLEU chr-F
Tatoeba-test.akl-eng.akl.eng 11.6 0.321
Tatoeba-test.ceb-eng.ceb.eng 21.7 0.393
Tatoeba-test.hil-eng.hil.eng 17.6 0.371
Tatoeba-test.ilo-eng.ilo.eng 36.6 0.560
Tatoeba-test.multi.eng 21.5 0.391
Tatoeba-test.pag-eng.pag.eng 27.5 0.494
Tatoeba-test.war-eng.war.eng 17.3 0.380

System Info:

Downloads last month
47
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using Helsinki-NLP/opus-mt-phi-en 16