Instructions to use Helsinki-NLP/opus-mt-de-ho with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-de-ho 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-ho")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-de-ho") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-de-ho", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
a1931fd
-
Adding generation config file(s)
4d5b000
-
Add TF weights
Joao Gante53069d9
-
metadata: add license
6f07189
-
Changed num_beams to 4
a5905ec
-
Update README.md
1c8fa82
-
Update README.md
9801496 -
Update config.json
21fc25e -
Update tokenizer_config.json
12a8a79 -
Update vocab.json
7a4dbdd
-
Update README.md
b9afff6 -
Update config.json
3efde40 -
Update tokenizer_config.json
528cad8 -
Update vocab.json
25d6d10 -
Update README.md
e420ff2
-
Update README.md
29f2288 -
Update README.md
44ac8c8
-
Update README.md
ab7eb0e
-
Update README.md
c487b1f
-
Update config.json
4f78799 -
Update config.json
43a661b
-
Update config.json
0858652 -
Update config.json
96ac1e6
-
Update source.spm
5477d4e -
Update target.spm
cec90dc -
Update tokenizer_config.json
6ca95a0 -
Update vocab.json
7f36ecf -
Update config.json
69ec9ba -
Update pytorch_model.bin
28a622d -
initial commit
c6222c6