Instructions to use Helsinki-NLP/opus-mt-fr-tn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-fr-tn 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-fr-tn")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fr-tn") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fr-tn", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
20e6c8c
-
Adding generation config file(s)
d8b5b10
-
Add TF weights
Joao Gantefb945e8
-
metadata: add license
e40ce59
-
Changed num_beams to 4
2bbfc67
-
Update README.md
ab9574b
-
Update README.md
a7a8fcb -
Update config.json
5fea506 -
Update tokenizer_config.json
aaa2594 -
Update vocab.json
6be0efa
-
Update README.md
f73ee4a -
Update config.json
7fd67a6 -
Update tokenizer_config.json
681f3b6 -
Update vocab.json
bb77696 -
Update README.md
8eefca4
-
Update README.md
c640e67 -
Update README.md
532514a
-
Update README.md
d6cf6db
-
Update README.md
cb7ffda
-
Update config.json
bedc782 -
Update config.json
46932c7
-
Update config.json
c185660 -
Update config.json
37e8e55
-
Update target.spm
5596637 -
Update tokenizer_config.json
5f96d71 -
Update vocab.json
554057e -
Update source.spm
114bb47 -
Update pytorch_model.bin
33ef706 -
Update config.json
fb70ce2 -
initial commit
ef694aa