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

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

taw-eng

Benchmarks

testset BLEU chr-F
Tatoeba-test.lao-eng.lao.eng 1.1 0.133
Tatoeba-test.multi.eng 38.9 0.572
Tatoeba-test.tha-eng.tha.eng 40.6 0.588

System Info:

Downloads last month
21
Safetensors
Model size
76.6M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

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