rajpurkar/squad_v2
Viewer โข Updated โข 142k โข 34k โข 251
How to use nbroad/xdistil-l12-h384-squad2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="nbroad/xdistil-l12-h384-squad2") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("nbroad/xdistil-l12-h384-squad2")
model = AutoModelForQuestionAnswering.from_pretrained("nbroad/xdistil-l12-h384-squad2")xtremedistil-l12-h384 trained on SQuAD 2.0
"eval_exact": 75.45691906005221
"eval_f1": 79.32502968532793