Instructions to use Helsinki-NLP/opus-mt-fr-ilo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-fr-ilo 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-ilo")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fr-ilo") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fr-ilo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
dd3a615
-
Adding generation config file(s)
f7f18a6
-
Add TF weights
Joao Ganted77d760
-
metadata: add license
30d6f90
-
Changed num_beams to 4
29fb211
-
Update README.md
66d57ef
-
Update README.md
d5fb887 -
Update config.json
4c75907 -
Update tokenizer_config.json
c6bbefe -
Update vocab.json
abe4da2
-
Update README.md
0b05489 -
Update config.json
d274972 -
Update tokenizer_config.json
bb35255 -
Update vocab.json
ed38730 -
Update README.md
ca6d9bc
-
Update README.md
eb1b043 -
Update README.md
045b40a
-
Update README.md
7fa1e36
-
Update README.md
d05aee3
-
Update config.json
584a295 -
Update config.json
9053636
-
Update config.json
e2d7c79 -
Update config.json
b029f1a
-
Update target.spm
5ebac5b -
Update tokenizer_config.json
521635c -
Update vocab.json
f48d8f9 -
Update source.spm
5599baa -
Update pytorch_model.bin
db5c88b -
Update config.json
a147185 -
initial commit
578dda0