Graphcore / bert-base-uncased-squad

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

Introduction of bert-base-uncased-squad

Model Details of bert-base-uncased-squad

Graphcore/bert-base-uncased-squad

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

BERT (Bidirectional Encoder Representations from Transformers) is a transformers model which is designed to pretrain bidirectional representations from unlabelled texts. It enables easy and fast fine-tuning for different downstream tasks such as Sequence Classification, Named Entity Recognition, Question Answering, Multiple Choice and MaskedLM.

It was trained with two objectives in pretraining : Masked language modelling (MLM) and Next sentence prediction(NSP). First, MLM is different from traditional LM which sees the words one after another while BERT allows the model to learn a bidirectional representation. In addition to MLM, NSP is used for jointly pertaining text-pair representations.

It reduces the need of many engineering efforts for building task specific architectures through pre-trained representation. And achieves state-of-the-art performance on a large suite of sentence-level and token-level tasks.

Intended uses & limitations

This model is a fine-tuned version of Graphcore/bert-base-uncased on the squad dataset.

Training and evaluation data

Trained on squad dataset:

Training procedure

Model was trained on 16 Graphcore Mk2 IPUs using the optimum-graphcore library.

Command line:

python examples/question-answering/run_qa.py \
  --model_name_or_path Graphcore/bert-base-uncased \
  --ipu_config_name Graphcore/bert-base-ipu \
  --dataset_name squad \
  --do_train \
  --do_eval \
  --num_train_epochs 3 \
  --per_device_train_batch_size 2 \
  --per_device_eval_batch_size 2 \
  --gradient_accumulation_steps 16 \
  --pod_type pod16 \
  --learning_rate 9e-5 \
  --max_seq_length 384 \
  --doc_stride 128 \
  --seed 42\
  --lr_scheduler_type linear \
  --loss_scaling 64 \
  --weight_decay 0.01 \
  --warmup_ratio 0.2 \
  --logging_steps 1 \
  --save_steps 50 \
  --dataloader_num_workers 64 \
  --ipu_config_overrides "embedding_serialization_factor=2" \
  --output_dir squad_v2_bert_base \
  --overwrite_output_dir
Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 6e-05
  • train_batch_size: 2
  • eval_batch_size: 2
  • seed: 42
  • distributed_type: IPU
  • gradient_accumulation_steps: 16
  • total_train_batch_size: 256
  • total_eval_batch_size: 32
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_ratio: 0.1
  • num_epochs: 3.0
  • training precision: Mixed Precision
Training results
{ 
    "epoch": 3.0,
    "eval_exact_match": 81.79754020813624,
    "eval_f1": 88.84840994541061,
    "eval_samples": 10784
}
Framework versions
  • Transformers 4.18.0.dev0
  • Pytorch 1.10.0+cpu
  • Datasets 1.18.4
  • Tokenizers 0.11.6

Runs of Graphcore bert-base-uncased-squad on huggingface.co

6
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
5
30-day runs

More Information About bert-base-uncased-squad huggingface.co Model

More bert-base-uncased-squad license Visit here:

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

bert-base-uncased-squad huggingface.co

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

bert-base-uncased-squad huggingface.co Url

https://huggingface.co/Graphcore/bert-base-uncased-squad

Graphcore bert-base-uncased-squad online free

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

Graphcore bert-base-uncased-squad online free url in huggingface.co:

https://huggingface.co/Graphcore/bert-base-uncased-squad

bert-base-uncased-squad install

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

bert-base-uncased-squad install url in huggingface.co:

https://huggingface.co/Graphcore/bert-base-uncased-squad

Url of bert-base-uncased-squad

bert-base-uncased-squad huggingface.co Url

Provider of bert-base-uncased-squad huggingface.co

Graphcore
ORGANIZATIONS

Other API from Graphcore

huggingface.co

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