Instructions to use Helsinki-NLP/opus-mt-lua-fi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-lua-fi 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-lua-fi")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-lua-fi") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-lua-fi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.9e9c30a
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
7db8b28
-
Adding generation config file(s)
510106f
-
Add TF weights
Joao Gante3867c74
-
metadata: add license
090f039
-
Update README.md
44f1cbc
-
Update README.md
d0560ec -
Update config.json
87e13e6 -
Update tokenizer_config.json
44c8aa6 -
Update vocab.json
88d8506
-
Update README.md
2a551aa -
Update config.json
90f0980 -
Update tokenizer_config.json
2b08022 -
Update vocab.json
d857031 -
Update README.md
a1d549a
-
Update README.md
772418f -
Update README.md
57a50ed
-
Update README.md
b749913
-
Update README.md
f3dfdd8
-
Update config.json
3523910 -
Update config.json
c6722bb
-
Update config.json
4bee1bf -
Update config.json
476368c
-
Update source.spm
4476429 -
Update target.spm
45864e1 -
Update tokenizer_config.json
a37f486 -
Update vocab.json
1942333 -
Update config.json
b46f02c -
Update pytorch_model.bin
57419c0 -
initial commit
6fe8fbd