Instructions to use Nextcloud-AI/opus-mt-ar-tr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-ar-tr 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-tr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-ar-tr") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-ar-tr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
1688136
-
Adding generation config file(s)
0f3d0d8
-
Add TF weights
Joao Gante61c86d3
-
Changed num_beams to 4
759d47d
-
Update README.md
410514c -
Update README.md
dcc89f4 -
Update metadata.json
04a0b54
-
Update README.md
c7e7e62 -
Update config.json
184ca3e -
Update metadata.json
a21d359 -
Update tokenizer_config.json
ed23e8b -
Update vocab.json
92b838f -
Update README.md
e15ff98 -
Update metadata.json
60181f4 -
Update README.md
a04f44a -
Update config.json
6d6f62e -
Update metadata.json
4139133 -
Update pytorch_model.bin
15b5b67 -
Update source.spm
d594d7e -
Update target.spm
082b9c3 -
Update tokenizer_config.json
d2bfa02 -
Update vocab.json
e1f3204 -
initial commit
c3b7d3c