Instructions to use Helsinki-NLP/opus-mt-da-no with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-da-no 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-no")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-da-no") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-da-no", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
8326efe
-
Adding generation config file(s)
adf40dc
-
Add TF weights
Joao Gante4a77348
-
Changed num_beams to 4
0c27c6a
-
Update README.md
14769a1 -
Update README.md
25bf3b7 -
Update metadata.json
8d5863f
-
Update README.md
638a850 -
Update config.json
fec0d8e -
Update metadata.json
ca5fd5d -
Update tokenizer_config.json
0438a90 -
Update vocab.json
4bfab48 -
Update README.md
82d3a72 -
Update metadata.json
00d6018 -
Update README.md
e6e0caf -
Update config.json
a9f9e0b -
Update metadata.json
8d302b1 -
Update pytorch_model.bin
753bbfe -
Update source.spm
c0553eb -
Update target.spm
d98b130 -
Update tokenizer_config.json
19db3ad -
Update vocab.json
ede2a77 -
initial commit
c652a9f