Instructions to use Helsinki-NLP/opus-mt-eo-da with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-eo-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-eo-da")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-eo-da") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-eo-da", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.ab8115d
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
91d3532
-
Adding generation config file(s)
50aa087
-
Add TF weights
Joao Gante82f627f
-
Changed num_beams to 4
9371fec
-
Update README.md
0aab2f2 -
Update README.md
e581794 -
Update metadata.json
7af0879
-
Update README.md
ee19dfe -
Update config.json
ec18c62 -
Update metadata.json
11e8e64 -
Update tokenizer_config.json
38d144e -
Update vocab.json
3a423fa -
Update README.md
99e3d34 -
Update metadata.json
c5c72e0 -
Update README.md
c8ae4b6 -
Update config.json
43dac5d -
Update metadata.json
52b46cf -
Update pytorch_model.bin
a1cd74d -
Update source.spm
a5a5ccd -
Update target.spm
c11f0f6 -
Update tokenizer_config.json
3462fc6 -
Update vocab.json
33a1f18 -
initial commit
73c10c0