Instructions to use Helsinki-NLP/opus-mt-SCANDINAVIA-SCANDINAVIA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-SCANDINAVIA-SCANDINAVIA 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-SCANDINAVIA-SCANDINAVIA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-SCANDINAVIA-SCANDINAVIA") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-SCANDINAVIA-SCANDINAVIA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
fad5310
-
Adding generation config file(s)
1cfb98e
-
Add TF weights
Joao Gante4271b48
-
metadata: add license
24d2e31
-
Changed num_beams to 4
034daff
-
Update README.md
7606a2c
-
Update README.md
438df76 -
Update config.json
7c0b685 -
Update tokenizer_config.json
8c478f1 -
Update vocab.json
3792af7
-
Update README.md
7ab8362 -
Update config.json
518c64c -
Update tokenizer_config.json
ac152a5 -
Update vocab.json
b3a24e1 -
Update README.md
2873d5d
-
Update README.md
9868345 -
Update README.md
7eff602
-
Update README.md
e893b15
-
Update README.md
77b82aa
-
Update config.json
bc4d2ab -
Update pytorch_model.bin
e094bc9 -
Update vocab.json
f48bee4 -
Update source.spm
d85a530 -
Update target.spm
77fd390 -
Update tokenizer_config.json
7ac0a87 -
Update config.json
b49e2cd -
initial commit
b6ce32a