Downloads · 30 days
13
8% of all-time downloads
samandar1105/Question_Answering
Question_Answering is a question answering model from samandar1105. Use it when the input is a question plus a passage.
This model extracts answers to questions directly from a provided text passage. It was fine-tuned from bert-base-cased on the SQuAD v1.1 dataset.
Downloads · 30 days
13
8% of all-time downloads
All-time downloads
159
Public
Parameters
108M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
This model extracts answers to questions directly from a provided text passage.
It was fine-tuned from bert-base-cased on the SQuAD v1.1 dataset.
Given a context (a paragraph of text) and a question, the model finds and returns the exact span of text in the context that answers the question.
| Metric | Score |
|---|---|
| Exact Match | 81.05% |
| F1 Score | 88.55% |
(Evaluated on SQuAD v1.1 validation set — 10,570 examples)
from transformers import pipeline
qa = pipeline(
"question-answering",
model="samandar1105/Question_Answering"
)
result = qa(
question="Who designed the Eiffel Tower?",
context="The Eiffel Tower was designed by Gustave Eiffel and built between 1887 and 1889 in Paris."
)
print(result)
# {'answer': 'Gustave Eiffel', 'score': 0.99, 'start': 31, 'end': 45}
| Parameter | Value |
|---|---|
| Base model | bert-base-cased |
| Dataset | SQuAD v1.1 (87,599 train / 10,570 val) |
| Learning rate | 2e-5 |
| Epochs | 3 |
| Batch size | 16 |
| Max sequence length | 384 |
| Stride | 128 |
| Framework | PyTorch + HuggingFace Transformers |