Instructions to use Helsinki-NLP/opus-mt-fr-mfe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-fr-mfe 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-mfe")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fr-mfe") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fr-mfe", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
9951fa4
-
Adding generation config file(s)
c4029a7
-
Add TF weights
Joao Gante83aea97
-
metadata: add license
219ad5d
-
Changed num_beams to 4
8cd2092
-
Update README.md
ec2a233
-
Update README.md
67c8ace -
Update config.json
4e9f955 -
Update tokenizer_config.json
d7baa83 -
Update vocab.json
5d98631
-
Update README.md
59905df -
Update config.json
f7c37c0 -
Update tokenizer_config.json
0086fcb -
Update vocab.json
1f39d17 -
Update README.md
0ef62a6
-
Update README.md
6b19aab -
Update README.md
619639e
-
Update README.md
0f83a43
-
Update README.md
58bdafe
-
Update config.json
21216a5 -
Update config.json
f01d6d0
-
Update config.json
b11e6e4 -
Update config.json
c1ea214
-
Update tokenizer_config.json
e2bb8a5 -
Update vocab.json
49b9c59 -
Update source.spm
b64c356 -
Update target.spm
c40fcf7 -
Update config.json
9143fd0 -
Update pytorch_model.bin
dcfa552 -
initial commit
80d3680