Instructions to use Helsinki-NLP/opus-mt-rw-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-rw-es 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-rw-es")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-rw-es") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-rw-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
b600c90
-
Adding generation config file(s)
5a45660
-
Add TF weights
Joao Gante583f0a1
-
metadata: add license
95971cc
-
Update README.md
58f2608
-
Update README.md
6b8b398 -
Update config.json
43e8318 -
Update tokenizer_config.json
6645a35 -
Update vocab.json
60ad1dc
-
Update README.md
4c20f0c -
Update config.json
2bb8e7e -
Update tokenizer_config.json
90febed -
Update vocab.json
79e6449 -
Update README.md
6ac8f3b
-
Update README.md
cf258c8 -
Update README.md
a402b6b
-
Update README.md
2af34d0
-
Update README.md
dd8abec
-
Update config.json
c4a0def -
Update config.json
dcb731a
-
Update config.json
23fcc51 -
Update config.json
6c7033d
-
Update source.spm
37bdf2d -
Update target.spm
fe3ac47 -
Update tokenizer_config.json
899f5d8 -
Update vocab.json
50a9152 -
Update config.json
47ef231 -
Update pytorch_model.bin
d60d8ec -
initial commit
c87db69