Instructions to use Helsinki-NLP/opus-mt-es-lua with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-es-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-es-lua")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-es-lua") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-es-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.128e556
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
3af8b84
-
Adding generation config file(s)
1fd8c3f
-
Add TF weights
Joao Gante30edd16
-
metadata: add license
1e47438
-
Changed num_beams to 4
df626dc
-
Update README.md
0d75dfa
-
Update README.md
e61561e -
Update config.json
ed5dd10 -
Update tokenizer_config.json
fa0fc37 -
Update vocab.json
e27b579
-
Update README.md
260edd1 -
Update config.json
dfee2e3 -
Update tokenizer_config.json
7d724d2 -
Update vocab.json
8bdd9b5 -
Update README.md
251d58d
-
Update README.md
dd4a225 -
Update README.md
c093c9f
-
Update README.md
ae0944d
-
Update README.md
924acdc
-
Update config.json
d24c25a -
Update config.json
5b52526
-
Update config.json
5b89173 -
Update config.json
04dbeb6
-
Update source.spm
1583412 -
Update target.spm
c87005a -
Update tokenizer_config.json
051664c -
Update vocab.json
8604737 -
Update config.json
2a09e5f -
Update pytorch_model.bin
7559b7c -
initial commit
666d952