Instructions to use Helsinki-NLP/opus-mt-fi-mfe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-fi-mfe 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-fi-mfe")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fi-mfe") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fi-mfe", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
9e1eb71
-
Adding generation config file(s)
9f36f71
-
Add TF weights
Joao Ganteb0c46ed
-
metadata: add license
15d3214
-
Changed num_beams to 4
4b5eb8a
-
Update README.md
c24faaf
-
Update README.md
b17dd73 -
Update config.json
5e5a5df -
Update tokenizer_config.json
6b8ca10 -
Update vocab.json
055cebc
-
Update README.md
f28501d -
Update config.json
4a07753 -
Update tokenizer_config.json
835c387 -
Update vocab.json
1160734 -
Update README.md
ae138b9
-
Update README.md
2a20205 -
Update README.md
21d352d
-
Update README.md
4015257
-
Update README.md
161e739
-
Update config.json
6071d66 -
Update config.json
04f22a1
-
Update config.json
8776d8d -
Update config.json
5eba695
-
Update source.spm
3b9582e -
Update target.spm
77ffd67 -
Update tokenizer_config.json
998a10d -
Update vocab.json
b7c9a66 -
Update config.json
291f19b -
Update pytorch_model.bin
8ac6c80 -
initial commit
6147c1e