Graphcore / roberta-base-squad2

huggingface.co
Total runs: 2
24-hour runs: 0
7-day runs: 0
30-day runs: -2
Model's Last Updated: July 07 2023
question-answering

Introduction of roberta-base-squad2

Model Details of roberta-base-squad2

Graphcore/roberta-base-squad2

Optimum Graphcore is a new open-source library and toolkit that enables developers to access IPU-optimized models certified by Hugging Face. It is an extension of Transformers, providing a set of performance optimization tools enabling maximum efficiency to train and run models on Graphcore’s IPUs - a completely new kind of massively parallel processor to accelerate machine intelligence. Learn more about how to take train Transformer models faster with IPUs at hf.co/hardware/graphcore .

Through HuggingFace Optimum, Graphcore released ready-to-use IPU-trained model checkpoints and IPU configuration files to make it easy to train models with maximum efficiency in the IPU. Optimum shortens the development lifecycle of your AI models by letting you plug-and-play any public dataset and allows a seamless integration to our State-of-the-art hardware giving you a quicker time-to-value for your AI project.

Model description

RoBERTa is based on BERT pretraining approach and improves on it by carefully evaluating a number of design decisions of BERT pretraining which it found to cause the model to be undertrained.

It suggested a way to improve the performance by training the model longer, with bigger batches over more data, removing the next sentence prediction objectives, training on longer sequences and dynamically changing the mask pattern applied to the training data.

As a result, it achieved state-of-the-art results on GLUE, RACE and SQuAD.

Paper link : RoBERTa: A Robustly Optimized BERT Pretraining Approach

Intended uses & limitations

This model is a fine-tuned version of HuggingFace/roberta-base on the squad_v2 dataset.

Training and evaluation data

Trained and evaluated on the SQuAD v2 dataset:

Training procedure

Trained on 16 Graphcore Mk2 IPUs using optimum-graphcore .

Command line:

python examples/question-answering/run_qa.py \
  --ipu_config_name Graphcore/roberta-base-ipu \
  --model_name_or_path roberta-base \
  --dataset_name squad_v2 \
  --version_2_with_negative \
  --do_train \
  --do_eval \
  --num_train_epochs 3 \
  --per_device_train_batch_size 4 \
  --per_device_eval_batch_size 2 \
  --pod_type pod16 \
  --learning_rate 7e-5 \
  --max_seq_length 384 \
  --doc_stride 128 \
  --seed 1984 \
  --lr_scheduler_type linear \
  --loss_scaling 64 \
  --weight_decay 0.01 \
  --warmup_ratio 0.2 \
  --logging_steps 1 \
  --save_steps -1 \
  --dataloader_num_workers 64 \
  --output_dir roberta-base-squad2 \
  --overwrite_output_dir \
  --push_to_hub
Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 7e-05
  • train_batch_size: 4
  • eval_batch_size: 2
  • seed: 1984
  • distributed_type: IPU
  • total_train_batch_size: 256
  • total_eval_batch_size: 40
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_ratio: 0.2
  • num_epochs: 3.0
  • training precision: Mixed Precision
Training results
***** train metrics *****
  epoch                    =        3.0
  train_loss               =     0.9982
  train_runtime            = 0:04:44.21
  train_samples            =     131823
  train_samples_per_second =    1391.43
  train_steps_per_second   =      5.425

***** eval metrics *****
  epoch                  =     3.0
  eval_HasAns_exact      = 78.1208
  eval_HasAns_f1         = 84.6569
  eval_HasAns_total      =    5928
  eval_NoAns_exact       = 82.0353
  eval_NoAns_f1          = 82.0353
  eval_NoAns_total       =    5945
  eval_best_exact        = 80.0809
  eval_best_exact_thresh =     0.0
  eval_best_f1           = 83.3442
  eval_best_f1_thresh    =     0.0
  eval_exact             = 80.0809
  eval_f1                = 83.3442
  eval_samples           =   12165
  eval_total             =   11873
Framework versions
  • Transformers 4.18.0.dev0
  • Pytorch 1.10.0+cpu
  • Datasets 2.0.0
  • Tokenizers 0.11.6

Runs of Graphcore roberta-base-squad2 on huggingface.co

2
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-2
30-day runs

More Information About roberta-base-squad2 huggingface.co Model

More roberta-base-squad2 license Visit here:

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

roberta-base-squad2 huggingface.co

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

roberta-base-squad2 huggingface.co Url

https://huggingface.co/Graphcore/roberta-base-squad2

Graphcore roberta-base-squad2 online free

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

Graphcore roberta-base-squad2 online free url in huggingface.co:

https://huggingface.co/Graphcore/roberta-base-squad2

roberta-base-squad2 install

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

roberta-base-squad2 install url in huggingface.co:

https://huggingface.co/Graphcore/roberta-base-squad2

Url of roberta-base-squad2

roberta-base-squad2 huggingface.co Url

Provider of roberta-base-squad2 huggingface.co

Graphcore
ORGANIZATIONS

Other API from Graphcore

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 25 2022