Instructions to use Helsinki-NLP/opus-mt-ca-uk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-ca-uk 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-uk")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ca-uk") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-ca-uk", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
59177ad
-
Adding generation config file(s)
b7b37ef
-
Add TF weights
Joao Gante84b3b8b
-
Changed num_beams to 4
7da3855
-
Update README.md
48ce231 -
Update README.md
52457cf -
Update metadata.json
9f46437
-
Update README.md
9606b3e -
Update config.json
90baca3 -
Update metadata.json
ab3f271 -
Update tokenizer_config.json
507196a -
Update vocab.json
cd140a2 -
Update README.md
45ade7e -
Update metadata.json
a41e83a -
Update README.md
ce4c364 -
Update config.json
d22728f -
Update metadata.json
e6d7018 -
Update pytorch_model.bin
05ee780 -
Update source.spm
838afba -
Update target.spm
10def85 -
Update tokenizer_config.json
e83c235 -
Update vocab.json
15f8181 -
initial commit
6ab95df