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-ru-no")
# Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM

tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ru-no")
model = AutoModelForMultimodalLM.from_pretrained("Helsinki-NLP/opus-mt-ru-no")
Quick Links

rus-nor

  • source group: Russian

  • target group: Norwegian

  • OPUS readme: rus-nor

  • model: transformer-align

  • source language(s): rus

  • target language(s): nno nob

  • model: transformer-align

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

  • a sentence initial language token is required in the form of >>id<< (id = valid target language ID)

  • 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.rus.nor 20.3 0.418

System Info:

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

Spaces using Helsinki-NLP/opus-mt-ru-no 16