Instructions to use Helsinki-NLP/opus-mt-eo-af with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-eo-af 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-eo-af")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-eo-af") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-eo-af", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
bc81dfe
-
Adding generation config file(s)
531a4ed
-
Add TF weights
Joao Ganteecfd0a3
-
Changed num_beams to 4
583c53f
-
Update README.md
e43dfe2 -
Update README.md
9d8eeca -
Update metadata.json
97dd6e2
-
Update README.md
4ada673 -
Update config.json
3bb9ad7 -
Update metadata.json
6d048b6 -
Update tokenizer_config.json
2dbcf52 -
Update vocab.json
9cef3ae -
Update README.md
31159df -
Update metadata.json
7a535ca -
Update README.md
4059c79 -
Update config.json
c5f792a -
Update metadata.json
4c32184 -
Update pytorch_model.bin
a995336 -
Update source.spm
fe00162 -
Update target.spm
a274040 -
Update tokenizer_config.json
0a6b1ee -
Update vocab.json
d404a0c -
initial commit
2bc070b