Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
web-data/gluonnlp/logs/bert/calibration_squad1.1_base_mx1.6.0b20200125.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6 lines (6 sloc)
513 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# calibration | |
KMP_AFFINITY=granularity=fine,noduplicates,compact,1,0 OMP_NUM_THREADS=1 numactl --physcpubind=0 --membind=0 python3 finetune_squad.py --only_calibration --model_parameters ./output_dir/net.params | |
# fp32 inference | |
python3 finetune_squad.py --only_predict --model_parameters ./output_dir/net.params --round_to 128 --dev_batch_size 1 | |
# int8 inference | |
python3 finetune_squad.py --only_predict --model_prefix ./output_dir/model_bert_squad_quantized_customize --deploy --round_to 128 --test_batch_size 1 |