mrm8488 / spanbert-large-finetuned-squadv1

huggingface.co
Total runs: 81
24-hour runs: 0
7-day runs: 21
30-day runs: 73
Model's Last Updated: May 20 2021

Introduction of spanbert-large-finetuned-squadv1

Model Details of spanbert-large-finetuned-squadv1

SpanBERT large fine-tuned on SQuAD v1

SpanBERT created by Facebook Research and fine-tuned on SQuAD 1.1 for Q&A downstream task ( by them ).

Details of SpanBERT

SpanBERT: Improving Pre-training by Representing and Predicting Spans

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

SQuAD1.1

Model fine-tuning 🏋️‍

You can get the fine-tuning script here

python code/run_squad.py \
  --do_train \
  --do_eval \
  --model spanbert-large-cased \
  --train_file train-v1.1.json \
  --dev_file dev-v1.1.json \
  --train_batch_size 32 \
  --eval_batch_size 32  \
  --learning_rate 2e-5 \
  --num_train_epochs 4 \
  --max_seq_length 512 \
  --doc_stride 128 \
  --eval_metric f1 \
  --output_dir squad_output \
  --fp16
Results Comparison 📝
SQuAD 1.1 SQuAD 2.0 Coref TACRED
F1 F1 avg. F1 F1
BERT (base) 88.5* 76.5* 73.1 67.7
SpanBERT (base) 92.4* 83.6* 77.4 68.2
BERT (large) 91.3 83.3 77.1 66.4
SpanBERT (large) 94.6 (this) 88.7 79.6 70.8

Note: The numbers marked as * are evaluated on the development sets because those models were not submitted to the official SQuAD leaderboard. All the other numbers are test numbers.

Model in action

Fast usage with pipelines :

from transformers import pipeline

qa_pipeline = pipeline(
    "question-answering",
    model="mrm8488/spanbert-large-finetuned-squadv1",
    tokenizer="SpanBERT/spanbert-large-cased"
)

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

})

# Output: {'answer': 'very hard in the repository hugginface/transformers',
 'end': 82,
 'score': 0.327230326857725,
 'start': 31}

Created by Manuel Romero/@mrm8488

Made with in Spain

Runs of mrm8488 spanbert-large-finetuned-squadv1 on huggingface.co

81
Total runs
0
24-hour runs
0
3-day runs
21
7-day runs
73
30-day runs

More Information About spanbert-large-finetuned-squadv1 huggingface.co Model

spanbert-large-finetuned-squadv1 huggingface.co

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

spanbert-large-finetuned-squadv1 huggingface.co Url

https://huggingface.co/mrm8488/spanbert-large-finetuned-squadv1

mrm8488 spanbert-large-finetuned-squadv1 online free

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

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

https://huggingface.co/mrm8488/spanbert-large-finetuned-squadv1

spanbert-large-finetuned-squadv1 install

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

spanbert-large-finetuned-squadv1 install url in huggingface.co:

https://huggingface.co/mrm8488/spanbert-large-finetuned-squadv1

Url of spanbert-large-finetuned-squadv1

spanbert-large-finetuned-squadv1 huggingface.co Url

Provider of spanbert-large-finetuned-squadv1 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: 64
Growth Rate: 31.68%
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: 46
Growth Rate: 82.14%
Updated:June 20 2023