Instructions to use Helsinki-NLP/opus-mt-ca-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-ca-it 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-it")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ca-it") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-ca-it", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
235bb1e
-
Adding generation config file(s)
8fea426
-
Add TF weights
Joao Gante51ffeae
-
Changed num_beams to 4
7d3b4ce
-
Update README.md
ab15367 -
Update README.md
87f99ac -
Update metadata.json
128a0f0
-
Update README.md
78d6640 -
Update config.json
4c672a9 -
Update metadata.json
46849a7 -
Update tokenizer_config.json
d2c5df2 -
Update vocab.json
d21e6aa -
Update README.md
f84f920 -
Update metadata.json
7d95f86 -
Update README.md
046a0c0 -
Update config.json
31b7473 -
Update metadata.json
86f908e -
Update pytorch_model.bin
33a655b -
Update source.spm
1f45f3e -
Update target.spm
212029b -
Update tokenizer_config.json
583c4dd -
Update vocab.json
a2d17f5 -
initial commit
36375e8