Instructions to use Helsinki-NLP/opus-mt-en-phi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-phi 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-phi")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-phi") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-phi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
928b8e1
-
Adding generation config file(s)
7a09489
-
Add TF weights
Joao Gante970f88e
-
Changed num_beams to 4
02fc4c7
-
Update README.md
10a2549 -
Update README.md
bd9a612 -
Update metadata.json
ff8ef56
-
Update README.md
193f85c -
Update config.json
e4cfc13 -
Update metadata.json
a873473 -
Update tokenizer_config.json
d3f5e36 -
Update vocab.json
3f9abcb -
Update README.md
845e952 -
Update metadata.json
fd56316 -
Update README.md
8754916 -
Update config.json
e9c3b65 -
Update metadata.json
bec2c4a -
Update pytorch_model.bin
0ceecf4 -
Update source.spm
66a572d -
Update target.spm
252aecb -
Update tokenizer_config.json
b609458 -
Update vocab.json
1e0412e -
initial commit
de1c0da