Instructions to use Nextcloud-AI/opus-mt-de-fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-de-fr 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-fr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-de-fr") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-de-fr", 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.5c9a255
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
2b4fe24
-
Adding generation config file(s)
bb47830
-
Add TF weights
Joao Gantece63d74
-
metadata: add license
6aa8c40
-
Changed num_beams to 4
2397c3d
-
Update README.md
e93af7f
-
Update README.md
2c19bde -
Update config.json
d2be655 -
Update tokenizer_config.json
9e680f8 -
Update vocab.json
72a37d6
-
Update README.md
cf7a497 -
Update config.json
6dda959 -
Update tokenizer_config.json
c659e3d -
Update vocab.json
b5a182b -
Update README.md
3fd4980
-
Update README.md
be6dbef -
Update README.md
adb2155
-
Update README.md
d12d6d5
-
Update rust_model.ot
59c61ec
-
Update README.md
5ede262
-
Update config.json
68e82e9 -
Update config.json
0078b5b
-
Update config.json
c846918 -
Update config.json
d698f61
-
Update vocab.json
e580d7e -
Update source.spm
6cab53f -
Update target.spm
9692bf9 -
Update tokenizer_config.json
2840ac9 -
Update config.json
f3ffce8 -
Update pytorch_model.bin
920d15a -
initial commit
679b28e