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
-
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