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
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:
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:
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 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:
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: