Downloads · 30 days
7
3% of all-time downloads
vuiseng9/nncf-qat-kd-bert-l-squadv1.1-sl384
nncf-qat-kd-bert-l-squadv1.1-sl384 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. It is set up for transformers. The card lists the license as apache-2.0.
This model is quantized version of using OpenVINO NNCF.
Downloads · 30 days
7
3% of all-time downloads
All-time downloads
220
Public
Repo size
7 GB
Likes
0
Public
Click a slice to open those files.
.bin3 GB · 69%
From the Hugging Face model README
This model is quantized version of vuiseng9/bert-l-squadv1.1-sl384 using OpenVINO NNCF.
# used 4xV100 GPUS
# --fp16 for lower turnaround and resource requirement
python run_qa.py \
--model_name_or_path bert-large-uncased-whole-word-masking-finetuned-squad \
--dataset_name squad \
--do_eval \
--do_train \
--evaluation_strategy steps \
--eval_steps 250 \
--learning_rate 3e-5 \
--fp16 \
--num_train_epochs 2 \
--per_device_eval_batch_size 64 \
--per_device_train_batch_size 8 \
--max_seq_length 384 \
--doc_stride 128 \
--save_steps 500 \
--logging_steps 1 \
--overwrite_output_dir \
--nncf_config nncf_bert_config_squad_kd.json \ #stock config which is also enclosed here
--run_name $RUNID \
--output_dir $OUTDIR
Require vuiseng9/transformers (fork) , commit: ff24569b, NNCF v2.1+ commit (8e26365)
git clone https://huggingface.co/vuiseng9/nncf-qat-kd-bert-l-squadv1.1-sl384
python run_qa.py \
--model_name_or_path ./nncf-qat-kd-bert-l-squadv1.1-sl384 \
--dataset_name squad \
--nncf_config nncf-qat-kd-bert-l-squadv1.1-sl384/nncf_bert_config_squad_kd.json \
--nncf_ckpt ./nncf-qat-kd-bert-l-squadv1.1-sl384 \
--do_eval \
--per_device_eval_batch_size 128 \
--max_seq_length 384 \
--doc_stride 128 \
--output_dir /tmp/eval-nncf-qat-kd-bert-l-squadv1.1-sl384 \
--overwrite_output_dir
eval_exact_match = 87.1523
eval_f1 = 93.2668
eval_samples = 10784