-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
56 lines (47 loc) · 1.27 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
51
#!/bin/bash
# BERT-base
python train.py \
--model_name_or_path bert-base-uncased \
--train_file data/wiki1m_for_simcse.txt \
--output_dir result/afnc-base_phi07_top3_str1_adelim \
--num_train_epochs 1 \
--per_device_train_batch_size 64 \
--learning_rate 3e-5 \
--max_seq_length 32 \
--evaluation_strategy steps \
--metric_for_best_model stsb_spearman \
--load_best_model_at_end \
--eval_steps 125 \
--pooler_type cls \
--mlp_only_train \
--temp 0.05 \
--topk 3 \
--phi 0.7 \
--screen_strategy Strategy_1 \
--loss_strategy adaptive_elimination \
--do_train \
--do_eval \
--fp16
# BERT-large
python train.py \
--model_name_or_path bert-large-uncased \
--train_file data/wiki1m_for_simcse.txt \
--output_dir result/afnc-large_phi08_top1_str1_adelim\
--num_train_epochs 1 \
--per_device_train_batch_size 64 \
--learning_rate 1e-5 \
--max_seq_length 32 \
--evaluation_strategy steps \
--metric_for_best_model stsb_spearman \
--load_best_model_at_end \
--eval_steps 125 \
--pooler_type cls \
--mlp_only_train \
--temp 0.05 \
--topk 1 \
--phi 0.8 \
--screen_strategy Strategy_1 \
--loss_strategy adaptive_elimination \
--do_train \
--do_eval \
--fp16