Instructions to use Helsinki-NLP/opus-mt-eu-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-eu-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-eu-es")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-eu-es") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-eu-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
a9973c0
-
Adding generation config file(s)
af4f18f
-
Add TF weights
Joao Gante811dc96
-
Changed num_beams to 4
bda2f1f
-
Update README.md
34ca3ab -
Update README.md
7d0b7ce -
Update metadata.json
c5cc479
-
Update README.md
ac3d494 -
Update config.json
82b1cc3 -
Update metadata.json
746a381 -
Update tokenizer_config.json
155f5d9 -
Update vocab.json
fa76c4b -
Update README.md
fe3cbc9 -
Update metadata.json
cd93816 -
Update README.md
162272a -
Update config.json
5a323ae -
Update metadata.json
6eb5964 -
Update pytorch_model.bin
ce91b7d -
Update source.spm
0f2c2b0 -
Update target.spm
7fc6468 -
Update tokenizer_config.json
d1531b2 -
Update vocab.json
7b1874d
-
Update README.md
06e5f46 -
Update config.json
862b814 -
Update tokenizer_config.json
8785af0 -
Update vocab.json
f5cd967 -
Update README.md
8bbd4db
-
Update README.md
ad26249 -
Update README.md
b09f358
-
Update README.md
f8acac3
-
Update README.md
2637249
-
Update config.json
157b345 -
Update config.json
a97ac55
-
Update config.json
adcee50 -
Update config.json
292e403
-
Update source.spm
e7bbc3d -
Update target.spm
7d8693e -
Update tokenizer_config.json
ab6fc62 -
Update vocab.json
d5a9d2a -
Update config.json
7611262 -
initial commit
3e03ddf