initial commit ed73966
Mathilde Parlo commited on
How to use mathildeparlo/spec_seq_lab_arabic with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="mathildeparlo/spec_seq_lab_arabic") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("mathildeparlo/spec_seq_lab_arabic")
model = AutoModelForQuestionAnswering.from_pretrained("mathildeparlo/spec_seq_lab_arabic", device_map="auto")