Instructions to use Helsinki-NLP/opus-mt-en-gmq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-gmq 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-gmq")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-gmq") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-gmq", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
1011a69
-
Adding generation config file(s)
102286e
-
Add TF weights
Joao Gantee4e2d4e
-
Changed num_beams to 4
31425dc
-
Update README.md
47b8a77 -
Update README.md
064caa6 -
Update metadata.json
b238644
-
Update README.md
c889f6b -
Update config.json
1ca1903 -
Update metadata.json
3da6e17 -
Update tokenizer_config.json
f8173d8 -
Update vocab.json
d076e4b -
Update README.md
e6f0210 -
Update metadata.json
ad4b64c -
Update README.md
82d8ef5 -
Update config.json
0e98f5c -
Update metadata.json
6b63907 -
Update pytorch_model.bin
a0aaa50 -
Update source.spm
6cf4b6d -
Update target.spm
c98c522 -
Update tokenizer_config.json
61abedb -
Update vocab.json
5a3ae37 -
initial commit
aec151e