Instructions to use Helsinki-NLP/opus-mt-de-ca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-de-ca 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-ca")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-de-ca") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-de-ca", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
38af5ad
-
Adding generation config file(s)
ae1b275
-
Add TF weights
Joao Gante182e5a9
-
Changed num_beams to 4
e335cb1
-
Update README.md
aa8fc30 -
Update README.md
3f01144 -
Update metadata.json
4808cde
-
Update README.md
42afc90 -
Update config.json
d4e277f -
Update metadata.json
f38cda5 -
Update tokenizer_config.json
de182d4 -
Update vocab.json
8a439d2 -
Update README.md
ccb51f0 -
Update metadata.json
be765ae -
Update README.md
4b52ac3 -
Update config.json
3614840 -
Update metadata.json
b889e8b -
Update pytorch_model.bin
d54bc1f -
Update source.spm
7f2aa85 -
Update target.spm
35bb79d -
Update tokenizer_config.json
d45b74f -
Update vocab.json
395181d
-
Update README.md
39a0cf1 -
Update config.json
88e5bcd -
Update tokenizer_config.json
b79230c -
Update vocab.json
a0877d2 -
Update README.md
f170c1d
-
Update README.md
8b69f2e -
Update README.md
6b7f244
-
Update README.md
81192c0
-
Update README.md
9a4bb52
-
Update config.json
10ba680 -
Update config.json
6910de4
-
Update config.json
ec8d731 -
Update config.json
d05c634
-
Update vocab.json
9fce05b -
Update source.spm
e579b4d -
Update target.spm
7892549 -
Update tokenizer_config.json
bf71301 -
Update config.json
7235161 -
initial commit
9208e4b