Instructions to use Helsinki-NLP/opus-mt-pt-eo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-pt-eo 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-pt-eo")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-pt-eo") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-pt-eo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
bb68c2f
-
Adding generation config file(s)
6cb4a98
-
Add TF weights
Joao Gantefdb8197
-
Update README.md
01e3599 -
Update README.md
68e0d11 -
Update metadata.json
1449701
-
Update README.md
23333f4 -
Update config.json
ac83f05 -
Update metadata.json
4b6d990 -
Update tokenizer_config.json
a636eb3 -
Update vocab.json
9e91851 -
Update README.md
ffec5ff -
Update metadata.json
bdf4d77 -
Update README.md
72531ae -
Update config.json
9e4b0f9 -
Update metadata.json
546eb57 -
Update pytorch_model.bin
916d682 -
Update source.spm
0abae5b -
Update target.spm
3d4e29b -
Update tokenizer_config.json
ac840ac -
Update vocab.json
563ac00 -
initial commit
eeb70e5