Instructions to use Helsinki-NLP/opus-mt-en-ROMANCE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-ROMANCE 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-en-ROMANCE")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-ROMANCE") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-ROMANCE", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
f8f3a28
-
Adding generation config file(s)
f602b9e
-
Update TF weights (#1)
joaogante- Update TF weights (d85825e8fb5ca74b1a07ae28a7dcca9594c38724)1a8fa10
-
metadata: add license
92870a2
-
add model
0651e7f -
allow flax
c5a91a6
-
upload tf
1854185
-
Changed num_beams to 4
0accd00
-
add tf model
7c66dfc
-
Update README.md
bcef9ad
-
Update README.md
5d8af38 -
Update config.json
409ea68 -
Update tokenizer_config.json
210fc5d -
Update vocab.json
ce18e5c
-
Update README.md
a453616 -
Update config.json
534661a -
Update tokenizer_config.json
3b5cf2a -
Update vocab.json
11af9fd -
Update README.md
35a33b0
-
Update README.md
21f5bad -
Update README.md
fe5e8d5
-
Update config.json
f341835 -
Update tokenizer_config.json
b32129c -
Update target.spm
4493617 -
Update source.spm
26a7878 -
Update vocab.json
e1c6eb5 -
Update vocab.json
2b8beb5
-
Update README.md
5077bb8
-
Update rust_model.ot
41d36bb
-
Update README.md
0f7f661
-
Update config.json
9c9349e -
Update pytorch_model.bin
f074c55 -
Update tokenizer_config.json
a0db414 -
Update vocab.json
f695407 -
Update target.spm
f9ba683 -
Update source.spm
29d659d -
Update config.json
cd6819c -
initial commit
4c05596