Instructions to use Helsinki-NLP/opus-mt-fr-lua with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-fr-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-fr-lua")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fr-lua") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fr-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.a220ed0
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
c8fa367
-
Adding generation config file(s)
c873799
-
Add TF weights
Joao Gante349cd2f
-
metadata: add license
d52c6a2
-
Changed num_beams to 4
eee6878
-
Update README.md
21d93ed
-
Update README.md
55921da -
Update tokenizer_config.json
a85438c -
Update config.json
54915f1 -
Update vocab.json
beade10
-
Update README.md
c509524 -
Update config.json
f6f1603 -
Update tokenizer_config.json
0cf18d9 -
Update vocab.json
42da16c -
Update README.md
513d48b
-
Update README.md
554c8fd -
Update README.md
d59daca
-
Update README.md
3f38814
-
Update README.md
1b69c03
-
Update config.json
f7492be -
Update config.json
fb5ea59
-
Update config.json
b98a325 -
Update config.json
fe8d455
-
Update vocab.json
a9b0c81 -
Update source.spm
70e86c9 -
Update target.spm
af6cf20 -
Update tokenizer_config.json
529a260 -
Update config.json
e4478c7 -
Update pytorch_model.bin
9dd60b8 -
initial commit
855a61e