Views
No views yet
eval_exact_match = 78.5241
eval_f1 = 86.4138
eval_samples = 107841export CUDA_VISIBLE_DEVICES=0
2
3OUTDIR=eval-bert-base-squadv1-block-pruning-hybrid
4WORKDIR=transformers/examples/pytorch/question-answering
5cd $WORKDIR
6mkdir $OUTDIR
7
8nohup python run_qa.py \
9 --model_name_or_path vuiseng9/bert-base-squadv1-block-pruning-hybrid \
10 --dataset_name squad \
11 --do_eval \
12 --per_device_eval_batch_size 16 \
13 --max_seq_length 384 \
14 --doc_stride 128 \
15 --overwrite_output_dir \
16 --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &1# OpenVINO/NNCF
2git clone https://github.com/vuiseng9/nncf && cd nncf
3git checkout tld-poc
4git reset --hard 1dec7afe7a4b567c059fcf287ea2c234980fded2
5python setup.py develop
6pip install -r examples/torch/requirements.txt
7
8# Huggingface nn_pruning
9git clone https://github.com/vuiseng9/nn_pruning && cd nn_pruning
10git checkout reproduce-evaluation
11git reset --hard 2d4e196d694c465e43e5fbce6c3836d0a60e1446
12pip install -e ".[dev]"
13
14# Huggingface Transformers
15git clone https://github.com/vuiseng9/transformers && cd transformers
16git checkout tld-poc
17git reset --hard 10a1e29d84484e48fd106f58957d9ffc89dc43c5
18pip install -e .
19head -n 1 examples/pytorch/question-answering/requirements.txt | xargs -i pip install {}
20--optimize_model_before_eval during evaluation.1export CUDA_VISIBLE_DEVICES=0
2
3OUTDIR=eval-bert-base-squadv1-block-pruning-hybrid-cropped
4WORKDIR=transformers/examples/pytorch/question-answering
5cd $WORKDIR
6mkdir $OUTDIR
7
8nohup python run_qa.py \
9 --model_name_or_path vuiseng9/bert-base-squadv1-block-pruning-hybrid \
10 --dataset_name squad \
11 --optimize_model_before_eval \
12 --do_eval \
13 --per_device_eval_batch_size 128 \
14 --max_seq_length 384 \
15 --doc_stride 128 \
16 --overwrite_output_dir \
17 --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &