Instructions to use Helsinki-NLP/opus-mt-fi-lua with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-fi-lua 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-lua")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fi-lua") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fi-lua", 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.1b43fbe
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
d2fd387
-
Adding generation config file(s)
78071c1
-
Add TF weights
Joao Gantec2f86ad
-
metadata: add license
5e56b02
-
Changed num_beams to 4
241d877
-
Update README.md
b1f481a
-
Update README.md
7cad131 -
Update config.json
b6780a7 -
Update tokenizer_config.json
5a67824 -
Update vocab.json
377bc40
-
Update README.md
ed02fb5 -
Update config.json
440076c -
Update tokenizer_config.json
7c101cb -
Update vocab.json
096be28 -
Update README.md
2f57664
-
Update README.md
3209926 -
Update README.md
80dbd7a
-
Update README.md
c1f6ab6
-
Update README.md
9014dd4
-
Update config.json
1a2660e -
Update config.json
3b87454
-
Update config.json
da5c08f -
Update config.json
04717af
-
Update tokenizer_config.json
27d1aee -
Update vocab.json
cdc79b2 -
Update source.spm
57b53b4 -
Update target.spm
052e781 -
Update config.json
65b57f3 -
Update pytorch_model.bin
2ce3ed3 -
initial commit
e8812e8