Instructions to use Helsinki-NLP/opus-mt-de-da with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-de-da 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-de-da")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-de-da") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-de-da", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
4f9dbae
-
Adding generation config file(s)
1a3bd09
-
Add TF weights
Joao Gante40615e0
-
metadata: add license
bccfbee
-
Changed num_beams to 4
b85bb14
-
Update README.md
c9ceb3c
-
Update README.md
ec0fae9 -
Update config.json
71e4491 -
Update tokenizer_config.json
501fa6e -
Update vocab.json
85431c7
-
Update README.md
1876355 -
Update config.json
5feaaf8 -
Update tokenizer_config.json
c878e68 -
Update vocab.json
22aef34 -
Update README.md
0ed40df
-
Update README.md
f0fb7cd -
Update README.md
09cd894
-
Update README.md
c547dd1
-
Update README.md
82f8f2b
-
Update config.json
9ce5705 -
Update config.json
00bbbc6
-
Update config.json
79e9308 -
Update config.json
192292f
-
Update tokenizer_config.json
dabc882 -
Update vocab.json
ffc0b9c -
Update source.spm
d9ee9b3 -
Update target.spm
8b132c6 -
Update config.json
8aadab7 -
Update pytorch_model.bin
13a702b -
initial commit
bbd5571