Instructions to use Helsinki-NLP/opus-mt-en-cel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-cel 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-en-cel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-cel") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-cel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
e794385
-
Adding generation config file(s)
1fc6fa8
-
Add TF weights
Joao Gante5c89513
-
Changed num_beams to 4
d1a4b33
-
Update README.md
44028fc -
Update README.md
e8adda0 -
Update metadata.json
7a4e88e
-
Update README.md
7472c6f -
Update config.json
94c0b36 -
Update metadata.json
07fdedc -
Update tokenizer_config.json
4af6e21 -
Update vocab.json
9f6c72a -
Update README.md
2fdf925 -
Update metadata.json
482fbb5 -
Update README.md
afae6ba -
Update config.json
a459cb6 -
Update metadata.json
a4bee58 -
Update pytorch_model.bin
b9b7b43 -
Update source.spm
90731f1 -
Update target.spm
25c45c8 -
Update tokenizer_config.json
8eddd32 -
Update vocab.json
5b9c1fb -
initial commit
40d662e