Instructions to use Nextcloud-AI/opus-mt-en-ar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nextcloud-AI/opus-mt-en-ar 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-en-ar")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Nextcloud-AI/opus-mt-en-ar") model = AutoModelForSeq2SeqLM.from_pretrained("Nextcloud-AI/opus-mt-en-ar", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 84f28dc7f167df59e9336f06de6b5c265eb1bc2efa86303b989c45ee11d43bcb
- Size of remote file:
- 565 MB
- SHA256:
- 724dbb6e24fb25bd666c5d2f57484e5549c987b60270b180065b486a57446331
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.