Instructions to use Nextcloud-AI/opus-mt-de-fi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-de-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-de-fi")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-de-fi") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-de-fi", 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.6bf43ae
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
76e6be2
-
Adding generation config file(s)
6e05215
-
Add TF weights
Joao Gantee6ca98f
-
metadata: add license
bbd50ee
-
Changed num_beams to 4
9e86dd3
-
Update README.md
bad995f
-
Update README.md
423e807 -
Update config.json
57944f4 -
Update tokenizer_config.json
4f5bcc4 -
Update vocab.json
60ee47a
-
Update README.md
3108657 -
Update config.json
59a1119 -
Update tokenizer_config.json
487679f -
Update vocab.json
ffebf43 -
Update README.md
eb893ca
-
Update README.md
897b98a -
Update README.md
f298e1c
-
Update README.md
0673174
-
Update README.md
159fbac
-
Update config.json
46c0131 -
Update config.json
bb7f106
-
Update config.json
c0bad00 -
Update config.json
2f810cf
-
Update source.spm
482f49d -
Update target.spm
44a8bd7 -
Update tokenizer_config.json
4362b79 -
Update vocab.json
3bff994 -
Update config.json
f769b2a -
Update pytorch_model.bin
490e9e5 -
initial commit
b804014