mrm8488 / electra-small-finetuned-squadv2

huggingface.co
Total runs: 142
24-hour runs: 0
7-day runs: -1
30-day runs: -125
Model's Last Updated: 11월 02 2022
question-answering

Introduction of electra-small-finetuned-squadv2

Model Details of electra-small-finetuned-squadv2

Electra small ⚡ + SQuAD v2 ❓

Electra-small-discriminator fine-tuned on SQUAD v2.0 dataset for Q&A downstream task.

Details of the downstream task (Q&A) - Model 🧠

ELECTRA is a new method for self-supervised language representation learning. It can be used to pre-train transformer networks using relatively little compute. ELECTRA models are trained to distinguish "real" input tokens vs "fake" input tokens generated by another neural network, similar to the discriminator of a GAN . At small scale, ELECTRA achieves strong results even when trained on a single GPU. At large scale, ELECTRA achieves state-of-the-art results on the SQuAD 2.0 dataset.

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.

Model training 🏋️‍

The model was trained on a Tesla P100 GPU and 25GB of RAM with the following command:

python transformers/examples/question-answering/run_squad.py \
  --model_type electra \
  --model_name_or_path 'google/electra-small-discriminator' \
  --do_eval \
  --do_train \
  --do_lower_case \
  --train_file '/content/dataset/train-v2.0.json' \
  --predict_file '/content/dataset/dev-v2.0.json' \
  --per_gpu_train_batch_size 16 \
  --learning_rate 3e-5 \
  --num_train_epochs 10 \
  --max_seq_length 384 \
  --doc_stride 128 \
  --output_dir '/content/output' \
  --overwrite_output_dir \
  --save_steps 1000 \
  --version_2_with_negative
Test set Results 🧾
Metric # Value
EM 69.71
F1 73.44
Size 50 MB
{
'exact': 69.71279373368147,
'f1': 73.4439546123672,
'total': 11873,
'HasAns_exact': 69.92240215924427,
'HasAns_f1': 77.39542393937836,
'HasAns_total': 5928,
'NoAns_exact': 69.50378469301934,
'NoAns_f1': 69.50378469301934,
'NoAns_total': 5945,
'best_exact': 69.71279373368147,
'best_exact_thresh': 0.0,
'best_f1': 73.44395461236732,
'best_f1_thresh': 0.0
}
Model in action 🚀

Fast usage with pipelines :

from transformers import pipeline
QnA_pipeline = pipeline('question-answering', model='mrm8488/electra-base-finetuned-squadv2')
QnA_pipeline({
    'context': 'A new strain of flu that has the potential to become a pandemic has been identified in China by scientists.',
    'question': 'What has been discovered by scientists from China ?'
})
# Output:
{'answer': 'A new strain of flu', 'end': 19, 'score': 0.8650811568752914, 'start': 0}

Created by Manuel Romero/@mrm8488 | LinkedIn

Made with ♥ in Spain

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

142
Total runs
0
24-hour runs
-4
3-day runs
-1
7-day runs
-125
30-day runs

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

More electra-small-finetuned-squadv2 license Visit here:

https://choosealicense.com/licenses/apache-2.0

electra-small-finetuned-squadv2 huggingface.co

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

electra-small-finetuned-squadv2 huggingface.co Url

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

mrm8488 electra-small-finetuned-squadv2 online free

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

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

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

electra-small-finetuned-squadv2 install

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

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

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

Url of electra-small-finetuned-squadv2

electra-small-finetuned-squadv2 huggingface.co Url

Provider of electra-small-finetuned-squadv2 huggingface.co

mrm8488
ORGANIZATIONS

Other API from mrm8488

huggingface.co

Total runs: 889
Run Growth: 586
Growth Rate: 68.06%
Updated:3월 19 2023
huggingface.co

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

Total runs: 98
Run Growth: 22
Growth Rate: 22.68%
Updated:6월 20 2023
huggingface.co

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

Total runs: 68
Run Growth: 36
Growth Rate: 56.25%
Updated:5월 21 2021