-
Notifications
You must be signed in to change notification settings - Fork 0
/
finetune_bart_wikibio.sh
120 lines (113 loc) · 3.96 KB
/
finetune_bart_wikibio.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/bin/bash
CUDA_VISIBLE_DEVICES=0,1 python cli_gt.py \
--do_train \
--output_dir ./out/wikibio/bart_few100/model \
--train_file ./data/wikibio/train_100 \
--train_file_unlabel ./data/wikibio/unlabel \
--predict_file ./data/wikibio/val \
--substitution_file ./data/counterfitted_neighbors.json \
--model_path ./bart_model \
--tokenizer_path ./bart_model \
--curriculum [2,4,10] \
--train_batch_size 24 \
--train_batch_size_unlabel 24 \
--predict_batch_size 32 \
--predict_batch_size_unlabel 32 \
--max_input_length 384 \
--max_output_length 128 \
--append_another_bos \
--learning_rate 3e-5 \
--num_train_epochs 20 \
--num_train_epochs_unlabel 1 \
--warmup_steps 8 \
--warmup_steps_unlabel 400 \
--eval_period 8 \
--num_beams 5 \
--struct_noise 0.4 \
--semantic_noise 0.4 \
--cover_ratio 0.2 \
--seed 42
CUDA_VISIBLE_DEVICES=0,1 python cli_gt.py \
--do_train \
--output_dir ./out/wikibio/bart_few50/model \
--train_file ./data/wikibio/train_50 \
--train_file_unlabel ./data/wikibio/unlabel \
--predict_file ./data/wikibio/val \
--substitution_file ./data/counterfitted_neighbors.json \
--model_path ./bart_model \
--tokenizer_path ./bart_model \
--curriculum [2,4,10] \
--train_batch_size 24 \
--train_batch_size_unlabel 24 \
--predict_batch_size 32 \
--predict_batch_size_unlabel 32 \
--max_input_length 384 \
--max_output_length 128 \
--append_another_bos \
--learning_rate 3e-5 \
--num_train_epochs 20 \
--num_train_epochs_unlabel 1 \
--warmup_steps 4 \
--warmup_steps_unlabel 400 \
--eval_period 4 \
--num_beams 5 \
--struct_noise 0.4 \
--semantic_noise 0.4 \
--cover_ratio 0.2 \
--seed 42
CUDA_VISIBLE_DEVICES=0,1 python cli_gt.py \
--do_train \
--output_dir ./out/wikibio/bart_few200/model \
--train_file ./data/wikibio/train_200 \
--train_file_unlabel ./data/wikibio/unlabel \
--predict_file ./data/wikibio/val \
--substitution_file ./data/counterfitted_neighbors.json \
--model_path ./bart_model \
--tokenizer_path ./bart_model \
--curriculum [2,4,10] \
--train_batch_size 24 \
--train_batch_size_unlabel 24 \
--predict_batch_size 32 \
--predict_batch_size_unlabel 32 \
--max_input_length 384 \
--max_output_length 128 \
--append_another_bos \
--learning_rate 3e-5 \
--num_train_epochs 20 \
--num_train_epochs_unlabel 1 \
--warmup_steps 16 \
--warmup_steps_unlabel 400 \
--eval_period 16 \
--num_beams 5 \
--struct_noise 0.4 \
--semantic_noise 0.4 \
--cover_ratio 0.2 \
--seed 42
CUDA_VISIBLE_DEVICES=0,1 python cli_gt.py \
--do_train \
--output_dir ./out/wikibio/bart_few500/model \
--train_file ./data/wikibio/train_500 \
--train_file_unlabel ./data/wikibio/unlabel \
--predict_file ./data/wikibio/val \
--substitution_file ./data/counterfitted_neighbors.json \
--model_path ./bart_model \
--tokenizer_path ./bart_model \
--curriculum [2,4,10] \
--train_batch_size 24 \
--train_batch_size_unlabel 24 \
--predict_batch_size 32 \
--predict_batch_size_unlabel 32 \
--max_input_length 384 \
--max_output_length 128 \
--append_another_bos \
--learning_rate 3e-5 \
--num_train_epochs 20 \
--num_train_epochs_unlabel 1 \
--warmup_steps 40 \
--warmup_steps_unlabel 400 \
--eval_period 40 \
--num_beams 5 \
--struct_noise 0.4 \
--semantic_noise 0.4 \
--cover_ratio 0.2 \
--seed 42