Instructions to use Nextcloud-AI/opus-mt-nl-sv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-nl-sv 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-sv")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-nl-sv") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-nl-sv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
1f55015
-
Adding generation config file(s)
bdedcf3
-
Add TF weights
Joao Gante7a654ad
-
metadata: add license
47ba429
-
Update README.md
9f5b431
-
Update README.md
2b7c539 -
Update config.json
a1a11fb -
Update tokenizer_config.json
efeb578 -
Update vocab.json
3492dbf
-
Update README.md
55084e5 -
Update config.json
360aa2d -
Update tokenizer_config.json
d7fa095 -
Update vocab.json
e5e8ba0 -
Update README.md
e984868
-
Update README.md
20f4c43 -
Update README.md
9629e81
-
Update README.md
4f5f838
-
Update README.md
e64b09c
-
Update config.json
e19cbc4 -
Update config.json
63fcbfe
-
Update config.json
df7f2d1 -
Update config.json
2f17c2d
-
Update source.spm
532643c -
Update target.spm
63b95b7 -
Update tokenizer_config.json
1a722c2 -
Update vocab.json
51aca1f -
Update config.json
0d76bb0 -
Update pytorch_model.bin
2a5cc88 -
initial commit
b264c76