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

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

opus-mt-cs-en

Benchmarks

testset BLEU chr-F
newstest2014-csen.cs.en 34.1 0.612
newstest2015-encs.cs.en 30.4 0.565
newstest2016-encs.cs.en 31.8 0.584
newstest2017-encs.cs.en 28.7 0.556
newstest2018-encs.cs.en 30.3 0.566
Tatoeba.cs.en 58.0 0.721
Downloads last month
10,865
Inference Providers NEW

Model tree for Helsinki-NLP/opus-mt-cs-en

Finetunes
2 models
Quantizations
2 models

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