Instructions to use Helsinki-NLP/opus-mt-sv-wls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-sv-wls 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-wls")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-sv-wls") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-sv-wls") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 25b3fb0c8a8b2bcdab78f38d8db2a9d8510942b6e2a876642295a965bd845f21
- Size of remote file:
- 261 MB
- SHA256:
- 331a536b321170dd3b6f01cde5f27b6cdef2fdae8b2b033450a02cc8439ee524
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.