Adding run.sh used to train using transformers/example/question_answering code.
Browse files
run.sh
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python run_qa.py \
|
2 |
+
--model_name_or_path bert-large-uncased-whole-word-masking \
|
3 |
+
--dataset_name squad_v2 \
|
4 |
+
--do_train \
|
5 |
+
--do_eval \
|
6 |
+
--save_steps 2500 \
|
7 |
+
--eval_steps 2500 \
|
8 |
+
--evaluation_strategy steps \
|
9 |
+
--per_device_train_batch_size 12 \
|
10 |
+
--learning_rate 3e-5 \
|
11 |
+
--num_train_epochs 2 \
|
12 |
+
--max_seq_length 384 \
|
13 |
+
--doc_stride 128 \
|
14 |
+
--output_dir /data_2to/devel_data/nn_pruning/output/teacher/squadv2-large-wwm \
|
15 |
+
--version_2_with_negative 1
|