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