Instructions to use Helsinki-NLP/opus-mt-mt-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-mt-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-mt-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-mt-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-mt-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
cb8bd17
-
Adding generation config file(s)
df6c34e
-
metadata: add license
ba70458
-
add model
f78cf4e -
allow flax
e85cb31
-
upload tf
552db36
-
push tf model
7d86c84
-
Update README.md
fd7a7df
-
Update README.md
f64eb49 -
Update config.json
028851e -
Update tokenizer_config.json
2a5f806 -
Update vocab.json
fc2ba5a
-
Update README.md
8c0c2c2 -
Update config.json
345de28 -
Update tokenizer_config.json
696071f -
Update vocab.json
ac12c68 -
Update README.md
a3be433
-
Update README.md
17a2509 -
Update README.md
9eded36
-
Update README.md
f470b76
-
Update README.md
c11cb04
-
Update config.json
9cfaa7c -
Update pytorch_model.bin
49874f3
-
Update config.json
30e8b4f -
Update config.json
730bf5b
-
Update config.json
3e4b658 -
Update config.json
672e144
-
Update source.spm
7893650 -
Update target.spm
f3d5cbe -
Update tokenizer_config.json
5dd6338 -
Update vocab.json
896d2fe -
Update config.json
497909c -
initial commit
cb1f8d4