ONNX Model Zoo

vuiseng9/bert-base-squadv1-pruneofa-90pc-bt

By vuiseng9 · ↓ 1 · ♥ 0 · Updated 2022-01-18

What's in this repo

This page lists the files in vuiseng9/bert-base-squadv1-pruneofa-90pc-bt, including bert-base-squadv1-pruneofa-90pc-bt.onnx.

  • 1 ONNX models (.onnx files)
  • 39 files, including 16 .json, 9 .bin, 3 .md, 2 .pt, 2 .txt, 2 .csv
  • Last updated 2022-01-18

ONNX files

File Size Download
bert-base-squadv1-pruneofa-90pc-bt.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

This model is transfer-learning of bert-base pruneofa 90% sparse on Squadv1 dataset.

  eval_exact_match = 80.2933
  eval_f1          = 87.6788
  eval_samples     =   10784

Train

use https://github.com/IntelLabs/Model-Compression-Research-Package.git see pruneofa-transfer-learning.sh

Eval

export CUDA_VISIBLE_DEVICES=0

OUTDIR=eval-bert-base-squadv1-pruneofa-90pc-bt
WORKDIR=transformers/examples/pytorch/question-answering
cd $WORKDIR

nohup python run_qa.py  \
    --model_name_or_path vuiseng9/bert-base-squadv1-pruneofa-90pc-bt  \
    --dataset_name squad  \
    --do_eval  \
    --per_device_eval_batch_size 128  \
    --max_seq_length 384  \
    --doc_stride 128  \
    --overwrite_output_dir \
    --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &

Model info

question-answering transformers
transformers pytorch onnx bert question-answering endpoints_compatible region:us
↓ 1 ♥ 0

Created: 2022-03-02

Updated: 2022-01-18

View on Hugging Face

Files (39)

.gitattributes
README.md
all_results.json
args.bin
bert-base-squadv1-pruneofa-90pc-bt.onnx ONNX
checkpoint-56750/config.json
checkpoint-56750/optimizer.pt
checkpoint-56750/pruneofa_lt_pytorch_model.bin
checkpoint-56750/pytorch_model.bin
checkpoint-56750/rng_state.pth
checkpoint-56750/scheduler.pt
checkpoint-56750/sparsified_pytorch_model.bin
checkpoint-56750/special_tokens_map.json
checkpoint-56750/tokenizer.json
checkpoint-56750/tokenizer_config.json
checkpoint-56750/trainer_state.json
checkpoint-56750/training_args.bin
checkpoint-56750/vocab.txt
config.json
eval_nbest_predictions.json
eval_predictions.json
eval_results.json
final_pytorch_model.bin
layer_wise_sparsity_global_rate_70.20.csv
layer_wise_sparsity_global_rate_70.20.md
linear_layer_sparsity_85M_params_90.00_sparsity.csv
linear_layer_sparsity_85M_params_90.00_sparsity.md
pruneofa-transfer-learning.sh
pruning_config.json
pytorch_model.bin
raw_pytorch_model.bin
run.log
special_tokens_map.json
tokenizer.json
tokenizer_config.json
train_results.json
trainer_state.json
training_args.bin
vocab.txt

Related models