Instructions to use Helsinki-NLP/opus-mt-da-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-da-de 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-de")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-da-de") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-da-de", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
d86844d
-
Adding generation config file(s)
497677e
-
Add TF weights
Joao Ganteb03fabc
-
metadata: add license
2e4d10f
-
Changed num_beams to 4
6e9dfb5
-
Update README.md
2cb668f
-
Update README.md
1ec03d3 -
Update config.json
f36e88c -
Update tokenizer_config.json
c1c6952 -
Update vocab.json
c6260e1
-
Update README.md
80f1f5e -
Update config.json
1448b59 -
Update tokenizer_config.json
4032534 -
Update vocab.json
7a136b4 -
Update README.md
1e2a2e9
-
Update README.md
ca6b8f3 -
Update README.md
c478852
-
Update README.md
d2e813e
-
Update README.md
535893d
-
Update config.json
0ef5695 -
Update config.json
2c390b4
-
Update config.json
cb1a3a6 -
Update config.json
7d65cbf
-
Update tokenizer_config.json
00c8cf8 -
Update vocab.json
c44e3ee -
Update source.spm
c7bb4b3 -
Update target.spm
739d85b -
Update config.json
5ee7d4e -
Update pytorch_model.bin
7adb869 -
initial commit
5ba1371