Instructions to use Helsinki-NLP/opus-mt-lv-sv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-lv-sv with Transformers:
# 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-lv-sv")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-lv-sv") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-lv-sv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
7028673
-
Adding generation config file(s)
dece215
-
Add TF weights
Joao Gante7d11b2c
-
metadata: add license
6a7d132
-
Update README.md
778e905
-
Update README.md
0297f4f -
Update config.json
c08fcb8 -
Update tokenizer_config.json
83c77b7 -
Update vocab.json
a89b186
-
Update README.md
e0f6387 -
Update config.json
7bf51b0 -
Update tokenizer_config.json
057b60e -
Update vocab.json
89844e2 -
Update README.md
ead3eae
-
Update README.md
24fc306 -
Update README.md
633b689
-
Update README.md
ebd9b03
-
Update README.md
e65c25e
-
Update config.json
a7edb6b -
Update config.json
bc28f8d
-
Update config.json
4d400c0 -
Update config.json
b69f015
-
Update tokenizer_config.json
87b68e6 -
Update vocab.json
e1d1dd9 -
Update source.spm
735fc61 -
Update target.spm
07ebc0d -
Update config.json
920c63c -
Update pytorch_model.bin
30711c3 -
initial commit
f9495f5