Instructions to use Helsinki-NLP/opus-mt-eo-sv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-eo-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-eo-sv")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-eo-sv") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-eo-sv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
f2b77e6
-
Adding generation config file(s)
a5e0d74
-
Add TF weights
Joao Gante624244c
-
Changed num_beams to 4
8d96c0f
-
Update README.md
7148be3 -
Update README.md
e6046b6 -
Update metadata.json
c3cb42a
-
Update README.md
27a076d -
Update config.json
dc84236 -
Update metadata.json
b1f320a -
Update tokenizer_config.json
0a751c6 -
Update vocab.json
b566330 -
Update README.md
cd3a4a6 -
Update metadata.json
296cf8d -
Update README.md
142e108 -
Update config.json
7fe7f57 -
Update metadata.json
a85b056 -
Update pytorch_model.bin
16abeff -
Update source.spm
e2d8c5b -
Update target.spm
870dcdc -
Update tokenizer_config.json
0941958 -
Update vocab.json
e33d169
-
Update README.md
26f40c5 -
Update vocab.json
0ff0483 -
Update config.json
ee83fbc -
Update tokenizer_config.json
35e4212 -
Update README.md
831338d
-
Update README.md
33bb03e -
Update README.md
9d2c32a
-
Update README.md
8d28ebb
-
Update README.md
357fc70
-
Update config.json
a5845f4 -
Update config.json
3b6aba5
-
Update config.json
53716fe -
Update config.json
c535b8e
-
Update tokenizer_config.json
b4d097d -
Update vocab.json
1f8b7fa -
Update source.spm
ccf8257 -
Update target.spm
172a8b2 -
Update config.json
e4f8fdf -
initial commit
3313734