Instructions to use Helsinki-NLP/opus-mt-da-fi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-da-fi 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-fi")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-da-fi") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-da-fi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
2655496
-
Adding generation config file(s)
16d5390
-
Add TF weights
Joao Gantec16b981
-
metadata: add license
a2e614c
-
Changed num_beams to 4
6127ee6
-
Update README.md
721fbd6
-
Update README.md
e629896 -
Update config.json
82dbaa0 -
Update tokenizer_config.json
3d25163 -
Update vocab.json
54bd481
-
Update README.md
888688f -
Update config.json
1e3f816 -
Update tokenizer_config.json
ec991e8 -
Update vocab.json
6a5d55e -
Update README.md
eadbdd2
-
Update README.md
6f5f440 -
Update README.md
64bf1e4
-
Update README.md
1706687
-
Update README.md
388f15c
-
Update config.json
2b783c0 -
Update config.json
3daf4bd
-
Update config.json
4637900 -
Update config.json
4278e97
-
Update tokenizer_config.json
27e5c98 -
Update vocab.json
1b80c29 -
Update source.spm
f0883c0 -
Update target.spm
ef7f304 -
Update pytorch_model.bin
92536c7 -
Update config.json
64a29f6 -
initial commit
a10dd00