vuiseng9/bert-l-squadv1.1-sl256
By vuiseng9 · ↓ 0 · ♥ 0 · Updated 2022-05-07
What's in this repo
This page lists the files in vuiseng9/bert-l-squadv1.1-sl256, including squad-BertForQuestionAnswering.dense.fp32.onnx.
- 1 ONNX models (.onnx files)
- 18 files, including 9 .json, 3 .bin, 1 .md, 1 .mapping, 1 .onnx, 1 .xml
- Last updated 2022-05-07
ONNX files
| File | Size | Download |
|---|---|---|
| ir/squad-BertForQuestionAnswering.dense.fp32.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
run01-bert-l-uwwm-squadv1.1-sl256-ds128-e2-tbs16
This model is a fine-tuned version of bert-large-uncased-whole-word-masking on the squad dataset. ONNX and OpenVINO IR are enclosed here.
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
NEPOCH=2
TBS=16
EBS=64
SL=256
DS=128
cmd="
python run_qa.py \
--model_name_or_path ${BASEM} \
--dataset_name squad \
--do_eval \
--do_train \
--evaluation_strategy steps \
--eval_steps 500 \
--learning_rate 3e-5 \
--fp16 \
--num_train_epochs $NEPOCH \
--per_device_eval_batch_size $EBS \
--per_device_train_batch_size $TBS \
--max_seq_length $SL \
--doc_stride $DS \
--save_steps 1000 \
--logging_steps 1 \
--overwrite_output_dir \
--run_name $RUNID \
--output_dir $OUTDIR
"
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 3e-05
- train_batch_size: 16
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 2.0
- mixed_precision_training: Native AMP
Training results
Best checkpoint was at step 11500 but it was not saved. This is final checkpoint (12K+).
eval_exact_match = 86.9347
eval_f1 = 93.1359
eval_samples = 12097
Framework versions
- Transformers 4.18.0
- Pytorch 1.11.0+cu113
- Datasets 2.1.0
- Tokenizers 0.12.1
Model info
Created: 2022-05-06
Updated: 2022-05-07
View on Hugging Face