Instructions to use Helsinki-NLP/opus-mt-es-ca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-es-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-es-ca")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-es-ca") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-es-ca", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
d0f388b
-
Adding generation config file(s)
ceae974
-
Add TF weights
Joao Gante061ac7b
-
Changed num_beams to 4
608d4b0
-
Update README.md
f2827e5 -
Update README.md
e1c4c2d -
Update metadata.json
0fa15ea
-
Update README.md
1a2e39f -
Update config.json
a13c091 -
Update metadata.json
4d8aa4f -
Update tokenizer_config.json
78b2e0c -
Update vocab.json
aae8c74 -
Update README.md
3cf9425 -
Update metadata.json
43ccf7f -
Update README.md
c8c2f39 -
Update config.json
b2dd55c -
Update metadata.json
4f3aed6 -
Update pytorch_model.bin
3651a38 -
Update source.spm
5fd4684 -
Update target.spm
39a8504 -
Update tokenizer_config.json
8ba94cf -
Update vocab.json
d5c1877
-
Update README.md
857a3ad -
Update config.json
82cea96 -
Update tokenizer_config.json
1bbaf4b -
Update vocab.json
6a8dad0 -
Update README.md
4e64830
-
Update README.md
3e0dd7e -
Update README.md
0c3a47b
-
Update README.md
6e16be9
-
Update README.md
3dac44e
-
Update config.json
d3c91e5 -
Update config.json
9115beb
-
Update config.json
7907089 -
Update config.json
b680306
-
Update source.spm
112ddb4 -
Update target.spm
2efcfd2 -
Update tokenizer_config.json
b0837d6 -
Update vocab.json
bd44cbd -
Update config.json
a17ca82 -
initial commit
2458884