Instructions to use Helsinki-NLP/opus-mt-afa-afa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-afa-afa 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-afa-afa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-afa-afa") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-afa-afa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
44c198b
-
Adding generation config file(s)
c5c37a1
-
Add TF weights
Joao Gante8b7f148
-
Changed num_beams to 4
550470c
-
Update README.md
559b22c -
Update README.md
828ffe9 -
Update metadata.json
41e9fe3
-
Update README.md
6595f7a -
Update config.json
44d3282 -
Update metadata.json
98ac2eb -
Update tokenizer_config.json
eb2ecb7 -
Update vocab.json
b3e6553 -
Update README.md
ca5b641 -
Update metadata.json
225ed69
-
Update README.md
abb2b3c -
Update config.json
1756cff -
Update metadata.json
7d53e63 -
Update tokenizer_config.json
22528e5 -
Update vocab.json
6db19a6 -
Update README.md
ef528c4 -
Update README.md
847f021 -
Update metadata.json
d12c955
-
Update README.md
d9dfd9f -
Update README.md
8f52f3d -
Update README.md
7f494f3 -
Update README.md
97881ae
-
Update vocab.json
9c15bc6 -
Update config.json
a9b7e9e -
Update pytorch_model.bin
f1c9b93 -
Update source.spm
0870a9c -
Update target.spm
5ecec7b -
Update tokenizer_config.json
04861da -
initial commit
26f216d