Home / Models / Latvian / translate-sv-lv

Swedish to Latvian translation model translate-sv-lv

Open machine translation from Swedish into Latvian, published by Windstorm Labs on Hugging Face.

Task
Translation: Swedish → Latvian
Languages
Swedish sv, Latvian lv
Lineage
OPUS-MT
Format
transformers (Marian), safetensors
Hugging Face
WindyTranslate/translate-sv-lv
Last updated on HF
2026-08-04

Quality

Not yet scored. FLORES-200 has no test set for Swedish → Latvian, so this pair is outside the screening run.

How to run

Shell
pip install transformers sentencepiece torch
Python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

repo = "WindyTranslate/translate-sv-lv"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSeq2SeqLM.from_pretrained(repo)

batch = tok(["<Swedish text>"], return_tensors="pt", padding=True)
print(tok.batch_decode(model.generate(**batch), skip_special_tokens=True)[0])

Tested: Pattern run on 2026-10-01 against WindyTranslate/translate-tc-big-en-fr with transformers 4.57.6 and 5.18.0 on CPU ("Où se trouve la gare ?"); multi-target token prefix run against translate-tc-bible-big-mul-deu_eng_nld. Not run on every model individually.

Licence and attribution

Licence
Apache-2.0
Upstream
Helsinki-NLP/opus-mt-sv-lv
Upstream licence
Apache-2.0
Attribution
Based on OPUS-MT model Helsinki-NLP/opus-mt-sv-lv by Helsinki-NLP (Language Technology Research Group, University of Helsinki). Licensed Apache-2.0.

Copy this into your NOTICE file (or equivalent) when you ship the model:

NOTICE
This product uses the model WindyTranslate/translate-sv-lv
(https://huggingface.co/WindyTranslate/translate-sv-lv), published by Windstorm Labs (https://windstormlabs.com).
Based on OPUS-MT model Helsinki-NLP/opus-mt-sv-lv by Helsinki-NLP (Language Technology Research Group, University of Helsinki). Licensed Apache-2.0.
Windstorm Labs modified the upstream weights; the model card describes what was changed.
Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0

This is a convenience, not legal advice. See Licensing.

Related models

ModelchrF++ (FLORES-200 dev)Licence
Latvian to Swedish
translate-lv-sv
not in FLORES-200Apache-2.0
Swedish to English
translate-sv-en
67.8 ExcellentApache-2.0
Swedish to French
translate-sv-fr
54.1 GoodApache-2.0
Swedish to Dutch
translate-sv-nl
53.5 GoodApache-2.0
Swedish to Indonesian
translate-sv-id
52.4 GoodApache-2.0
Swedish to Romanian
translate-sv-ro
51.2 GoodApache-2.0
Swedish to Finnish
translate-sv-fi
50.5 GoodApache-2.0
Swedish to Afrikaans
translate-sv-af
50.0 GoodApache-2.0