Instructions to use Helsinki-NLP/opus-mt-nic-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-nic-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-nic-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-nic-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-nic-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
acb0614
-
Adding generation config file(s)
2d8ff4f
-
Add TF weights
Joao Gante1e42b11
-
Update README.md
9127f78 -
Update README.md
557399e -
Update metadata.json
752638f
-
Update README.md
e899103 -
Update config.json
e040e8b -
Update metadata.json
6c79a1b -
Update tokenizer_config.json
86521a1 -
Update vocab.json
6c3683a -
Update README.md
48dfc34 -
Update metadata.json
7b513a2 -
Update README.md
7faf957 -
Update config.json
c4b685d -
Update metadata.json
64d1b42 -
Update pytorch_model.bin
1b6cbb3 -
Update source.spm
6503d3b -
Update target.spm
f758789 -
Update tokenizer_config.json
94f11b7 -
Update vocab.json
245a174 -
initial commit
d5d9d89