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