Instructions to use Helsinki-NLP/opus-mt-ar-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-ar-en 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="Helsinki-NLP/opus-mt-ar-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-ar-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-ar-en") - Inference
- Notebooks
- Google Colab
- Kaggle
Arabic-English translation benchmark: MSA vs dialectal performance
#10 opened about 2 months ago
by
O96a
Adding `safetensors` variant of this model
#8 opened about 1 year ago
by
SFconvertbot
Update README.md
#7 opened almost 2 years ago
by
hassan878
Adding `safetensors` variant of this model
#5 opened about 2 years ago
by
Jona6tc
Adding `safetensors` variant of this model
#4 opened over 2 years ago
by
SFconvertbot
Update README.md
#3 opened almost 3 years ago
by
saudaloufi12
Request: DOI
1
#2 opened about 3 years ago
by
felidrysy
Adding `safetensors` variant of this model
#1 opened about 3 years ago
by
SFconvertbot