-
Notifications
You must be signed in to change notification settings - Fork 225
/
run.sh
50 lines (45 loc) · 1.48 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
export GLUE_DIR=/search/odin/wuyonggang/bert/extract_code/glue_data
export BERT_BASE_DIR=/search/odin/wuyonggang/bert/chinese_L-12_H-768_A-12/
export BERT_PYTORCH_DIR=/search/odin/wuyonggang/bert/chinese_L-12_H-768_A-12/
python run_classifier_word.py \
--task_name NEWS \
--do_train \
--do_eval \
--data_dir $GLUE_DIR/NewsAll/ \
--vocab_file $BERT_BASE_DIR/vocab.txt \
--bert_config_file $BERT_BASE_DIR/bert_config.json \
--init_checkpoint $BERT_PYTORCH_DIR/pytorch_model.bin \
--max_seq_length 256 \
--train_batch_size 32 \
--learning_rate 2e-5 \
--num_train_epochs 3.0 \
--output_dir ./newsAll_output/ \
--local_rank 3
#python run_classifier_word.py \
# --task_name NEWS \
# --do_train \
# --do_eval \
# --data_dir $GLUE_DIR/News/ \
# --vocab_file $BERT_BASE_DIR/vocab.txt \
# --bert_config_file $BERT_BASE_DIR/bert_config.json \
# --init_checkpoint $BERT_PYTORCH_DIR/pytorch_model.bin \
# --max_seq_length 128 \
# --train_batch_size 32 \
# --learning_rate 2e-5 \
# --num_train_epochs 3.0 \
# --output_dir ./news_output/ \
# --local_rank 2
#python run_classifier.py \
# --task_name MRPC \
# --do_train \
# --do_eval \
# --do_lower_case \
# --data_dir $GLUE_DIR/MRPC/ \
# --vocab_file $BERT_BASE_DIR/vocab.txt \
# --bert_config_file $BERT_BASE_DIR/bert_config.json \
# --init_checkpoint $BERT_PYTORCH_DIR/pytorch_model.bin \
# --max_seq_length 128 \
# --train_batch_size 32 \
# --learning_rate 2e-5 \
# --num_train_epochs 3.0 \
# --output_dir ./mrpc_output/