initial commit eb733ae verified
Mohamed Boghdady commited on
How to use BoghdadyJR/ar-en-model with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("BoghdadyJR/ar-en-model")
model = AutoModelForSeq2SeqLM.from_pretrained("BoghdadyJR/ar-en-model", device_map="auto")