Instructions to use Helsinki-NLP/opus-mt-ca-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-ca-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-ca-de")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ca-de") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-ca-de", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
c4100ea
-
Adding generation config file(s)
6f9a38d
-
Add TF weights
Joao Gante6369caa
-
Changed num_beams to 4
0ba8e70
-
Update README.md
198a407 -
Update README.md
0ab9582 -
Update metadata.json
b7525a3
-
Update README.md
6f8942e -
Update config.json
d0e93d0 -
Update metadata.json
bdd7073 -
Update tokenizer_config.json
fec9b6f -
Update vocab.json
222325b -
Update README.md
a39234a -
Update metadata.json
0149197 -
Update README.md
4c2f31c -
Update config.json
e4b11dd -
Update metadata.json
ba9c4bc -
Update pytorch_model.bin
d0585d7 -
Update source.spm
47e67c6 -
Update target.spm
ff65c01 -
Update tokenizer_config.json
895bbbf -
Update vocab.json
92231bf
-
Update README.md
bf8d134 -
Update config.json
ee41fe4 -
Update tokenizer_config.json
7663deb -
Update vocab.json
c7cf900 -
Update README.md
0fc405b
-
Update README.md
8d1e3b8 -
Update README.md
a7a0229
-
Update README.md
f44c95c
-
Update README.md
6569832
-
Update config.json
f7b8c49 -
Update config.json
35ee522
-
Update config.json
dfa2be3 -
Update config.json
e963070
-
Update source.spm
42602aa -
Update target.spm
815b168 -
Update tokenizer_config.json
d76d389 -
Update vocab.json
c7f3a32 -
Update config.json
805db36 -
initial commit
2dc4740