Downloads · 30 days
0
vuiseng9/jpqd-bert-base-lt-15eph-r0.0150-s1e5
jpqd-bert-base-lt-15eph-r0.0150-s1e5 is a machine learning model from vuiseng9. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Jan 3, 2023
Repo size
2.2 GB
Likes
0
Public
Click a slice to open those files.
.pt873 MB · 40%
From the Hugging Face model README
git clone https://github.com/vuiseng9/optimum-intel
cd optimum-intel
pip install -e .[openvino,nncf]
cd examples/openvino/question-answering/
pip install -r requirements.txt
pip install wandb # optional
NNCFCFG=/path/to/openvino_config.json
MASTER_PORT=<PORTID>
RUNID=<RUN_IDENTIFIER>
OUTDIR=/path/to/saved_model
NEPOCH=15
python run_qa.py \
--model_name_or_path bert-base-uncased \
--dataset_name squad \
--teacher_model_or_path bert-large-uncased-whole-word-masking-finetuned-squad \
--distillation_weight 0.9 \
--do_eval \
--fp16 \
--do_train \
--learning_rate 3e-5 \
--num_train_epochs $NEPOCH \
--per_device_eval_batch_size 128 \
--per_device_train_batch_size 16 \
--max_seq_length 384 \
--doc_stride 128 \
--logging_steps 1 \
--evaluation_strategy steps \
--eval_steps 250 \
--save_steps 500 \
--overwrite_output_dir \
--run_name $RUNID \
--output_dir $OUTDIR \
--nncf_compression_config $NNCFCFG \
Global Step: 80000
F1: 90.272
EM: 83.728
Structured Sparsity (linear): 52.18%