Instructions to use Helsinki-NLP/opus-mt-fr-ca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-fr-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-fr-ca")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fr-ca") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fr-ca", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
bff56ee
-
Adding generation config file(s)
8e49a64
-
Add TF weights
Joao Ganted49f703
-
Changed num_beams to 4
e485150
-
Update README.md
88f7bf4 -
Update README.md
7e801d0 -
Update metadata.json
5ac5502
-
Update README.md
555cb38 -
Update config.json
5790386 -
Update metadata.json
0a3a80f -
Update tokenizer_config.json
749ee13 -
Update vocab.json
6bf400e -
Update README.md
1a69752 -
Update metadata.json
c84665e -
Update README.md
df98266 -
Update config.json
d39658f -
Update metadata.json
11603ff -
Update pytorch_model.bin
14f380e -
Update source.spm
aa96fb8 -
Update target.spm
de4cb5d -
Update tokenizer_config.json
d24534d -
Update vocab.json
f3c3aa4
-
Update README.md
c8082b0 -
Update config.json
30ac544 -
Update tokenizer_config.json
6da629c -
Update vocab.json
f1fdd12 -
Update README.md
a7c0000
-
Update README.md
171c818 -
Update README.md
64718b5
-
Update README.md
47ba633
-
Update README.md
891dd69
-
Update config.json
7fdf1c2 -
Update config.json
0e95d38
-
Update config.json
9b63742 -
Update config.json
fe00ef9
-
Update source.spm
f5656aa -
Update target.spm
024e145 -
Update tokenizer_config.json
b6089c7 -
Update vocab.json
0052212 -
Update config.json
3d34e28 -
initial commit
478ca64