Downloads · 30 days
7
3% of all-time downloads
vuiseng9/nncf-qat-kd-bert-l-squadv1.1-sl256
nncf-qat-kd-bert-l-squadv1.1-sl256 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
230
Public
Repo size
7 GB
Likes
0
Public
Click a slice to open those files.
.bin3 GB · 43%
From the Hugging Face model README
This model is quantized version of vuiseng9/bert-l-squadv1.1-sl256 using OpenVINO NNCF.
# used 4xV100 GPUS
# --fp16 for lower turnaround and resource requirement
python run_qa.py \
--model_name_or_path vuiseng9/bert-l-squadv1.1-sl256 \
--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 256 \
--doc_stride 128 \
--save_steps 500 \
--logging_steps 1 \
--overwrite_output_dir \
--nncf_config nncf_bert_config_squad_kd.json \ #stock config which has seq.len modified to 256.
--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-sl256
python run_qa.py \
--model_name_or_path ./nncf-qat-kd-bert-l-squadv1.1-sl256 \
--dataset_name squad \
--nncf_config ./nncf-qat-kd-bert-l-squadv1.1-sl256/nncf_bert_config_squad_kd.json \
--nncf_ckpt ./nncf-qat-kd-bert-l-squadv1.1-sl256 \
--do_eval \
--per_device_eval_batch_size 128 \
--max_seq_length 256 \
--doc_stride 128 \
--output_dir /tmp/eval-nncf-qat-kd-bert-l-squadv1.1-sl256 \
--overwrite_output_dir
eval_exact_match = 87.1902
eval_f1 = 93.0286
eval_samples = 12097