Downloads · 30 days
10
33% of all-time downloads
ashaduzzaman/distilbert-finetuned-squad
distilbert-finetuned-squad is a question answering model from ashaduzzaman. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
10
33% of all-time downloads
All-time downloads
30
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
This model is a fine-tuned version of distilbert-base-uncased for the question-answering task. The model has been adapted to extract answers from context passages based on input questions.
distilbert-finetuned-squad is a distilled version of BERT that has been fine-tuned on a question-answering dataset. The distillation process makes the model smaller and faster while retaining much of the original model's performance. This fine-tuned variant is specifically adapted for tasks that involve extracting answers from given context passages.
Here is a code snippet to load the fine-tuned model and perform question answering:
from transformers import pipeline
# Load the fine-tuned model for question answering
model_checkpoint = "Ashaduzzaman/distilbert-finetuned-squad"
question_answerer = pipeline(
"question-answering",
model=model_checkpoint,
)
# Perform question answering on the provided question and context
question = "What is the capital of France?"
context = "The capital of France is Paris."
result = question_answerer(question=question, context=context)
print(result['answer'])
This code demonstrates how to load the model using the transformers library and perform question answering with a sample question and context.
The specific dataset used for fine-tuning is not disclosed. However, the model was trained on a dataset typically used for question-answering tasks, which includes a wide range of questions and contexts. Details about the dataset include:
The following hyperparameters were used during training:
The performance metrics and evaluation results of the fine-tuned model are not specified. It is recommended to evaluate the model on your specific use case to determine its effectiveness.