rajpurkar/squad_v2
Viewer • Updated • 142k • 47.7k • 273
How to use 21iridescent/distilroberta-base-finetuned-squad2-lwt with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("question-answering", model="21iridescent/distilroberta-base-finetuned-squad2-lwt") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("21iridescent/distilroberta-base-finetuned-squad2-lwt")
model = AutoModelForQuestionAnswering.from_pretrained("21iridescent/distilroberta-base-finetuned-squad2-lwt", device_map="auto")This model is a fine-tuned version of distilroberta-base on the squad_v2 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.1702 | 1.0 | 4120 | 1.1220 |
| 0.9787 | 2.0 | 8240 | 1.0500 |
| 0.8153 | 3.0 | 12360 | 1.1356 |
{'HasAns_exact': 71.39001349527665, 'HasAns_f1': 77.71740687727831, 'HasAns_total': 5928, 'NoAns_exact': 68.59545836837678, 'NoAns_f1': 68.59545836837678, 'NoAns_total': 5945, 'best_exact': 69.9991577528847, 'best_exact_thresh': 0.0, 'best_f1': 73.1583245993857, 'best_f1_thresh': 0.0, 'exact': 69.99073528173166, 'f1': 73.1499021282327, 'total': 11873}