Instructions to use Helsinki-NLP/opus-mt-pl-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-pl-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-pl-de")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-pl-de") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-pl-de", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
0a33159
-
Adding generation config file(s)
daf7471
-
Add TF weights
Joao Gante30dfc1c
-
metadata: add license
da46563
-
Update README.md
bc73310
-
Update README.md
5a53339 -
Update config.json
a460fb1 -
Update tokenizer_config.json
85a8706 -
Update vocab.json
53dce01
-
Update README.md
1b31d98 -
Update config.json
b669986 -
Update tokenizer_config.json
8610f88 -
Update vocab.json
91afe74 -
Update README.md
c746609
-
Update README.md
aa3c428 -
Update README.md
a8ae758
-
Update README.md
76de5b0
-
Update README.md
7263ee9
-
Update config.json
a56baa7 -
Update config.json
6b7250e
-
Update config.json
c58a26b -
Update config.json
4cff18f
-
Update source.spm
d489f84 -
Update target.spm
aa0a1f6 -
Update tokenizer_config.json
0af6b02 -
Update vocab.json
e03c7c5 -
Update config.json
1286c14 -
Update pytorch_model.bin
b016721 -
initial commit
4c4ad83