Downloads · 30 days
4
6% of all-time downloads
qusai00/minilm-squad2-finetuned-v1
minilm-squad2-finetuned-v1 is a question answering model from qusai00. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of deepset/minilm-uncased-squad2 on the SQuAD v2 dataset for extractive question answering.
Downloads · 30 days
4
6% of all-time downloads
All-time downloads
69
Public
Parameters
33.2M
133 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors133 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of deepset/minilm-uncased-squad2 on the SQuAD v2 dataset for extractive question answering.
Trained on a subset of 20,000 training examples and evaluated on 2,000 validation examples.
from transformers import pipeline
qa = pipeline("question-answering", model="qusai00/minilm-squad2-finetuned-v1")
context = "The Virgin Mary allegedly appeared to Saint Bernadette Soubirous in 1858 in Lourdes, France."
question = "To whom did the Virgin Mary appear in 1858?"
result = qa(question=question, context=context)
print(result)
# Example output:
# {'score': 0.9919, 'start': 47, 'end': 64, 'answer': 'Saint Bernadette'}
=======================================================
=======================================================
Training Setup
Framework: Hugging Face Transformers
Hardware: NVIDIA RTX 4080, 64GB RAM
Precision: fp16 mixed precision
Hyperparameters:
Learning rate: 3e-5
Batch size: 16
Epochs: 3–5 (with early stopping)
Weight decay: 0.01
Max sequence length: 384
Stride: 128
=======================================================
=======================================================
Performance
Qualitative results (manual evaluation):
High-confidence answers on factual questions
Example: Historical and geographical questions → correct short answers with confidence > 0.95
Minor issues: Occasionally adds small extra words (e.g., "Paris is" instead of "Paris") — common in small distilled models
Quantitative metrics (F1 / Exact Match) not computed in final run due to evaluation setup, but manual testing shows strong performance for the training size.
Intended Use & Limitations
Intended: Extractive QA on English factual text (answer span inside context).
Not intended for: Generative answers, non-English text, very long documents, open-domain QA.
Limitations:
Trained on subset only → may struggle with rare topics or very complex contexts
Small distilled model → occasional minor word additions or misses
=======================================================
=======================================================
Citation
bibtex@misc{qusai00-minilm-squad2,
author = {Qusai},
title = {Fine-tuned MiniLM on SQuAD v2 for Question Answering},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/qusai00/minilm-squad2-finetuned-v1}}
}
Thank you for using the model!
Feedback, questions, or suggestions are welcome.