added model ae5af8c
ajpy commited on
How to use ajaypyatha/sdsqna with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="ajaypyatha/sdsqna") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("ajaypyatha/sdsqna")
model = AutoModelForQuestionAnswering.from_pretrained("ajaypyatha/sdsqna", device_map="auto")