-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathrun_classifier.sh
More file actions
36 lines (31 loc) · 831 Bytes
/
run_classifier.sh
File metadata and controls
36 lines (31 loc) · 831 Bytes
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
export CUDA_VISIBLE_DEVICES=0
TASK_NAME="THUNews"
python run.py \
--task_name=$TASK_NAME \
--model_type=albert \
--model_name_or_path ./pretrained_models/albert_xlarge_183k \
--data_dir ./dataset/THUNews/5_5000 \
--output_dir ./results/THUNews/albert \
--do_train \
--do_eval \
--do_predict \
--do_lower_case \
--max_seq_length=512 \
--per_gpu_train_batch_size=1 \
--per_gpu_eval_batch_size=16 \
--gradient_accumulation_steps=2 \
--learning_rate=2e-5 \
--num_train_epochs=1.0 \
--logging_steps=14923 \
--save_steps=14923 \
--overwrite_output_dir \
--filter_sizes='3,4,5' \
--filter_num=256 \
--lstm_layers=1 \
--lstm_hidden_size=512 \
--lstm_dropout=0.1 \
--gru_layers=1 \
--gru_hidden_size=512 \
--gru_dropout=0.1 \
# 每一个epoch保存一次
# 每一个epoch评估一次