mrm8488 / spanbert-finetuned-squadv2

huggingface.co
Total runs: 116
24-hour runs: 0
7-day runs: 22
30-day runs: 38
Model's Last Updated: March 17 2023
question-answering

Introduction of spanbert-finetuned-squadv2

Model Details of spanbert-finetuned-squadv2

SpanBERT (spanbert-base-cased) fine-tuned on SQuAD v2

SpanBERT created by Facebook Research and fine-tuned on SQuAD 2.0 for Q&A downstream task.

Details of SpanBERT

SpanBERT: Improving Pre-training by Representing and Predicting Spans

Details of the downstream task (Q&A) - Dataset

SQuAD2.0 combines the 100,000 questions in SQuAD1.1 with over 50,000 unanswerable questions written adversarially by crowdworkers to look similar to answerable ones. To do well on SQuAD2.0, systems must not only answer questions when possible, but also determine when no answer is supported by the paragraph and abstain from answering.

Dataset Split # samples
SQuAD2.0 train 130k
SQuAD2.0 eval 12.3k
Model training

The model was trained on a Tesla P100 GPU and 25GB of RAM. The script for fine tuning can be found here

Results:
Metric # Value
EM 78.80
F1 82.22
Raw metrics:
{
  "exact": 78.80064010780762,
  "f1": 82.22801347271162,
  "total": 11873,
  "HasAns_exact": 78.74493927125506,
  "HasAns_f1": 85.60951483831069,
  "HasAns_total": 5928,
  "NoAns_exact": 78.85618166526493,
  "NoAns_f1": 78.85618166526493,
  "NoAns_total": 5945,
  "best_exact": 78.80064010780762,
  "best_exact_thresh": 0.0,
  "best_f1": 82.2280134727116,
  "best_f1_thresh": 0.0
}
Comparison:
Model EM F1 score
SpanBert official repo - 83.6*
spanbert-finetuned-squadv2 78.80 82.22
Model in action

Fast usage with pipelines :

from transformers import pipeline

qa_pipeline = pipeline(
    "question-answering",
    model="mrm8488/spanbert-finetuned-squadv2",
    tokenizer="mrm8488/spanbert-finetuned-squadv2"
)

qa_pipeline({
    'context': "Manuel Romero has been working hardly in the repository hugginface/transformers lately",
    'question': "Who has been working hard for hugginface/transformers lately?"

})

# Output: {'answer': 'Manuel Romero','end': 13,'score': 6.836378586818937e-09, 'start': 0}

Created by Manuel Romero/@mrm8488

Made with in Spain

Runs of mrm8488 spanbert-finetuned-squadv2 on huggingface.co

116
Total runs
0
24-hour runs
18
3-day runs
22
7-day runs
38
30-day runs

More Information About spanbert-finetuned-squadv2 huggingface.co Model

spanbert-finetuned-squadv2 huggingface.co

spanbert-finetuned-squadv2 huggingface.co is an AI model on huggingface.co that provides spanbert-finetuned-squadv2's model effect (), which can be used instantly with this mrm8488 spanbert-finetuned-squadv2 model. huggingface.co supports a free trial of the spanbert-finetuned-squadv2 model, and also provides paid use of the spanbert-finetuned-squadv2. Support call spanbert-finetuned-squadv2 model through api, including Node.js, Python, http.

spanbert-finetuned-squadv2 huggingface.co Url

https://huggingface.co/mrm8488/spanbert-finetuned-squadv2

mrm8488 spanbert-finetuned-squadv2 online free

spanbert-finetuned-squadv2 huggingface.co is an online trial and call api platform, which integrates spanbert-finetuned-squadv2's modeling effects, including api services, and provides a free online trial of spanbert-finetuned-squadv2, you can try spanbert-finetuned-squadv2 online for free by clicking the link below.

mrm8488 spanbert-finetuned-squadv2 online free url in huggingface.co:

https://huggingface.co/mrm8488/spanbert-finetuned-squadv2

spanbert-finetuned-squadv2 install

spanbert-finetuned-squadv2 is an open source model from GitHub that offers a free installation service, and any user can find spanbert-finetuned-squadv2 on GitHub to install. At the same time, huggingface.co provides the effect of spanbert-finetuned-squadv2 install, users can directly use spanbert-finetuned-squadv2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

spanbert-finetuned-squadv2 install url in huggingface.co:

https://huggingface.co/mrm8488/spanbert-finetuned-squadv2

Url of spanbert-finetuned-squadv2

spanbert-finetuned-squadv2 huggingface.co Url

Provider of spanbert-finetuned-squadv2 huggingface.co

mrm8488
ORGANIZATIONS

Other API from mrm8488

huggingface.co

Total runs: 855
Run Growth: 264
Growth Rate: 30.88%
Updated:February 23 2024
huggingface.co

Total runs: 202
Run Growth: 57
Growth Rate: 28.36%
Updated:March 19 2023
huggingface.co

Total runs: 72
Run Growth: 32
Growth Rate: 44.44%
Updated:January 24 2024
huggingface.co

Total runs: 56
Run Growth: 40
Growth Rate: 76.92%
Updated:June 20 2023