Instructions to use Helsinki-NLP/opus-mt-rn-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-rn-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-rn-de")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-rn-de") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-rn-de", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
fd53d09
-
Adding generation config file(s)
6057eea
-
Add TF weights
Joao Gante5f0bdb6
-
Update README.md
98bffa5 -
Update README.md
e868bb8 -
Update metadata.json
494cc15
-
Update README.md
ccd3e92 -
Update config.json
6d84f5f -
Update metadata.json
8ea226a -
Update tokenizer_config.json
f9ee4b4 -
Update vocab.json
8e8e268 -
Update README.md
cec264f -
Update metadata.json
23d0cf0 -
Update README.md
58741f1 -
Update config.json
9c6ae1b -
Update metadata.json
4c2c928 -
Update pytorch_model.bin
3bbd253 -
Update source.spm
c3c5e5a -
Update target.spm
a03dae6 -
Update tokenizer_config.json
946bd07 -
Update vocab.json
41f9481 -
initial commit
78fb4e8