Instructions to use Helsinki-NLP/opus-mt-sem-sem with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-sem-sem 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-sem-sem")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-sem-sem") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-sem-sem", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
3d90883
-
Adding generation config file(s)
2667647
-
Add TF weights
Joao Gante1f8dd23
-
Update README.md
3bc8377 -
Update README.md
6b5a6da -
Update metadata.json
18ee73b
-
Update README.md
2925438 -
Update README.md
4fe2bb7 -
Update metadata.json
c7c51e3
-
Update README.md
56ae437 -
Update config.json
870705c -
Update metadata.json
0c64ee0 -
Update tokenizer_config.json
f263847 -
Update vocab.json
e1cb456 -
Update README.md
3e3e84b -
Update README.md
72e2129 -
Update metadata.json
e129a16
-
Update README.md
da0bf31 -
Update README.md
0dd2249 -
Update README.md
a648162 -
Update README.md
4082ab7
-
Update source.spm
09d3d04 -
Update target.spm
98de82b -
Update tokenizer_config.json
b2cebb4 -
Update vocab.json
a39d62b -
Update config.json
8fd9733 -
Update pytorch_model.bin
7d99aa7 -
initial commit
85c9194