Instructions to use Helsinki-NLP/opus-mt-de-pl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-de-pl 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-pl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-de-pl") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-de-pl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
039c47d
-
Adding generation config file(s)
affbabf
-
Add TF weights
Joao Gante66fe1ad
-
metadata: add license
67458bb
-
Changed num_beams to 4
1598092
-
Update README.md
fdac493
-
Update README.md
81a998c -
Update config.json
585d321 -
Update tokenizer_config.json
48a60a2 -
Update vocab.json
f32ebee
-
Update README.md
1b1c748 -
Update config.json
19702b9 -
Update tokenizer_config.json
c9bc2bf -
Update vocab.json
c8c0176 -
Update README.md
dbcf04f
-
Update README.md
273b932 -
Update README.md
47474c1
-
Update README.md
216bdf4
-
Update README.md
c1806bc
-
Update config.json
458a880 -
Update config.json
0e5265b
-
Update config.json
c2cf735 -
Update config.json
91e7a17
-
Update target.spm
cade1bc -
Update tokenizer_config.json
a8007ae -
Update vocab.json
eba62be -
Update source.spm
660db07 -
Update config.json
55a6128 -
Update pytorch_model.bin
65130b3 -
initial commit
1b2bce3