Instructions to use Helsinki-NLP/opus-mt-it-ca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-it-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-it-ca")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-it-ca") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-it-ca", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
fe86cdf
-
Adding generation config file(s)
19f0317
-
Add TF weights
Joao Gante7cac62a
-
Update README.md
be40b8f -
Update README.md
1883d95 -
Update metadata.json
6c9ff84
-
Update README.md
3f7c88c -
Update config.json
ecbfd4f -
Update metadata.json
bf6cb26 -
Update tokenizer_config.json
b4de0f3 -
Update vocab.json
17e5d5b -
Update README.md
409e58e -
Update metadata.json
42394d2 -
Update README.md
b8f4677 -
Update config.json
e645000 -
Update metadata.json
4761329 -
Update pytorch_model.bin
d717396 -
Update source.spm
bd1b514 -
Update target.spm
2317210 -
Update tokenizer_config.json
23106fc -
Update vocab.json
8f15fed -
initial commit
b066715