Instructions to use Helsinki-NLP/opus-mt-ca-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-ca-es 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-es")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ca-es") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-ca-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
f7f2c13
-
Adding generation config file(s)
f912e43
-
Add TF weights
Joao Gante9b4c2f8
-
metadata: add license
3b93f0c
-
Changed num_beams to 4
695ddc9
-
Update README.md
5f9d5ba
-
Update README.md
cdda770 -
Update vocab.json
d5d2857 -
Update config.json
9225f87 -
Update tokenizer_config.json
52fc857
-
Update README.md
62d366a -
Update config.json
6c26c4e -
Update tokenizer_config.json
224f85f -
Update vocab.json
3b9d041 -
Update README.md
d503fc5
-
Update README.md
35198b0 -
Update README.md
fbeea84
-
Update README.md
f804be3
-
Update README.md
73fe2e2
-
Update config.json
1117448 -
Update config.json
a66361e
-
Update config.json
72ef52f -
Update config.json
3ec10de
-
Update target.spm
170b904 -
Update tokenizer_config.json
76db43c -
Update vocab.json
0edd1e2 -
Update source.spm
7192d6e -
Update pytorch_model.bin
4fd653c -
Update config.json
4b4da3c -
initial commit
046b2f0