Instructions to use zelcakok/bert-base-squad2-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zelcakok/bert-base-squad2-uncased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="zelcakok/bert-base-squad2-uncased")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("zelcakok/bert-base-squad2-uncased") model = AutoModelForQuestionAnswering.from_pretrained("zelcakok/bert-base-squad2-uncased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
metadata
license: mit
datasets:
- squad_v2
language:
- en
tags:
- Bert
- SQuAD2.0
- SQuAD
pipeline_tag: question-answering
Extract QA Model (SQuAD2.0)
Model Information
Pretrained model: google/bert_uncased_L-12_H-768_A-12
Training Hyperparameters
epochs = 2
batch_size = 24
learning_rate = 3e-5
max_seq_length = 384
doc_stride = 128
max_query_length = 256
Latest Result
// 24 Mar 2023, 19:57
{
"exact": 74.12616861787248,
"f1": 77.34212395572948,
"total": 11873,
"HasAns_exact": 72.72267206477733,
"HasAns_f1": 79.16380528447645,
"HasAns_total": 5928,
"NoAns_exact": 75.52565180824222,
"NoAns_f1": 75.52565180824222,
"NoAns_total": 5945,
"best_exact": 74.12616861787248,
"best_exact_thresh": 0.0,
"best_f1": 77.34212395572948,
"best_f1_thresh": 0.0
}
// 23 Mar 2023
{
"exact": 73.77242482944496,
"f1": 76.83752039897598,
"total": 11873,
"HasAns_exact": 71.72739541160594,
"HasAns_f1": 77.86637646711235,
"HasAns_total": 5928,
"NoAns_exact": 75.81160639192599,
"NoAns_f1": 75.81160639192599,
"NoAns_total": 5945,
"best_exact": 73.77242482944496,
"best_exact_thresh": 0.0,
"best_f1": 76.83752039897604,
"best_f1_thresh": 0.0
}