rajpurkar/squad
Viewer • Updated • 98.2k • 272k • 1k
How to use lauraparra28/Albert-base-v2-finetuned-SQuAD2.0 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="lauraparra28/Albert-base-v2-finetuned-SQuAD2.0") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("lauraparra28/Albert-base-v2-finetuned-SQuAD2.0")
model = AutoModelForQuestionAnswering.from_pretrained("lauraparra28/Albert-base-v2-finetuned-SQuAD2.0", device_map="auto")This model is a fine-tuned version of albert-base-v2 on the squad dataset. It achieves the following results on the evaluation set:
This model is fine-tuned on the extractive question answering task -- The Stanford Question Answering Dataset -- SQuAD2.0.
More information needed
Training and evaluation was done on SQuAD2.0.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.8702 | 1.0 | 5540 | 0.8943 |
| 0.6972 | 2.0 | 11080 | 0.9087 |
| 0.4998 | 3.0 | 16620 | 0.9890 |
| 0.3601 | 4.0 | 22160 | 1.1892 |
| 0.235 | 5.0 | 27700 | 1.4539 |
Base model
albert/albert-base-v2