Instructions to use Nextcloud-AI/opus-mt-nl-fi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-nl-fi 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-nl-fi")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-nl-fi") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-nl-fi", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1
by SFconvertbot - opened
Files changed (2)
- .gitattributes+1
- model.safetensorsAdded+3
5 unmodified lines67895 unmodified lines*.tar.gz filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -textmodel.safetensors filter=lfs diff=lfs merge=lfs -text123version https://git-lfs.github.com/spec/v1oid sha256:da3abc21e31f7ecaddc3a9f62106da5b3b793db55aeb23bc7e189fa2882dd459size 301464000.gitattributes+1
model.safetensorsAdded+3