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:
- 7da9bfddc867b22c63c874dcef9716b42e4d3a74969c34c2739f08a4c6c062b6
- Size of remote file:
- 261 MB
- SHA256:
- 869c0dbe5e71437ffd4b77379f2c8e4a504118ddc74cc632a9715fa2e2068c13
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.