Instructions to use Helsinki-NLP/opus-mt-sv-NORWAY with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-sv-NORWAY 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-sv-NORWAY")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-sv-NORWAY") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-sv-NORWAY", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
81e513b
-
Adding generation config file(s)
7b85a6f
-
Add TF weights
Joao Gante5919661
-
metadata: add license
9cc31ac
-
Update README.md
f48e4a9
-
Update README.md
792cc33
-
Update README.md
8d94453 -
Update config.json
48a709b -
Update tokenizer_config.json
386c529 -
Update vocab.json
646048c -
Update README.md
03f8c2a
-
Update README.md
19d2f8d -
Update README.md
c621c5c
-
Update README.md
e767e1e
-
Update README.md
77d27eb
-
Update config.json
e4d7208 -
Update pytorch_model.bin
d0f4f2b -
Update tokenizer_config.json
4b8db70 -
Update vocab.json
b50d3de -
Update source.spm
9983d8f -
Update target.spm
49c012e -
Update config.json
fa44660 -
initial commit
ff05046