-
Notifications
You must be signed in to change notification settings - Fork 1
/
train.sh
18 lines (18 loc) · 862 Bytes
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
python code/train.py --train_data_file_path data/contest_data/train_data/train.txt \
--model_name data/pretrain_model/nezha-cn-base \
--model_save_dir data/model_data \
--learning_rate 2e-5 \
--num_epoches 1 \
--batch_size 32 \
--warmup_proportion 0.1 \
--gradient_accumulation_steps 1 \
--max_grad_norm 1.0 \
--weight_decay 0.01 \
--do_adv \
--do_fake_label \
--fake_train_data_path data/orther \
--fake_train_data_name fake_train_data_20000.txt \
--rdrop \
--rdrop_rate 0.5 \
--cuda_device 0 \
--seed 42