Downloads · 30 days
12
35% of all-time downloads
ashaduzzaman/bert-finetuned-squad
bert-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
12
35% of all-time downloads
All-time downloads
34
Public
Parameters
108M
862 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of BERT-base-cased, specifically optimized for the task of question answering. It was trained on the SQuAD (Stanford Question Answering Dataset) to understand and extract relevant information from a given context, based on a provided question. BERT is a transformer-based model that uses attention mechanisms to improve the contextual understanding of text, which makes it well-suited for question-answering tasks.
Intended Uses:
Limitations:
To use this model for question answering, you can utilize the Hugging Face transformers library. Here’s a Python code example:
from transformers import pipeline
model_checkpoint = "Ashaduzzaman/bert-finetuned-squad"
question_answerer = pipeline("question-answering", model=model_checkpoint)
question = "What is the name of the architectures?"
context = """
🤗 Transformers (formerly known as pytorch-transformers and pytorch-pretrained-
and pytorch-nlp) provides general-purpose architectures (BERT, GPT-2, RoBERTa, XLM, DistilBert, XLNet…) for Natural
Language Understanding (NLU) and Natural Language Generation (NLG) with over 32+ pretrained models in 100+ languages and
with state-of-the-art performance on SQuAD, GLUE, AWS Glue, and other benchmarks.
"""
result = question_answerer(question=question, context=context)
print(result['answer'])
The model was trained using the Hugging Face transformers library with the following hyperparameters:
betas=(0.9,0.999) and epsilon=1e-08The model's performance was evaluated using standard SQuAD metrics, including Exact Match (EM) and F1 score. These metrics measure the model's ability to provide accurate and precise answers to the questions based on the context.