Instructions to use Nextcloud-AI/opus-mt-de-nl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-de-nl 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-de-nl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-de-nl") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-de-nl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.1aad9ba
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
cff6d19
-
Adding generation config file(s)
b4152be
-
Add TF weights
Joao Gante81b2056
-
metadata: add license
da037ec
-
Changed num_beams to 4
0f6eccb
-
Update README.md
8f84d60
-
Update README.md
7567cb5 -
Update config.json
d99ca9f -
Update tokenizer_config.json
4165427 -
Update vocab.json
9b1debd
-
Update README.md
fc8aa62 -
Update config.json
77cfdd6 -
Update tokenizer_config.json
d801abe -
Update vocab.json
022a46b -
Update README.md
c2b5f32
-
Update README.md
66e2a51 -
Update README.md
9f25db6
-
Update README.md
32e2d4e
-
Update README.md
78d6144
-
Update config.json
7817936 -
Update config.json
a843fe6
-
Update config.json
2da9ea7 -
Update config.json
8b37a44
-
Update target.spm
c22a1a4 -
Update tokenizer_config.json
a085d3d -
Update vocab.json
70a28ce -
Update source.spm
d13cf73 -
Update config.json
0c7af73 -
Update pytorch_model.bin
19aef26 -
initial commit
858676d