Instructions to use Helsinki-NLP/opus-mt-ROMANCE-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-ROMANCE-en 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-ROMANCE-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ROMANCE-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-ROMANCE-en", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
e9ca997
-
Adding generation config file(s)
a8ed564
-
Add TF weights
Joao Gante5337de9
-
metadata: add license
dd27a5d
-
Changed num_beams to 4
bb3bddd
-
Update README.md
6fd83bd
-
Update README.md
2faabc8 -
Update config.json
46caeea -
Update tokenizer_config.json
8a56edd -
Update vocab.json
381afb9
-
Update README.md
3160c80 -
Update config.json
5374cb3 -
Update tokenizer_config.json
0f983da -
Update vocab.json
8fe5e82 -
Update README.md
90d41b4
-
Update README.md
8a92b63 -
Update README.md
7c1a988
-
Update README.md
5000eb3
-
Update rust_model.ot
725c00d
-
Update README.md
55a8080
-
Update config.json
8d83e3f -
Update pytorch_model.bin
8dad781 -
Update vocab.json
652a02c -
Update target.spm
624d963 -
Update tokenizer_config.json
2b3598c -
Update source.spm
caacea1 -
Update config.json
c1b7f6d -
initial commit
53d24b1