Instructions to use Helsinki-NLP/opus-mt-en-lua with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-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-en-lua")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-lua") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-lua", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This 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.11f3d0a
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
bc62ccf
-
Adding generation config file(s)
5345f4d
-
Add TF weights
Joao Gante6aa997c
-
metadata: add license
0164f9a
-
Changed num_beams to 4
7d2b269
-
Update README.md
85d7bc3
-
Update README.md
c2c1028 -
Update config.json
19231ca -
Update tokenizer_config.json
9bcd389 -
Update vocab.json
a54f575
-
Update README.md
f25d6a5 -
Update config.json
2402172 -
Update tokenizer_config.json
7df11cc -
Update vocab.json
b3b84c8 -
Update README.md
1673e2c
-
Update README.md
49520ac -
Update README.md
ddc934c
-
Update README.md
16afff5
-
Update README.md
0015f5f
-
Update config.json
70cc4eb -
Update config.json
e81e148
-
Update config.json
717581f -
Update config.json
924e5da
-
Update tokenizer_config.json
35bea39 -
Update vocab.json
7665491 -
Update source.spm
3ee8ca2 -
Update target.spm
dd0550b -
Update config.json
da65349 -
Update pytorch_model.bin
48d9c2f -
initial commit
e3be051