Instructions to use Helsinki-NLP/opus-mt-en-map with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-map 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-map")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-map") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-map", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
67fc13c
-
Adding generation config file(s)
c51b229
-
Add TF weights
Joao Gante49261d5
-
Changed num_beams to 4
dea2717
-
Update README.md
762a0dd -
Update README.md
6b6e8d8 -
Update metadata.json
1a6bf8c
-
Update README.md
e9005eb -
Update config.json
9e3e6bc -
Update metadata.json
12d89c4 -
Update tokenizer_config.json
b220ac4 -
Update vocab.json
ed604e6 -
Update README.md
a3e435c -
Update metadata.json
18a7c49 -
Update README.md
7545522 -
Update config.json
b632b23 -
Update metadata.json
b163c78 -
Update pytorch_model.bin
55a3f29 -
Update source.spm
aa78408 -
Update target.spm
0946ee5 -
Update tokenizer_config.json
df041e9 -
Update vocab.json
0dec933 -
initial commit
fe6c718