rajpurkar/squad_v2
Viewer • Updated • 142k • 29.3k • 254
How to use nbroad/deberta-v3-xsmall-squad2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="nbroad/deberta-v3-xsmall-squad2") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("nbroad/deberta-v3-xsmall-squad2")
model = AutoModelForQuestionAnswering.from_pretrained("nbroad/deberta-v3-xsmall-squad2")Microsoft reports that this model can get 84.8/82.0 on f1/em on the dev set.
I got 81.5/78.3 but I only did one run and I didn't use the official squad2 evaluation script. I will do some more runs and show the results on the official script soon.