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-ko-fr")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

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

kor-fra

  • source group: Korean

  • target group: French

  • OPUS readme: kor-fra

  • model: transformer-align

  • source language(s): kor kor_Hang kor_Hani kor_Latn

  • target language(s): fra

  • model: transformer-align

  • pre-processing: normalization + SentencePiece (spm32k,spm32k)

  • download original weights: opus-2020-06-17.zip

  • test set translations: opus-2020-06-17.test.txt

  • test set scores: opus-2020-06-17.eval.txt

Benchmarks

testset BLEU chr-F
Tatoeba-test.kor.fra 30.4 0.503

System Info:

Downloads last month
154
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

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

Finetunes
3 models