Instructions to use Helsinki-NLP/opus-mt-da-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-da-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-da-es")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-da-es") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-da-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
7f83e13
-
Adding generation config file(s)
e81e961
-
Add TF weights
Joao Gante9eb4278
-
metadata: add license
59b50e5
-
Changed num_beams to 4
8cb155b
-
Update README.md
66f4026
-
Update README.md
8188b06 -
Update config.json
66c18fc -
Update tokenizer_config.json
fc591a9 -
Update vocab.json
fe4accd
-
Update README.md
4523761 -
Update config.json
f89876d -
Update tokenizer_config.json
3d15f94 -
Update vocab.json
7057af7 -
Update README.md
54808f4
-
Update README.md
18b0754 -
Update README.md
4b78b5f
-
Update README.md
5d98a87
-
Update README.md
b4730b9
-
Update config.json
a35725a -
Update config.json
2d6e328
-
Update config.json
2771340 -
Update config.json
1c131d5
-
Update target.spm
47661b8 -
Update tokenizer_config.json
9bfdf79 -
Update vocab.json
e52d229 -
Update source.spm
ab15d4d -
Update config.json
9d43140 -
Update pytorch_model.bin
18ad8dd -
initial commit
feb2556