Instructions to use Helsinki-NLP/opus-mt-ca-fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-ca-fr 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-fr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ca-fr") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-ca-fr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
7eadc0d
-
Adding generation config file(s)
c5ac887
-
Add TF weights
Joao Gante1463d9e
-
Changed num_beams to 4
db974af
-
Update README.md
cb2d84c -
Update README.md
6e398ca -
Update metadata.json
ec3fc86
-
Update README.md
7fadd1e -
Update config.json
66a6ec6 -
Update metadata.json
9f4d86d -
Update tokenizer_config.json
ad3622e -
Update vocab.json
2479d40 -
Update README.md
9615e7b -
Update metadata.json
abebcd3 -
Update README.md
e81a8f9 -
Update config.json
8f7a5b9 -
Update metadata.json
e1cf4cb -
Update pytorch_model.bin
b37d22b -
Update source.spm
a4bbc93 -
Update target.spm
4c6e189 -
Update tokenizer_config.json
02f1582 -
Update vocab.json
07dc621
-
Update README.md
e375bd7 -
Update config.json
daf3d0d -
Update tokenizer_config.json
eae058a -
Update vocab.json
b387ed8 -
Update README.md
0fa7e08
-
Update README.md
dc7c5d8 -
Update README.md
4d2f139
-
Update README.md
8acf4c9
-
Update README.md
82f6b02
-
Update config.json
70a9aff -
Update config.json
aef76d8
-
Update config.json
c6c4661 -
Update config.json
d5fac45
-
Update source.spm
206bd25 -
Update target.spm
854a63c -
Update tokenizer_config.json
bab0d53 -
Update vocab.json
8d94960 -
Update config.json
ba39da9 -
initial commit
872e93e