Downloads · 30 days
20
28% of all-time downloads
Kapilydv6/my-qa-model
my-qa-model is a question answering model from Kapilydv6. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as mit.
A fine-tuned DistilBERT model for extractive question answering. Given a context paragraph and a question, it extracts the answer directly from the text.
Downloads · 30 days
20
28% of all-time downloads
All-time downloads
72
Public
Parameters
66.4M
265 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors265 MB · 100%
From the Hugging Face model README
A fine-tuned DistilBERT model for extractive question answering. Given a context paragraph and a question, it extracts the answer directly from the text.
from transformers import pipeline
qa = pipeline("question-answering", model="Kapilydv6/my-qa-model")
result = qa(
question="Who created Python?",
context="Python is a programming language created by Guido van Rossum."
)
print(result["answer"]) # "Guido van Rossum"
| Parameter | Value |
|---|---|
| Base model | distilbert-base-uncased |
| Dataset | SQuAD v1.1 (3000 samples) |
| Epochs | 3 |
| Learning rate | 3e-5 |
| Max sequence len | 384 |
| Framework | PyTorch + Transformers |
This is my second Hugging Face model! Key concepts:
Trained on a small subset of SQuAD for learning purposes. For production, train on the full dataset (~87k examples).