Instructions to use Nextcloud-AI/opus-mt-ar-fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-ar-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-ar-fr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-ar-fr") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-ar-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.710b8d2
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
e507d7b
-
Adding generation config file(s)
4482ddb
-
Add TF weights
Joao Gantedca8009
-
metadata: add license
0ef20fb
-
Changed num_beams to 4
e801707
-
Update README.md
1994009
-
Update README.md
a8c5904 -
Update config.json
ed40e96 -
Update tokenizer_config.json
583abc6 -
Update vocab.json
9c8293b
-
Update README.md
90b4491 -
Update config.json
9315901 -
Update tokenizer_config.json
d4619e2 -
Update vocab.json
3a5f490 -
Update README.md
ce0072f
-
Update README.md
77c510e -
Update README.md
4328e46
-
Update README.md
57b5963
-
Update README.md
1626d30
-
Update config.json
5252f0c -
Update config.json
5a712c4
-
Update config.json
4c5d625 -
Update config.json
528b752
-
Update source.spm
8cb9a5c -
Update target.spm
efb9dde -
Update tokenizer_config.json
842009b -
Update vocab.json
9d07ff2 -
Update config.json
14f7bc3 -
Update pytorch_model.bin
8334e00 -
initial commit
c2141c8