mrm8488 / bert-small-finetuned-squadv2

huggingface.co
Total runs: 103
24-hour runs: 0
7-day runs: 19
30-day runs: -2
Model's Last Updated: May 20 2021
question-answering

Introduction of bert-small-finetuned-squadv2

Model Details of bert-small-finetuned-squadv2

BERT-Small fine-tuned on SQuAD v2

BERT-Small created by Google Research and fine-tuned on SQuAD 2.0 for Q&A downstream task.

Mode size (after training): 109.74 MB

Details of BERT-Small and its 'family' (from their documentation)

Released on March 11th, 2020

This is model is a part of 24 smaller BERT models (English only, uncased, trained with WordPiece masking) referenced in Well-Read Students Learn Better: On the Importance of Pre-training Compact Models .

The smaller BERT models are intended for environments with restricted computational resources. They can be fine-tuned in the same manner as the original BERT models. However, they are most effective in the context of knowledge distillation, where the fine-tuning labels are produced by a larger and more accurate teacher.

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 60.49
F1 64.21
Comparison:
Model EM F1 score SIZE (MB)
bert-tiny-finetuned-squadv2 48.60 49.73 16.74
bert-mini-finetuned-squadv2 56.31 59.65 42.63
bert-small-finetuned-squadv2 60.49 64.21 109.74
Model in action

Fast usage with pipelines :

from transformers import pipeline

qa_pipeline = pipeline(
    "question-answering",
    model="mrm8488/bert-small-finetuned-squadv2",
    tokenizer="mrm8488/bert-small-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": 0.9939319924374637,
  "start": 0
}
Yes! That was easy 🎉 Let's try with another example
qa_pipeline({
    'context': "Manuel Romero has been working hardly in the repository hugginface/transformers lately",
    'question': "For which company has worked Manuel Romero?"
})

# Output:
{
  "answer": "hugginface/transformers",
  "end": 79,
  "score": 0.6024888734447131,
  "start": 56
}
It works!! 🎉 🎉 🎉

Created by Manuel Romero/@mrm8488 | LinkedIn

Made with in Spain

Runs of mrm8488 bert-small-finetuned-squadv2 on huggingface.co

103
Total runs
0
24-hour runs
9
3-day runs
19
7-day runs
-2
30-day runs

More Information About bert-small-finetuned-squadv2 huggingface.co Model

bert-small-finetuned-squadv2 huggingface.co

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

bert-small-finetuned-squadv2 huggingface.co Url

https://huggingface.co/mrm8488/bert-small-finetuned-squadv2

mrm8488 bert-small-finetuned-squadv2 online free

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

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

https://huggingface.co/mrm8488/bert-small-finetuned-squadv2

bert-small-finetuned-squadv2 install

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

bert-small-finetuned-squadv2 install url in huggingface.co:

https://huggingface.co/mrm8488/bert-small-finetuned-squadv2

Url of bert-small-finetuned-squadv2

bert-small-finetuned-squadv2 huggingface.co Url

Provider of bert-small-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: 229
Run Growth: 112
Growth Rate: 50.00%
Updated:March 19 2023
huggingface.co

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

Total runs: 65
Run Growth: 54
Growth Rate: 83.08%
Updated:June 20 2023