-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·48 lines (45 loc) · 1.36 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
export data=./data
export BERT_BASE_DIR=./chinese_L-12_H-768_A-12/
export BERT_PYTORCH_DIR=./chinese_L-12_H-768_A-12/
python run_classifier_word.py \
--task_name NEWS \
--do_train \
--do_eval \
--data_dir $data/ \
--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 $data/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 $data/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/