rajpurkar/squad_v2
Viewer • Updated • 142k • 96.2k • 262
How to use lauraparra28/Roberta-base-finetuned-SQuAD2.0 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="lauraparra28/Roberta-base-finetuned-SQuAD2.0") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("lauraparra28/Roberta-base-finetuned-SQuAD2.0")
model = AutoModelForQuestionAnswering.from_pretrained("lauraparra28/Roberta-base-finetuned-SQuAD2.0", device_map="auto")This model is a fine-tuned version of roberta-base on the SQuAD2.0. It achieves the following results on the evaluation set:
Language model: roberta-base
Language: English
Downstream-task: Extractive QA
Training data: SQuAD 2.0
Eval data: SQuAD 2.0
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.8978 | 1.0 | 8239 | 0.8532 |
| 0.6621 | 2.0 | 16478 | 0.9733 |
| 0.5045 | 3.0 | 24717 | 0.9010 |
| 0.3837 | 4.0 | 32956 | 1.0523 |
| 0.3069 | 5.0 | 41195 | 1.2340 |
Base model
FacebookAI/roberta-base